|
@@ -248,7 +248,7 @@ var purchase = {
|
|
}
|
|
}
|
|
this.flushSelectTime(times, flag === undefined ? 1 : flag);
|
|
this.flushSelectTime(times, flag === undefined ? 1 : flag);
|
|
|
|
|
|
- coupon.updatePrice(price < 0 ? 0 : price)
|
|
|
|
|
|
+ coupon.updatePrice(Number(price) < 0 ? 0 : price)
|
|
},
|
|
},
|
|
flushSelectTime (thisValue, flag) {
|
|
flushSelectTime (thisValue, flag) {
|
|
if (this.endTime) {
|
|
if (this.endTime) {
|
|
@@ -310,6 +310,8 @@ var purchase = {
|
|
coupon.$refs.couponRef.submitStatus = false
|
|
coupon.$refs.couponRef.submitStatus = false
|
|
if (!$('.error-update-tips').is(':hidden')) {
|
|
if (!$('.error-update-tips').is(':hidden')) {
|
|
coupon.$refs.couponRef.submitStatus = true
|
|
coupon.$refs.couponRef.submitStatus = true
|
|
|
|
+ } else {
|
|
|
|
+ coupon.$refs.couponRef.submitStatus = false
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
$('.vip-footer.renew .confirm').prop('disabled', true)
|
|
$('.vip-footer.renew .confirm').prop('disabled', true)
|