修改部分接口路径,修复手机号获取持久化后缓存报错的问题
This commit is contained in:
parent
5e6476967c
commit
819180031f
|
|
@ -137,7 +137,6 @@ export default {
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
async storageExistUser() {
|
async storageExistUser() {
|
||||||
uni.clearStorageSync('userProfile');
|
|
||||||
// 获取微信登录凭证
|
// 获取微信登录凭证
|
||||||
const wxLoginRes = await wx.login();
|
const wxLoginRes = await wx.login();
|
||||||
// 获取openid
|
// 获取openid
|
||||||
|
|
@ -157,6 +156,7 @@ export default {
|
||||||
wxLoginCode: wxLoginRes.code
|
wxLoginCode: wxLoginRes.code
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
uni.clearStorageSync('userProfile');
|
||||||
uni.setStorageSync('userProfile', userInfo);
|
uni.setStorageSync('userProfile', userInfo);
|
||||||
},
|
},
|
||||||
async registerUser(params = {}) {
|
async registerUser(params = {}) {
|
||||||
|
|
@ -206,7 +206,7 @@ export default {
|
||||||
let phoneRes = await this.qryUserPhone(code)
|
let phoneRes = await this.qryUserPhone(code)
|
||||||
if (phoneRes && phoneRes.data) {
|
if (phoneRes && phoneRes.data) {
|
||||||
let userInfo = this.getCurUserInfo();
|
let userInfo = this.getCurUserInfo();
|
||||||
this.updateUserPhone({
|
await this.updateUserPhone({
|
||||||
workerId: userInfo.workerId,
|
workerId: userInfo.workerId,
|
||||||
account: phoneRes.data,
|
account: phoneRes.data,
|
||||||
phone: phoneRes.data
|
phone: phoneRes.data
|
||||||
|
|
@ -278,7 +278,7 @@ export default {
|
||||||
},
|
},
|
||||||
async areaListByStep(params = { parentCode: null }) {
|
async areaListByStep(params = { parentCode: null }) {
|
||||||
let res = await uni.request({
|
let res = await uni.request({
|
||||||
url: '/system/area/list',
|
url: '/system/area/app/list',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: params
|
data: params
|
||||||
})
|
})
|
||||||
|
|
@ -364,7 +364,7 @@ export default {
|
||||||
},
|
},
|
||||||
async qryFinancialDetail(params = {}) {
|
async qryFinancialDetail(params = {}) {
|
||||||
let res = await uni.request({
|
let res = await uni.request({
|
||||||
url: '/financial/detail/list',
|
url: '/financial/detail/app/list',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: params
|
data: params
|
||||||
})
|
})
|
||||||
|
|
@ -452,7 +452,7 @@ export default {
|
||||||
},
|
},
|
||||||
async qryProductPage(params = {}) {
|
async qryProductPage(params = {}) {
|
||||||
let res = await uni.request({
|
let res = await uni.request({
|
||||||
url: '/goods/goods/list',
|
url: '/goods/goods/app/list',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: params,
|
data: params,
|
||||||
header: {
|
header: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue