Browse Source

管代码libcode

master
z_yu 2 years ago
parent
commit
464e40b6e9
  1. 4
      .env.production
  2. 4
      package.json
  3. 2
      src/views/index.vue
  4. 2
      src/views/module/bookDetails.vue

4
.env.production

@ -3,7 +3,7 @@ ENV = 'production'
# 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置
# 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http
# VUE_APP_BASE_API = 'https://openapitest.aiyxlib.com'
VUE_APP_BASE_API = 'http://192.168.99.107:7070'
# VUE_APP_BASE_API = 'http://192.168.99.107:7070'
VUE_APP_BASE_API = 'http://172.16.0.23:8080'
# 如果接口是 http 形式, wss 需要改为 ws
VUE_APP_WS_API = 'ws://192.168.99.107:7071'
VUE_APP_CAMERA_API = '192.168.99.107'

4
package.json

@ -1,7 +1,7 @@
{
"name": "intelligence-screen",
"name": "intelligence-bookshelf",
"version": "1.0.0",
"description": "智慧大屏",
"description": "智慧书架",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",

2
src/views/index.vue

@ -103,7 +103,7 @@ export default {
},
toRoomNav() {
const linkSrc = process.env.VUE_APP_BASE_API
window.location.href = linkSrc + '/anchoring/initVenueNavigation.do?libcode=1201'
window.location.href = linkSrc + '/anchoring/initVenueNavigation.do?libcode='+this.libcode
},
// -
getNewBookList() {

2
src/views/module/bookDetails.vue

@ -59,7 +59,7 @@ export default {
methods: {
toBookNav(index) {
const linkSrc = process.env.VUE_APP_BASE_API
window.location.href = linkSrc + '/anchoring/goNavigation.do?libcode=1201&eqmNo=001&barcode=' + this.bookData.places[index].barcode
window.location.href = linkSrc + '/anchoring/goNavigation.do?=libcode' + this.libcode + '&eqmNo=001&barcode=' + this.bookData.places[index].barcode
}
}
}

Loading…
Cancel
Save