From 819180031fdb2c321da9f1e9cab526e383190422 Mon Sep 17 00:00:00 2001 From: donqi Date: Tue, 5 Jul 2022 14:22:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=B7=AF=E5=BE=84=EF=BC=8C=E4=BF=AE=E5=A4=8D=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E5=8F=B7=E8=8E=B7=E5=8F=96=E6=8C=81=E4=B9=85=E5=8C=96?= =?UTF-8?q?=E5=90=8E=E7=BC=93=E5=AD=98=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/request.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/js/request.js b/common/js/request.js index ef4f81e..508c132 100644 --- a/common/js/request.js +++ b/common/js/request.js @@ -137,7 +137,6 @@ export default { return true; }, async storageExistUser() { - uni.clearStorageSync('userProfile'); // 获取微信登录凭证 const wxLoginRes = await wx.login(); // 获取openid @@ -157,6 +156,7 @@ export default { wxLoginCode: wxLoginRes.code } } + uni.clearStorageSync('userProfile'); uni.setStorageSync('userProfile', userInfo); }, async registerUser(params = {}) { @@ -206,7 +206,7 @@ export default { let phoneRes = await this.qryUserPhone(code) if (phoneRes && phoneRes.data) { let userInfo = this.getCurUserInfo(); - this.updateUserPhone({ + await this.updateUserPhone({ workerId: userInfo.workerId, account: phoneRes.data, phone: phoneRes.data @@ -278,7 +278,7 @@ export default { }, async areaListByStep(params = { parentCode: null }) { let res = await uni.request({ - url: '/system/area/list', + url: '/system/area/app/list', method: 'POST', data: params }) @@ -364,7 +364,7 @@ export default { }, async qryFinancialDetail(params = {}) { let res = await uni.request({ - url: '/financial/detail/list', + url: '/financial/detail/app/list', method: 'POST', data: params }) @@ -452,7 +452,7 @@ export default { }, async qryProductPage(params = {}) { let res = await uni.request({ - url: '/goods/goods/list', + url: '/goods/goods/app/list', method: 'POST', data: params, header: {