购买自动升级折扣
This commit is contained in:
@@ -512,6 +512,8 @@
|
||||
var total = this.OneBuyModel.Price * this.OneBuyModel.ConnectCount - this.OneBuyModel.CouponAmount ;
|
||||
total = total < 0 ? 0 : total;
|
||||
|
||||
total = parseFloat(total.toFixed(2));
|
||||
|
||||
if(@(userEntity.agent_id) == 0){
|
||||
var consume_value = @(userEntity.ConsumeAmount);
|
||||
var cost_money = total + consume_value;
|
||||
@@ -544,6 +546,7 @@
|
||||
} else {
|
||||
this.auto_discount_text = '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return total.toFixed(2);
|
||||
@@ -560,6 +563,7 @@
|
||||
var restAmout = this.MoreBuyModel.UseAccountAmount == 1 ? this.RestAmount : 0;
|
||||
var total = this.MoreBuyModel.Price * this.MoreBuyModel.ConnectCount * this.MoreBuyModel.MaxPostfix - this.MoreBuyModel.CouponAmount ;
|
||||
total = total < 0 ? 0 : total;
|
||||
total = parseFloat(total.toFixed(2));
|
||||
|
||||
if(@(userEntity.agent_id) == 0){
|
||||
var consume_value = @(userEntity.ConsumeAmount);
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user