diff --git a/common/http.interceptor.js b/common/http.interceptor.js index df58bbc..c0b1ffe 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -1,7 +1,7 @@ const install = (Vue, vm) => { uni.setStorageSync('deptId', 100); Vue.prototype.$u.http.setConfig({ - // baseUrl: 'http://192.168.2.35:4101', //键辉本地 + // baseUrl: 'http://192.168.2.46:4101', //键辉本地 // baseUrl: 'http://192.168.0.102:4101', //景森本地 baseUrl: 'https://ele.ccttiot.com/prod-api', //线上 loadingText: '努力加载中~', diff --git a/components/tab-bar/tab-bar.vue b/components/tab-bar/tab-bar.vue index 1030c1f..b447168 100644 --- a/components/tab-bar/tab-bar.vue +++ b/components/tab-bar/tab-bar.vue @@ -23,8 +23,8 @@
- - + +
扫码用车
@@ -158,9 +158,21 @@ this.sn = getQueryParam(decodedValue, 's') this.$u.get(`/app/device/availableDetail?sn=${this.sn}`).then((res) => { if (res.code == 200) { - this.modelId = res.data.modelId - uni.navigateTo({ - url:'/page_fenbao/storedlist/trueorder?modelId=' + this.modelId + '&sn=' + this.sn + if(res.data){ + this.modelId = res.data.modelId + uni.navigateTo({ + url:'/page_fenbao/storedlist/trueorder?modelId=' + this.modelId + '&sn=' + this.sn + }) + }else{ + uni.showToast({ + title: '当前车辆不可用', + icon: 'none' + }) + } + }else{ + uni.showToast({ + title: res.msg, + icon: 'none' }) } }) diff --git a/page_fenbao/index.vue b/page_fenbao/index.vue index f473862..183f970 100644 --- a/page_fenbao/index.vue +++ b/page_fenbao/index.vue @@ -44,7 +44,7 @@ }) }else{ uni.showToast({ - title:'车辆暂不可用', + title:'当前车辆不可用', icon: 'none', duration:2000 }) diff --git a/page_fenbao/renlian.vue b/page_fenbao/renlian.vue index b042c86..b0e9450 100644 --- a/page_fenbao/renlian.vue +++ b/page_fenbao/renlian.vue @@ -20,9 +20,7 @@ handleGetMessage:function(e){ console.log(e) if(e.detail.data[0].result == 'success'){ - uni.redirectTo({ - url:'/page_fenbao/renlianzhongzhuan' - }) + uni.navigateBack() } }, diff --git a/page_fenbao/storedlist/trueorder.vue b/page_fenbao/storedlist/trueorder.vue index fcfbc59..5042202 100644 --- a/page_fenbao/storedlist/trueorder.vue +++ b/page_fenbao/storedlist/trueorder.vue @@ -1,35 +1,39 @@