From e12cf84ceecae07dcb3ff4ee77da402dcba14bab Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Wed, 20 Nov 2024 10:26:17 +0800 Subject: [PATCH] 11 --- pages/login/login.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pages/login/login.vue b/pages/login/login.vue index 4816374..5cdca8c 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -191,7 +191,8 @@ }, true, true).then((res) => { if (res.code == 200) { this.toggle("center"); - this.shopList = res.result + this.shopList = res.result + }else{ this.getCaptchaImg() this.tui.toast(res.message) @@ -245,6 +246,17 @@ username:item.username }, false, true).then((res) => { if (res.code == 200) { + let printMethod = JSON.parse(res.result.logiticsCompany.printMethod) + if(printMethod == null){ + uni.setStorageSync('wlNum',1) + }else{ + if(printMethod.xbqNum != undefined){ + uni.setStorageSync('wlNum',printMethod.wlNum) + uni.setStorageSync('xbqNum',1) + }else{ + uni.setStorageSync('wlNum',printMethod.wlNum) + } + } uni.setStorageSync('username',res.result.logiticsCompany.username) uni.setStorageSync('mobile',res.result.logiticsCompany.mobile) uni.setStorageSync("hiver_token", res.result.lcomToken)