Authored by 郭成尧

sure-btn

... ... @@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2017-06-23 11:43:44
* @Last Modified by: Targaryen
* @Last Modified time: 2017-07-24 17:49:36
* @Last Modified time: 2017-08-08 15:19:46
*/
require('cart/select-coupon.page.css');
const qs = require('yoho-qs');
... ... @@ -106,7 +106,11 @@ $useCoupon.on('click', function() {
}
orderInfo('coupon_code', couponCodeArray.join(','));
goToBack();
if (couponCodeArray.length > 0) {
goToBack();
} else {
tip.show('请选择优惠券');
}
});
/**
... ...
... ... @@ -100,7 +100,11 @@ $useCoupon.on('click', function() {
}
orderInfo('couponCode', couponCodeArray.join(','));
goToBack();
if (couponCodeArray.length > 0) {
goToBack();
} else {
tip.show('请选择优惠券');
}
});
/**
... ...