From dd626b5618d9d72b9ae9f976c827db1a95c80104 Mon Sep 17 00:00:00 2001 From: Sliverber <2622874537@qq.com> Date: Mon, 1 Jul 2024 21:30:31 +0800 Subject: [PATCH] 11 --- common/http.interceptor.js | 6 +-- manifest.json | 2 +- page_user/bulelink.vue | 95 ++++++++++++++++++++++++++++++++++++++ pages/index/index.vue | 34 +++++++------- 4 files changed, 117 insertions(+), 20 deletions(-) create mode 100644 page_user/bulelink.vue diff --git a/common/http.interceptor.js b/common/http.interceptor.js index ac555e4..c8c80c1 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -19,13 +19,13 @@ const install = (Vue, vm) => { // }, // }); - uni.setStorageSync('deptId', 101); + uni.setStorageSync('deptId', 100); Vue.prototype.$u.http.setConfig({ // baseUrl: 'http://61.174.243.28:15861', // baseUrl: 'http://192.168.2.14:8080', // baseUrl: 'http://124.221.246.124:2289', - baseUrl: 'https://dianche.chuantewulian.cn/prod-api', - // baseUrl: 'https://dche.ccttiot.com/prod-api', + // baseUrl: 'https://dianche.chuantewulian.cn/prod-api', + baseUrl: 'https://dche.ccttiot.com/prod-api', loadingText: '努力加载中~', // loadingTime: 2000, // 设置自定义头部content-type diff --git a/manifest.json b/manifest.json index 8d15cb5..cad1f86 100644 --- a/manifest.json +++ b/manifest.json @@ -51,7 +51,7 @@ /* 小程序特有相关 */ "mp-weixin" : { "libVersion" : "latest", - "appid" : "wx4d178f8c80348214", + "appid" : "wx3428c498d5061192", "setting" : { "urlCheck" : false }, diff --git a/page_user/bulelink.vue b/page_user/bulelink.vue new file mode 100644 index 0000000..4d28343 --- /dev/null +++ b/page_user/bulelink.vue @@ -0,0 +1,95 @@ + + + + + \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index 501f62f..b695a14 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -4477,13 +4477,14 @@ this.showdevice = true; this.type = 0; } else { - if (this.deviceInfos.onlineStatus == 0) { - wx.showToast({ - title: '车辆离线中,请使用其他车辆', - icon: 'none', - duration: 4000 - }); - } else if (this.deviceInfos.status == 0) { + // if (this.deviceInfos.onlineStatus == 0) { + // wx.showToast({ + // title: '车辆离线中,请使用其他车辆', + // icon: 'none', + // duration: 4000 + // }); + // } else + if (this.deviceInfos.status == 0) { uni.showToast({ title: '车辆未上架,请使用其他车辆', icon: 'none', @@ -4571,15 +4572,16 @@ this.showdevice = true; this.type = 0; } else { - if (this.deviceInfos - .onlineStatus == - 0) { - uni.showToast({ - title: '车辆离线中,请使用其他车辆', - icon: 'none', - duration: 4000 - }); - } else if (this.deviceInfos + // if (this.deviceInfos + // .onlineStatus == + // 0) { + // uni.showToast({ + // title: '车辆离线中,请使用其他车辆', + // icon: 'none', + // duration: 4000 + // }); + // } else + if (this.deviceInfos .status == 0) { uni.showToast({