价格方案优化

This commit is contained in:
“wanyongkang”
2021-05-11 14:32:34 +08:00
parent 5305cb5e12
commit 7178575309
12 changed files with 43 additions and 287 deletions

View File

@@ -38,7 +38,7 @@
<a target="_blank" href="https://item.taobao.com/item.htm?spm=a230r.1.14.54.79837218R25iC8&id=640496688304&ns=1&abbucket=9#detail"><h4 style="color: #e45b4b;">欢迎淘宝下单每次下单都会随机赠送优惠券最低54元<br>优惠券支持所有套餐!<span style="color:#FFFF00;">点击去淘宝店铺付款&nbsp;<span class="glyphicon glyphicon-arrow-right"></span></span></h4></a>
</div>
<div class="col-md-3 col-md-offset-1" style="padding-top:2%;">
<h1>总消费满<span style="color: red;font-size:49px;">200</span>元,即可享受超值优惠价</h1>
<h1>需求<span style="color: red;font-size:49px;">五个</span>以上</h1>
<h2>联系客服设置优惠价</h2>
<a target="_blank" href="https://admin.qidian.qq.com/template/blue/mp/menu/qr-code-jump.html?linkType=0&env=ol&kfuin=2852138148&fid=299&key=f377ec024ca45115a03a7632c7bda230&cate=1&source=&isLBS=&isCustomEntry=&type=16&ftype=1&_type=wpa&qidian=true"><h3 style="color: #e45b4b;">>>>联系客服<<<</h3></a>
</div>

View File

@@ -30,7 +30,7 @@
<a target="_blank" href="https://item.taobao.com/item.htm?spm=a230r.1.14.54.79837218R25iC8&id=640496688304&ns=1&abbucket=9#detail"><h4 style="color: #e45b4b;">欢迎淘宝下单每次下单都会随机赠送优惠券最低54元<br>优惠券支持所有套餐!<span style="color:#FFFF00;">点击去淘宝店铺付款&nbsp;<span class="glyphicon glyphicon-arrow-right"></span></span></h4></a>
</div>
<div class="col-md-3 col-md-offset-1" style="padding-top:2%;">
<h1>总消费满<span style="color: red;font-size:49px;">200</span>元,即可享受超值优惠价</h1>
<h1>需求<span style="color: red;font-size:49px;">五个</span>以上</h1>
<h2>联系客服设置优惠价</h2>
<a target="_blank" href="https://admin.qidian.qq.com/template/blue/mp/menu/qr-code-jump.html?linkType=0&env=ol&kfuin=2852138148&fid=299&key=f377ec024ca45115a03a7632c7bda230&cate=1&source=&isLBS=&isCustomEntry=&type=16&ftype=1&_type=wpa&qidian=true"><h3 style="color: #e45b4b;">>>>联系客服<<<</h3></a>
</div>

View File

@@ -458,45 +458,13 @@
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;
var discount = 100;
if (cost_money>=200 && cost_money<500){
discount = 90;
this.auto_discount_text = '自动升级至 9 折会员';
} else if(cost_money>=500 && cost_money<1500) {
discount = 80;
this.auto_discount_text = '自动升级至 8 折会员';
} else if(cost_money>=1500 && cost_money<3000) {
discount = 70;
this.auto_discount_text = '自动升级至 7 折会员';
} else if(cost_money>=3000 && cost_money<6000) {
discount = 65;
this.auto_discount_text = '自动升级至 6.5 折会员';
} else if(cost_money>=6000) {
discount = 60;
this.auto_discount_text = '自动升级至 6 折会员';
}
var need_cost = 100000000;
if(discount != 100){
need_cost = @(Model.Package.LinePrice) * this.OneBuyModel.ConnectCount * discount / 100 - this.OneBuyModel.CouponAmount;
}
if(need_cost<total){
total = need_cost;
} 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);
},
@@ -514,45 +482,14 @@
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;
var discount = 100;
if (cost_money>=200 && cost_money<500){
discount = 90;
this.auto_discount_text = '自动升级至 9 折会员';
} else if(cost_money>=500 && cost_money<1500) {
discount = 80;
this.auto_discount_text = '自动升级至 8 折会员';
} else if(cost_money>=1500 && cost_money<3000) {
discount = 70;
this.auto_discount_text = '自动升级至 7 折会员';
} else if(cost_money>=3000 && cost_money<6000) {
discount = 65;
this.auto_discount_text = '自动升级至 6.5 折会员';
} else if(cost_money>=6000) {
discount = 60;
this.auto_discount_text = '自动升级至 6 折会员';
}
var need_cost = 100000000;
if(discount != 100){
need_cost = @(Model.Package.LinePrice) * this.MoreBuyModel.ConnectCount * this.MoreBuyModel.MaxPostfix * discount / 100 - this.MoreBuyModel.CouponAmount;
}
if(need_cost<total){
total = need_cost;
} else {
this.auto_discount_text = '';
}
//最低价
var min_cost = @(Model.Package.MinPrice) * this.MoreBuyModel.ConnectCount * this.MoreBuyModel.MaxPostfix - this.OneBuyModel.CouponAmount;
if(total<min_cost){
total = min_cost;
}
}
return total.toFixed(2);
}

View File

@@ -228,45 +228,13 @@
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;
var discount = 100;
if (cost_money>=200 && cost_money<500){
discount = 90;
this.auto_discount_text = '自动升级至 9 折会员';
} else if(cost_money>=500 && cost_money<1500) {
discount = 80;
this.auto_discount_text = '自动升级至 8 折会员';
} else if(cost_money>=1500 && cost_money<3000) {
discount = 70;
this.auto_discount_text = '自动升级至 7 折会员';
} else if(cost_money>=3000 && cost_money<6000) {
discount = 65;
this.auto_discount_text = '自动升级至 6.5 折会员';
} else if(cost_money>=6000) {
discount = 60;
this.auto_discount_text = '自动升级至 6 折会员';
}
var need_cost = 100000000;
if(discount != 100){
need_cost = @(Model.Package.LinePrice) * this.OneBuyModel.ConnectCount * count * discount / 100 - this.OneBuyModel.CouponAmount;
}
if(need_cost<total){
total = need_cost;
} else {
this.auto_discount_text = '';
}
//最低价
var min_cost = @(Model.Package.MinPrice) * this.OneBuyModel.ConnectCount * count - this.OneBuyModel.CouponAmount;
if(total<min_cost){
total = min_cost;
}
}
return total.toFixed(2);
}