提交代码

This commit is contained in:
zpc 2025-04-12 20:06:41 +08:00
parent f803fb7061
commit e1626057d6

View File

@ -62,7 +62,7 @@
<template>
<view v-if="pay_coupon" class="card-row" @click="$emit('to-coupon')">
<view v-if="pay_coupon" class="card-row" @click="toCoupon">
<view class="title">优惠券</view>
<view class="row-r">
@ -195,15 +195,15 @@ export default {
type: Number,
default: 1
}
},
},
watch: {
// // props
// couponData(val) {
// console.log('couponData',val);
// },
},
// // props
// couponData(val) {
// console.log('couponData',val);
// },
},
data() {
//pageData.goods.type
return {
@ -231,7 +231,17 @@ export default {
},
methods: {
toCoupon() {
if (this.pageData != null && this.pageData.limitInfo != null) {
let limitInfo = this.pageData.limitInfo;
if (this.pageData.limitInfo.coupon_limit > 0 && limitInfo.user_coupon_remaining <= 0) {
this.$c.msg("今日使用优惠卷已达到上限")
return;
}
}
this.$emit('to-coupon')
},
setPayType(good_extend) {
if (good_extend != null) {
//
@ -260,6 +270,7 @@ export default {
if (this.orderData != null && this.orderData.goods_extend != null) {
this.setPayType(this.orderData.goods_extend);
}
this.$refs.popup.open();
},
@ -276,7 +287,7 @@ export default {
*/
changePayMethod(method) {
console.log('aaa');
if (this.is_deduction == 0) {
//
let availablePayMethods = 0;
@ -292,7 +303,7 @@ export default {
this.$emit('change-pay', method);
},
}
}
</script>