From 2a9de15785f97883430a9c7f4d6eaa92276aab72 Mon Sep 17 00:00:00 2001 From: "3321822538@qq.com" <3321822538@qq.com> Date: Fri, 11 Apr 2025 18:23:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E7=94=B5=E5=8A=A8=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/http.interceptor.js | 2 +- components/tab-bar/tab-bar.vue | 22 +- page_fenbao/index.vue | 2 +- page_fenbao/renlian.vue | 4 +- page_fenbao/storedlist/trueorder.vue | 1013 +++++++++++------- page_shanghu/gongzuotai/AccountDetails.vue | 8 +- page_shanghu/gongzuotai/ChargingTemplate.vue | 2 +- page_shanghu/gongzuotai/shgl.vue | 17 +- page_shanghu/gongzuotai/woke_deviceMgmt.vue | 7 + page_shanghu/guanli/admin_order.vue | 4 +- page_shanghu/guanli/bike_track.vue | 6 +- page_shanghu/guanli/device_detail.vue | 633 ++++++----- page_shanghu/guanli/order_detail.vue | 9 +- page_shanghu/guanli/yunying.vue | 28 +- page_user/guzhang/index.vue | 149 ++- page_user/hcshenhe.vue | 144 ++- page_user/huanbike.vue | 108 +- page_user/returnbike.vue | 3 +- page_user/shiming.vue | 52 +- page_user/yijian.vue | 50 +- pages/index/index.vue | 4 +- pages/login/login.vue | 13 +- pages/my.vue | 32 +- pages/myorder/returned/index.vue | 137 +-- pages/nearbystores/index.vue | 911 +++++++++++----- 25 files changed, 2199 insertions(+), 1161 deletions(-) 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 @@