代客下单重构
This commit is contained in:
@@ -214,7 +214,7 @@ export const productStore = defineStore('product', {
|
||||
uni.cache.set('shopUserInfo', res);
|
||||
uni.cache.set('orderVIP', res)
|
||||
uni.cache.set('ordershopUserInfo', res.shopInfo)
|
||||
resolve(true)
|
||||
resolve(res)
|
||||
} catch (e) {
|
||||
reject(false)
|
||||
}
|
||||
@@ -226,14 +226,16 @@ export const productStore = defineStore('product', {
|
||||
actionsAPIuser() {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
try {
|
||||
let res=null
|
||||
// 获取店铺用户会员信息
|
||||
if (uni.cache.get('shopId')) {
|
||||
this.actionsproductqueryProduct()
|
||||
res = await this.actionsproductqueryProduct()
|
||||
} else {
|
||||
let res = await APIuser()
|
||||
res = await APIuser()
|
||||
uni.cache.set('userInfo', res);
|
||||
}
|
||||
resolve(true)
|
||||
console.log('actionsAPIuser res',res);
|
||||
resolve(res)
|
||||
} catch (e) {
|
||||
reject(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user