自动折扣优化

This commit is contained in:
“wanyongkang”
2021-04-24 15:04:31 +08:00
parent cdb90dd217
commit 91a476850a
4 changed files with 36 additions and 2 deletions

View File

@@ -325,6 +325,12 @@
} else {
this.auto_discount_text = '';
}
//最低价
var min_cost = @(Model.Package.MinPrice) * this.OneBuyModel.ConnectCount - this.OneBuyModel.CouponAmount;
if(total<min_cost){
total = min_cost;
}
}
return total.toFixed(2);