价格方案优化
This commit is contained in:
@@ -678,15 +678,15 @@
|
||||
|
||||
<div style="font-size: 15px;">
|
||||
<h3 style="margin-top: 0px;margin-bottom: 10px;display:inline;color:red;background-color:#FFFF00;">公告</h3><a style="cursor:pointer;display:inline;float:right;" onclick="know()">X</a>
|
||||
<h4 style="margin-top: 10px;">聚IP官网已更新为自动更改折扣优惠价</h4>
|
||||
<p>总消费超过200,自动升级为白银9折</p>
|
||||
<p>总消费超过500,自动升级为黄金8折</p>
|
||||
<p>...</p>
|
||||
<p>几乎所有用户在此次自动更新后优惠都变的更大了,可能出现个别用户价格比之前的高,可联系客服帮您更改手动更改折扣。</p>
|
||||
<p>如果您对价格有疑问也可联系客服帮您更改折扣!</p>
|
||||
<p>如果您有更大用量或销量,可咨询客服获取更低的折扣!</p>
|
||||
<h4 style="margin-top: 10px;">五一活动:会员定向优惠,抄底折扣,将于5月10日结束。</h4>
|
||||
<p>活动结束后,所有会员将恢复原来价格。</p>
|
||||
<p>对价格问题若有疑问,可联系在线客服帮您调价!</p>
|
||||
<p>复工季活动,将于5月15日结束:</p>
|
||||
<p>聚IP助力开工,全部产品所有套餐9折狂欢价,月卡低至61元,量大价更低</p>
|
||||
<p>其他活动:</p>
|
||||
<p>1.动态IP一毛钱一天,每用户限一次。</p>
|
||||
<p>2.复工季,聚IP助力开工,全部产品所有套餐8折狂欢价,月卡低至50多,量大价更低!</p>
|
||||
<p>2.极客IP,西瓜IP,双月卡送一个月。</p>
|
||||
<p>3.需求5个以上可联系客服设置优惠折扣!</p>
|
||||
</div>
|
||||
|
||||
<p >
|
||||
|
||||
@@ -491,7 +491,7 @@
|
||||
|
||||
<div class="row" style="color:white;width:calc(100vw-1px);">
|
||||
<div class="col-md-3 col-md-offset-1" style="padding-top:2%;text-align:center;">
|
||||
<h3>总消费满<span style="color: red;font-size:49px;">200</span>元,即可享受超值优惠价</h3>
|
||||
<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>
|
||||
@@ -791,7 +791,7 @@
|
||||
</div>
|
||||
<div style="margin-left:26%">
|
||||
<div style="border: 1px dashed #ccc;margin-top:30px;width:50%;margin-left: 63px;background-color:#FFCC33">
|
||||
<p class="youhuiNew" style="padding-bottom:0px;">总消费满200元,即可享受超值优惠价</p>
|
||||
<p class="youhuiNew" style="padding-bottom:0px;">温馨提示:需求5个以上,可以联系客服设置优惠价</p>
|
||||
<p class="youhuiNew" style="padding-top:0px;padding-bottom:0px;">开通后有任何问题可无理由退款,并支持自助提现</p>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -370,7 +370,7 @@
|
||||
|
||||
<div class="row" style="color:white;width:calc(100vw-1px);">
|
||||
<div class="col-md-3 col-md-offset-1" style="padding-top:2%;text-align:center;">
|
||||
<h3>总消费满<span style="color: red;font-size:49px;">200</span>元,即可享受超值优惠价</h3>
|
||||
<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>
|
||||
@@ -613,7 +613,7 @@
|
||||
</div></div>
|
||||
<div style="margin-left:26%">
|
||||
<div style="border: 1px dashed #ccc;margin-top:30px;width:50%;margin-left: 63px;background-color:#FFCC33">
|
||||
<p class="youhuiNew" style="padding-bottom:0px;">总消费满200元,即可享受超值优惠价</p>
|
||||
<p class="youhuiNew" style="padding-bottom:0px;">温馨提示:需求5个以上,可以联系客服设置优惠价</p>
|
||||
<p class="youhuiNew" style="padding-top:0px;padding-bottom:0px;">开通后有任何问题可无理由退款,并支持自助提现</p>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -514,38 +514,6 @@
|
||||
|
||||
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 = '';
|
||||
}
|
||||
if(total != 0.1){
|
||||
//最低价
|
||||
var min_cost = @(Model.Package.MinPrice) * this.OneBuyModel.ConnectCount - this.OneBuyModel.CouponAmount;
|
||||
@@ -554,7 +522,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return total.toFixed(2);
|
||||
},
|
||||
@@ -572,43 +539,10 @@
|
||||
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;
|
||||
}
|
||||
//最低价
|
||||
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);
|
||||
|
||||
@@ -292,45 +292,10 @@
|
||||
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;
|
||||
}
|
||||
//最低价
|
||||
var min_cost = @(Model.Package.MinPrice) * this.OneBuyModel.ConnectCount * count - this.OneBuyModel.CouponAmount;
|
||||
if(total<min_cost){
|
||||
total = min_cost;
|
||||
}
|
||||
|
||||
return total.toFixed(2);
|
||||
|
||||
Reference in New Issue
Block a user