From c06f62d1ebb596f6d726c5da7a9d5712c3b120f2 Mon Sep 17 00:00:00 2001 From: "3321822538@qq.com" <3321822538@qq.com> Date: Mon, 21 Apr 2025 18:00:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E9=B9=BF=E9=AA=91=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/http.interceptor.js | 2 +- page_fenbao/storedlist/trueorder.vue | 2 + page_fenbao/webview.vue | 22 +++ page_shanghu/admin_index.vue | 2 +- page_shanghu/gongzuotai/shgl.vue | 83 ++++++----- page_shanghu/gongzuotai/woke_deviceMgmt.vue | 3 + page_shanghu/guanli/device_detail.vue | 96 +++++++------ page_shanghu/guanli/order_detail.vue | 2 +- page_user/returnbike.vue | 2 +- page_user/yongche/orderxq.vue | 4 +- pages.json | 7 + pages/index/index.vue | 26 +++- pages/my.vue | 17 ++- pages/myorder/index.vue | 2 +- pages/myorder/returned/index.vue | 149 +++++++++++++++++++- pages/nearbystores/index.vue | 35 ++++- 16 files changed, 351 insertions(+), 103 deletions(-) create mode 100644 page_fenbao/webview.vue diff --git a/common/http.interceptor.js b/common/http.interceptor.js index 8e87cc7..fc1dcee 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.76:4101', //键辉本地 + // baseUrl: 'http://192.168.2.65:4101', //键辉本地 // baseUrl: 'http://192.168.0.102:4101', //景森本地 baseUrl: 'https://ele.ccttiot.com/prod-api', //线上 loadingText: '努力加载中~', diff --git a/page_fenbao/storedlist/trueorder.vue b/page_fenbao/storedlist/trueorder.vue index 70f129d..a5abc1e 100644 --- a/page_fenbao/storedlist/trueorder.vue +++ b/page_fenbao/storedlist/trueorder.vue @@ -691,6 +691,8 @@ this.$u.get(`/app/device/availableDetail?sn=${this.sn}`).then((res) => { if (res.code == 200) { this.bikeobj = res.data + console.log(res.data,'020202'); + this.$u.put(`/app/user/bindArea?areaId=${res.data.areaId}`).then(resp =>{}) // if (res.data.onlineStatus == 0) { // wx.openBluetoothAdapter({ // success: function(res) { diff --git a/page_fenbao/webview.vue b/page_fenbao/webview.vue new file mode 100644 index 0000000..bc30cbf --- /dev/null +++ b/page_fenbao/webview.vue @@ -0,0 +1,22 @@ + + + + + \ No newline at end of file diff --git a/page_shanghu/admin_index.vue b/page_shanghu/admin_index.vue index a782af3..94961d6 100644 --- a/page_shanghu/admin_index.vue +++ b/page_shanghu/admin_index.vue @@ -121,7 +121,7 @@ - 牌:{{item.vehicleNum}} + 牌:{{item.vehicleNum == null ? '--' : item.vehicleNum}} - + @@ -38,7 +38,7 @@ 处理 - + 维修完成 @@ -85,14 +85,45 @@ this.getlist() } }, - + // 点击完成 + btnwc(item){ + let data = { + id:item.id, + pass:true + } + this.$u.put('/bst/fault/complete', data).then((res) => { + if (res.code === 200) { + uni.showToast({ + title: '操作成功', + icon: 'none', + duration: 2000 + }); + this.pageNum = 1; + this.list = []; // 清空当前列表 + this.getlist(); + } else { + uni.showToast({ + title: res.msg, + icon: 'none', + duration: 2000 + }); + } + }) + }, + // 点击处理和忽略 unpass(item,num){ + let passflag = '' + if(num == 0){ + passflag = false + }else if(num == 1){ + passflag = true + } uni.showLoading({ title:'加载中...' }) let data = { id:item.id, - handle:num + pass:passflag } this.$u.put('/bst/fault/handle', data).then((res) => { if (res.code === 200) { @@ -115,7 +146,7 @@ }, parsePictures(pictureString) { if (pictureString) { - return pictureString.split(','); + return pictureString.split(',') } return []; }, @@ -123,7 +154,7 @@ uni.previewImage({ current: pic, // 当前显示图片的链接 urls: this.parsePictures(item.picture) // 需要预览的图片链接列表 - }); + }) }, getlist() { let data = { @@ -140,21 +171,20 @@ this.list = this.list.concat(res.rows) } this.pageNum ++ - // this.list = [...this.list, ...res.rows]; // 拼接新数据 } else { uni.showToast({ title: res.msg, icon: 'none', duration: 2000 - }); + }) } }).catch(error => { console.error("Error fetching area data:", error); - }); + }) }, loadMore() { - this.pageNum += 1; // 页码增加 - this.getlist(); // 调用getlist方法获取更多数据 + this.pageNum += 1 // 页码增加 + this.getlist() // 调用getlist方法获取更多数据 }, search() { clearTimeout(timerId1); @@ -169,18 +199,16 @@ todetail() { uni.navigateTo({ url: '/pages_adminSet/shDetail' - }); + }) } } - }; + } -