优化会员,商品,下单
This commit is contained in:
@@ -115,7 +115,7 @@
|
||||
})
|
||||
|
||||
const form = reactive({
|
||||
memberOpen: false,
|
||||
memberOpen: true,
|
||||
shopName: "",
|
||||
amount: '',
|
||||
lucky: {
|
||||
@@ -153,11 +153,6 @@
|
||||
})
|
||||
}
|
||||
|
||||
// * 注册会员卡
|
||||
const getRegisterMember = () => {
|
||||
this.memberOpen = e;
|
||||
this.init()
|
||||
}
|
||||
|
||||
// 会员总信息
|
||||
const asyncshopUserInfo = async () => {
|
||||
@@ -167,6 +162,7 @@
|
||||
uni.cache.set('orderVIP', res)
|
||||
uni.cache.set('ordershopUserInfo', res.shopInfo)
|
||||
form.memberOpen = res.isVip == 1 ? false : true
|
||||
shopUserInfo.shopExtend = res.shopExtendList[2]
|
||||
|
||||
}
|
||||
|
||||
@@ -184,14 +180,15 @@
|
||||
// 获取页面参数
|
||||
const pageParams = currentPage.options;
|
||||
if (pageParams.shopId) {
|
||||
asyncshopUserInfo()
|
||||
uni.cache.set('shopId', pageParams.shopId, 30)
|
||||
let res = await APIusershopInfodetail({
|
||||
shopId: pageParams.shopId
|
||||
})
|
||||
// 根据传的shopInfo来返回上面的值
|
||||
shopUserInfo.shopExtend = res.shopExtend.member_bg
|
||||
shopUserInfo.shopId = pageParams.shopId
|
||||
uni.cache.set('shopId', pageParams.shopId, 30)
|
||||
// let res = await APIusershopInfodetail({
|
||||
// shopId: pageParams.shopId
|
||||
// })
|
||||
// 根据传的shopInfo来返回上面的值
|
||||
// shopUserInfo.shopExtend = res.shopExtend.member_bg
|
||||
asyncshopUserInfo()
|
||||
console.log(shopUserInfo.shopId)
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user