提交代码
This commit is contained in:
parent
f803fb7061
commit
e1626057d6
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user