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: {