优惠卷和商品卷

This commit is contained in:
wwz
2025-03-10 16:33:43 +08:00
parent 70edc6756d
commit 5342133cbd
30 changed files with 2820 additions and 3338 deletions

View File

@@ -13,7 +13,7 @@
<view class="method_list_top_cen">
<view class="name"> {{ item.name }} </view>
<view class="method_list_bom" v-if="item.type == 1">
<text class="balance">会员卡余额 {{amountVIP?amountVIP.amount:0}}</text>
<text class="balance">会员卡余额 {{orderVIP?orderVIP.amount:0}}</text>
<text class="topUpNow" @click="goRecharge">去充值</text>
</view>
</view>
@@ -51,14 +51,18 @@
freeCheck: {
type: Boolean,
default: false
},
orderVIP: {
type: Object,
default: {
}
}
});
const emits = defineEmits(['customevent', 'groupChange']);
const amountVIP = uni.cache.get('shopUserInfo')
const paymentMethodList = ref([{
name: "余额支付",
type: 1,
@@ -112,7 +116,6 @@
// * 监听支付方式切换
const groupChange = (type) => {
console.log(type)
if (props.freeCheck && type == 1) {
return;
}
@@ -121,13 +124,14 @@
// }
radiovalue.value = type;
let name = paymentMethodName.value[type - 1].name;
emits("groupChange", type)
emits("groupChange", paymentMethodName.value[type - 1])
}
// 去充值
const goRecharge = () => {
uni.pro.navigateTo('/pages/member/index', {
shopId: uni.cache.get('shopId')
uni.pro.navigateTo('user/member/index', {
shopId: props.orderVIP.shopId
})
}
</script>