购买自动升级折扣

This commit is contained in:
“wanyongkang”
2021-04-23 18:17:13 +08:00
parent dbca60c95a
commit 746edaf5db
4 changed files with 137 additions and 0 deletions

View File

@@ -290,6 +290,7 @@
var restAmout = this.OneBuyModel.UseAccountAmount == 1 ? this.RestAmount : 0;
var total = this.OneBuyModel.Price * this.OneBuyModel.ConnectCount * count - this.OneBuyModel.CouponAmount ;
total= total < 0 ? 0 : total;
total = parseFloat(total.toFixed(2));
//自动折扣
if(@(userEntity.agent_id) == 0){