极客西瓜月卡自动优惠券

This commit is contained in:
“wanyongkang”
2021-04-13 16:13:46 +08:00
parent 9c92fe06e7
commit 9398e54ab0
8 changed files with 57 additions and 22 deletions

View File

@@ -94,7 +94,11 @@
<p class="grayText">@Model.Package.Profile</p>
</div>
<div class="item">
¥ <span class="price">@Model.Package.Price</span>
@if(Model.Package.Price < 60 && (Model.Package.Id == 64||Model.Package.Id == 1004)){
<span class="price">60.00</span>
} else {
<span class="price">@Model.Package.Price</span>
}
</div>
</div>
</div>
@@ -426,6 +430,10 @@
computed: {
OneTotalAmount: function () {
var total= this.OneBuyModel.Price * this.OneBuyModel.ConnectCount
//西瓜极客优惠券
if((@(Model.Package.Id) == 64||@(Model.Package.Id) == 1004) && @(Model.Package.Price)<60){
total = this.OneBuyModel.ConnectCount * 60.00
}
return total.toFixed(2);
},
OnePayAmount: function () {
@@ -436,6 +444,10 @@
},
MoreTotalAmount: function () {
var total= this.MoreBuyModel.Price * this.MoreBuyModel.ConnectCount * this.MoreBuyModel.MaxPostfix;
//西瓜极客优惠券
if((@(Model.Package.Id) == 64||@(Model.Package.Id) == 1004) && @(Model.Package.Price)<60){
total = this.MoreBuyModel.ConnectCount * 60.00 * this.MoreBuyModel.MaxPostfix
}
return total.toFixed(2);
},
MorePayAmount: function () {