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 @@
-
-
-
-
- 车牌号:{{bikeobj.vehicleNum == null ? '--' : bikeobj.vehicleNum}}
-
+
+
+
+ 车牌号:{{bikeobj.vehicleNum == null ? '--' : bikeobj.vehicleNum}}
+
-
- 归属运营区:{{bikeobj.areaName == null ? '--' : bikeobj.areaName}}
-
-
+
车辆SN:{{bikeobj.sn == null ? '--' : bikeobj.sn}}
+
+
- 车辆电量:{{bikeobj.remainingPower == null ? '--' : bikeobj.remainingPower + '%'}}
+ 电量:{{bikeobj.remainingPower == null ? '--' : bikeobj.remainingPower + '%'}}
+
+
+
- 车辆续航:{{bikeobj.remainEndurance == null ? '--' : bikeobj.remainEndurance + 'KM'}}
+ 续航:{{bikeobj.remainEndurance == null ? '--' : bikeobj.remainEndurance + 'KM'}}
-
+
-
+
自行前往门店
@@ -55,10 +59,11 @@
- 2024年09月04日 16:00
+ 2024年09月04日 16:00
- 更改时间
+ 更改时间
@@ -71,7 +76,9 @@
取车后开始计算订单时长
-
+
@@ -87,13 +94,16 @@
-
+
选择套餐
-
+
{{item.name}}
@@ -104,12 +114,14 @@
- 起步价格:{{'¥' + item.startRule.startingPrice}}(含{{item.startRule.startingTime}} 小时分钟 )
+ 起步价格:{{'¥' + item.startRule.startingPrice}}(含{{item.startRule.startingTime}} 小时分钟 )
-
- 超出价格:{{'¥' + item.startRule.timeoutPrice}}(每{{item.startRule.timeoutTime}} 小时分钟)
-
-
+
+ 超出价格:{{'¥' + item.startRule.timeoutPrice}}(每{{item.startRule.timeoutTime}} 小时分钟)
+
+
当前车辆未配置套餐
@@ -148,9 +160,9 @@
.......................................................
-
- 还车后
-
+
+ 还车后
+
@@ -247,10 +259,11 @@
-
-
- 已阅读并同意《电动车租赁协议》《享权须知》
-
+
+
+ 已阅读并同意《电动车租赁协议》《享权须知》
+
@@ -267,7 +280,7 @@
支付
-
+
订单明细
@@ -285,13 +298,24 @@
-
+
+ 温馨提示
+
+
+ 您当前未登录,是否登录?
+
+
+
+ 暂不登录
+
-
+
+
+