优化会员,商品,下单

This commit is contained in:
wwz
2025-03-15 12:03:34 +08:00
parent e6ca187e5a
commit fc957feb72
19 changed files with 484 additions and 978 deletions

View File

@@ -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)
}
})