From ab51ba09383310163d87d82eb64055425ae57e32 Mon Sep 17 00:00:00 2001 From: "3321822538@qq.com" <3321822538@qq.com> Date: Thu, 30 May 2024 18:02:15 +0800 Subject: [PATCH] aaa --- page_user/listshu/xqdetail.vue | 6 + page_user/shopdetail.vue | 14 +- pages.json | 7 + .../devicemanagement/chargepallist/index.vue | 278 +++++---- .../chargepallist/listdetail/index.vue | 185 ++++-- pages/agentpages/devicemanagement/index.vue | 11 +- .../devicemanagement/xiajilist/index.vue | 544 ++++++++++-------- .../shopguanli/discipleshop/index.vue | 4 +- pages/agentpages/shopguanli/myshop/index.vue | 5 +- pages/detail/index.vue | 1 + 10 files changed, 641 insertions(+), 414 deletions(-) diff --git a/page_user/listshu/xqdetail.vue b/page_user/listshu/xqdetail.vue index 5868975..7cecb62 100644 --- a/page_user/listshu/xqdetail.vue +++ b/page_user/listshu/xqdetail.vue @@ -87,6 +87,12 @@ setTimeout(()=>{ uni.navigateBack() },1500) + }else if(res.code == 500){ + uni.showToast({ + title: res.msg, + icon: 'none', + duration: 1000 + }) } }) } else if (res.cancel) { diff --git a/page_user/shopdetail.vue b/page_user/shopdetail.vue index a0a38cb..2b993db 100644 --- a/page_user/shopdetail.vue +++ b/page_user/shopdetail.vue @@ -98,6 +98,12 @@ setTimeout(()=>{ uni.navigateBack() },1500) + }else if(res.code == 500){ + uni.showToast({ + title: res.msg, + icon: 'none', + duration: 1000 + }) } }) } else if (res.cancel) { @@ -112,12 +118,12 @@ success: res => { console.log('扫描结果:', res); this.cabinetSn = res.result - this.$u.put(`/agent/cabinet/${this.storeId}/bind/${this.cabinetSn}`).then(res => { + this.$u.put(`/agent/cabinet/${this.cabinetSn}/bind/${this.storeId}`).then(res => { if(res.code == 200){ uni.showToast({ title: '绑定成功', - icon: 'none', - duration:1000 + icon: 'success', + duration:2000 }); } }) @@ -132,7 +138,7 @@ }); }else if(num == 5){ uni.navigateTo({ - url:'/pages/agentpages/devicemanagement/chargepallist/index' + url:'/pages/agentpages/devicemanagement/chargepallist/index?storeId=' + this.storeId }) } }, diff --git a/pages.json b/pages.json index 5c7157c..92dc566 100644 --- a/pages.json +++ b/pages.json @@ -280,6 +280,13 @@ "enablePullDownRefresh": false, "navigationStyle": "custom" } + },{ + "path": "xiajispxq", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } },{ "path": "yunying/gongdan/index", "style": { diff --git a/pages/agentpages/devicemanagement/chargepallist/index.vue b/pages/agentpages/devicemanagement/chargepallist/index.vue index 0da291b..a9b552a 100644 --- a/pages/agentpages/devicemanagement/chargepallist/index.vue +++ b/pages/agentpages/devicemanagement/chargepallist/index.vue @@ -1,9 +1,9 @@