优化会员,商品,下单
This commit is contained in:
@@ -229,6 +229,8 @@ export const productStore = defineStore('product', {
|
||||
try {
|
||||
let res = await APIshopUserInfo()
|
||||
uni.cache.set('shopUserInfo', res);
|
||||
uni.cache.set('orderVIP', res)
|
||||
uni.cache.set('ordershopUserInfo', res.shopInfo)
|
||||
resolve(true)
|
||||
} catch (e) {
|
||||
reject(false)
|
||||
@@ -244,10 +246,10 @@ export const productStore = defineStore('product', {
|
||||
// 获取店铺用户会员信息
|
||||
if (uni.cache.get('shopId')) {
|
||||
this.actionsproductqueryProduct()
|
||||
} else {
|
||||
let res = await APIuser()
|
||||
uni.cache.set('userInfo', res);
|
||||
}
|
||||
let res = await APIuser()
|
||||
uni.cache.set('userInfo', res);
|
||||
// }
|
||||
resolve(true)
|
||||
} catch (e) {
|
||||
reject(false)
|
||||
|
||||
Reference in New Issue
Block a user