!104 2022-1-24 Leung

Merge pull request !104 from Admin/sit-Leung
This commit is contained in:
Admin 2022-01-24 14:39:39 +00:00 committed by Gitee
commit d255a56845
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 8 additions and 2 deletions

View File

@ -91,7 +91,6 @@ export const monitorOrderNotify = (OrderNumber) => {
* 删除购物车
*/
export const deleteCart = ( productCode) => {
debugger;
var data = {
productCode
}

View File

@ -277,7 +277,14 @@ export default {
},
wholeOrderDiscount(){
this.discountedItemIndex = 0;
if(this.curCoupon.minPrice && this.curCoupon.minPrice < this.sumPrice) {
let checkResult = true;
if(this.curCoupon.minPrice && this.curCoupon.minPrice > this.sumPrice) {
checkResult = false;
}
if(this.curCoupon.couponAmount && this.curCoupon.couponAmount > this.sumPrice) {
checkResult = false;
}
if(checkResult) {
if(this.curCoupon.couponAmount && this.curCoupon.couponAmount>0) {
this.discountAmount = this.curCoupon.couponAmount;
return this.sumPrice - this.curCoupon.couponAmount;