修复:解决隐私政策查看问题;解决积分支付bug;

This commit is contained in:
2025-12-04 15:16:30 +08:00
parent 871eecb889
commit a7360e6459
6 changed files with 21 additions and 11 deletions

View File

@@ -59,14 +59,16 @@ const orderType = ref<string>('')
onLoad(async () => {
try {
// 获取商品列表
uni.$on('selectedGoods', (data: IOrderGoods) => {
await uni.$on('selectedGoods', async (data: IOrderGoods) => {
// 获取用户信息
await getUserInfo()
// 处理商品数据
console.log('监听到传入的商品数据:', data)
isLengthen.value = data.state !== null
orderType.value = data.orderType || ''
goodsList.value = [ data ]
})
// 获取用户信息
getUserInfo()
} catch (error) {
console.error('解析商品数据失败:', error)
uni.showToast({