|
@@ -542,10 +542,14 @@
|
|
|
var psss = 0;
|
|
|
for (var index in object) {
|
|
|
var obj = object[index];
|
|
|
- var isUsedActiveCode = false
|
|
|
+ var isUsedActiveCode = false;
|
|
|
+ var isLiveActive = false;
|
|
|
if(obj.isLiveActive){
|
|
|
- isUsedActiveCode = true;
|
|
|
+ isLiveActive = true;
|
|
|
}
|
|
|
+ if(obj.isUsedActiveCode){
|
|
|
+ isUsedActiveCode = true;
|
|
|
+ }
|
|
|
if (obj.product_type == "历史数据") {
|
|
|
count++;
|
|
|
var id = obj.id;
|
|
@@ -1155,6 +1159,21 @@
|
|
|
iconHtml += '<div class="card-footer">'
|
|
|
+ '</div>'
|
|
|
}
|
|
|
+ if(filter_vip.cyclecount!=undefined&&filter_vip.cyclecount!=""&&filter_vip.cycleunit!=undefined&&filter_vip.cycleunit!=""){
|
|
|
+ if(parseInt(filter_vip.cycleunit)==1){
|
|
|
+ effectiveduration_vip=filter_vip.cyclecount+"年"
|
|
|
+ }else if(parseInt(filter_vip.cycleunit)==2){
|
|
|
+ effectiveduration_vip=filter_vip.cyclecount+"个月"
|
|
|
+ }else{
|
|
|
+ effectiveduration_vip="7天"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(filter_vip.cycleunit==0&&filter_vip.cyclecount==0){
|
|
|
+ effectiveduration_vip="不延期";
|
|
|
+ }
|
|
|
+ if(isUsedActiveCode){
|
|
|
+ effectiveduration_vip = effectiveduration_vip+ '<span class="discount-container"><span>+</span><span class="highlight-text">赠送30天</span></span>'
|
|
|
+ }
|
|
|
//vip状态 0不是vip 1试用 2正式
|
|
|
if (orderStatus_vip != "已完成") {
|
|
|
//未支付 或 已取消
|
|
@@ -1174,7 +1193,7 @@
|
|
|
+ '<p class="item-ifo ellipsis">订阅周期:' + effectiveduration_vip + '</p>';
|
|
|
//}
|
|
|
listhtml += '</div></a>'
|
|
|
- if(isUsedActiveCode){
|
|
|
+ if(isLiveActive){
|
|
|
var activeDiscount = {{Msg "seo" "activeDiscount"}};
|
|
|
var originPrice = (parseFloat(orderMoney_vip) / parseFloat(activeDiscount)).toFixed(2);
|
|
|
listhtml += '<div class="price">'
|
|
@@ -1214,7 +1233,7 @@
|
|
|
+ '<p class="item-ifo ellipsis">有效日期:' + effectivetime_vip + '</p>';
|
|
|
//}
|
|
|
listhtml += '</div></a>'
|
|
|
- if(isUsedActiveCode){
|
|
|
+ if(isLiveActive){
|
|
|
var activeDiscount = {{Msg "seo" "activeDiscount"}};
|
|
|
var originPrice = (parseFloat(orderMoney_vip) / parseFloat(activeDiscount)).toFixed(2);
|
|
|
listhtml += '<div class="price">'
|