修改部分接口路径,修复手机号获取持久化后缓存报错的问题
This commit is contained in:
parent
5e6476967c
commit
819180031f
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue