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 @@