|
@@ -293,6 +293,8 @@
|
|
gopayIndex = $(e).parent().parent().index();
|
|
gopayIndex = $(e).parent().parent().index();
|
|
if(res.status == 1){
|
|
if(res.status == 1){
|
|
onBridgeReady(res,e);
|
|
onBridgeReady(res,e);
|
|
|
|
+ //更新token
|
|
|
|
+ $(e).attr("token",res.token);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -458,12 +460,9 @@
|
|
var self = $(obj).parent().parent();
|
|
var self = $(obj).parent().parent();
|
|
var parent = self.parent();
|
|
var parent = self.parent();
|
|
deleteIndex=self.index();
|
|
deleteIndex=self.index();
|
|
- //删除索引存入缓存
|
|
|
|
- //sessionStorage.setItem("deleteIndex",deleteIndex);
|
|
|
|
dataCache.splice(deleteIndex,1)
|
|
dataCache.splice(deleteIndex,1)
|
|
if(data.res!=null){
|
|
if(data.res!=null){
|
|
dataCache.push(data.res[0])
|
|
dataCache.push(data.res[0])
|
|
- // hasNextPage=data.hasNextPage;
|
|
|
|
hasNextPage=data.nextPage;
|
|
hasNextPage=data.nextPage;
|
|
}
|
|
}
|
|
self.remove();
|
|
self.remove();
|
|
@@ -474,9 +473,9 @@
|
|
ok: {
|
|
ok: {
|
|
text: '确定',
|
|
text: '确定',
|
|
btnClass: 'btn-primary-2',
|
|
btnClass: 'btn-primary-2',
|
|
- action: function() {
|
|
|
|
- console.log(data)
|
|
|
|
- console.log(data.res.product_type);
|
|
|
|
|
|
+ action: function() {
|
|
|
|
+ console.log(data)
|
|
|
|
+ console.log(data.res.product_type);
|
|
if(parent.children("div").length==0){
|
|
if(parent.children("div").length==0){
|
|
nodataHtml=""
|
|
nodataHtml=""
|
|
nodataHtml+='<div style="text-align:center;">';
|
|
nodataHtml+='<div style="text-align:center;">';
|
|
@@ -485,302 +484,7 @@
|
|
$(".card_lists").append(nodataHtml);
|
|
$(".card_lists").append(nodataHtml);
|
|
$(".dropload-down").hide();
|
|
$(".dropload-down").hide();
|
|
}else{//删除一条数据 往后铺一条数据
|
|
}else{//删除一条数据 往后铺一条数据
|
|
- if(data.res[0].product_type=="历史数据"){
|
|
|
|
- console.log("历史数据")
|
|
|
|
- var listhtml=""
|
|
|
|
- var oneD=data.res;
|
|
|
|
- for(var index in oneD){
|
|
|
|
- var obj=oneD[index];
|
|
|
|
- count++;
|
|
|
|
- var id = obj.id;
|
|
|
|
- //订单编号
|
|
|
|
- var orderCode = obj.order_code;
|
|
|
|
- //创建时间
|
|
|
|
- var createTime=obj.create_time;
|
|
|
|
- createTime=createTime.replace(/-/g,".")
|
|
|
|
- //选择时间
|
|
|
|
- var publishTime = obj.filter_publishtime;
|
|
|
|
- if(!publishTime){
|
|
|
|
- publishTime = "全部";
|
|
|
|
- }else{
|
|
|
|
- if(publishTime.length==11){
|
|
|
|
- if(publishTime.slice(0,1)!="_"){
|
|
|
|
- var publishtime_=publishTime.slice(0,10);
|
|
|
|
- publishTime=timestampToTime(publishtime_);
|
|
|
|
- publishTime=publishTime+"-";
|
|
|
|
- }else{
|
|
|
|
- var publishtime_=publishTime.slice(1,11);
|
|
|
|
- publishTime=timestampToTime(publishtime_);
|
|
|
|
- publishTime=publishTime+"前全部";
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- //1标准字段包 2高级字段包
|
|
|
|
- var spec = obj.data_spec;
|
|
|
|
- if(spec==1){
|
|
|
|
- spec ="标准字段包";
|
|
|
|
- }else if(spec ==2){
|
|
|
|
- spec="高级字段包";
|
|
|
|
- }
|
|
|
|
- //订单状态 0待支付 1已完成 -1删除
|
|
|
|
- var orderStatus = obj.order_status;
|
|
|
|
- if(orderStatus==0){
|
|
|
|
- orderStatus="待付款"
|
|
|
|
- orderHtml=""
|
|
|
|
- orderHtml+='<span class="status notpay">'+orderStatus+'</span>'
|
|
|
|
- orderHtml+="<a class=\"shanchu iconfont icon-shanchu\" title=\"删除订单\" onclick=\"deleteOrder(" + id +",this)\"></a>";
|
|
|
|
- iconHtml=""
|
|
|
|
- iconHtml+='<div class="card-footer">'
|
|
|
|
- +'<a class="btn cancle" onclick="deleteOrder('+id+',this)">取消订单</a>'
|
|
|
|
- +'<a href="pay_order.html" class="btn pay">去支付</a>'
|
|
|
|
- +'</div>'
|
|
|
|
- }else if(orderStatus==1){
|
|
|
|
- orderStatus="已完成";
|
|
|
|
- orderHtml=""
|
|
|
|
- orderHtml+='<span class="status">'+orderStatus+'</span>'
|
|
|
|
- orderHtml+="<a class=\"shanchu iconfont icon-shanchu\" title=\"删除订单\" onclick=\"deleteOrder(" + id +",this)\"></a>";
|
|
|
|
- iconHtml=""
|
|
|
|
- iconHtml+='<div class="card-footer">'
|
|
|
|
- +'<a onclick="onceMore(this)" class="btn cancle">再次购买</a>'
|
|
|
|
- +'</div>'
|
|
|
|
- }
|
|
|
|
- //订单总数
|
|
|
|
- var data_count=obj.data_count;
|
|
|
|
- //订单金额
|
|
|
|
- var orderMoney = obj.order_money;
|
|
|
|
- //金额格式化 小数点前 1,000
|
|
|
|
- orderMoney=orderMoney+"";
|
|
|
|
- orderMoney_1=toThousands(orderMoney.split(".")[0]);
|
|
|
|
- orderMoney_2=orderMoney.split(".")[1];
|
|
|
|
- if(orderMoney_2){
|
|
|
|
- orderMoney=orderMoney_1+"."+orderMoney_2;
|
|
|
|
- }else{
|
|
|
|
- orderMoney=orderMoney_1;
|
|
|
|
- }
|
|
|
|
- //
|
|
|
|
- var token = obj.token;
|
|
|
|
- //关键词
|
|
|
|
- if(obj.filter_keys && obj.filter_keys.split(",").length>0){
|
|
|
|
- var keysHtml="";
|
|
|
|
- var keysArr = obj.filter_keys.split(",");
|
|
|
|
- var keysLen = keysArr.length;for(var j=0;j<keysLen;j++){
|
|
|
|
- keysHtml += "<span>" + keysArr[j] + " </span>";
|
|
|
|
- }
|
|
|
|
- }else{
|
|
|
|
- keysHtml=""
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- listhtml+='<div class="card">'
|
|
|
|
- +'<div class="card-header">'
|
|
|
|
- +'<span class="time" style="color:#888888">'+createTime+'</span>'
|
|
|
|
- +orderHtml
|
|
|
|
- +'</div>'
|
|
|
|
- +'<div class="card-content">'
|
|
|
|
- +'<a eid='+orderCode+' class="media">'
|
|
|
|
- +'<div class="media-img">'
|
|
|
|
- +'<img src="/dataExport/image/historical_data.png">'
|
|
|
|
- +'</div>'
|
|
|
|
- +'<div class="media-info">'
|
|
|
|
- +'<p class="item-ifo ellipsis">关键词:'+ keysHtml+'</p>'
|
|
|
|
- +'<p class="item-ifo ellipsis">数据量:'+ data_count +'条</p>'
|
|
|
|
- +'<p class="item-ifo ellipsis">数据规格:'+spec+'</p>'
|
|
|
|
- +'<p class="item-ifo ellipsis">筛选日期:'+publishTime+'</p>'
|
|
|
|
- +'</div>'
|
|
|
|
- +'</a>'
|
|
|
|
- +'<div class="price">'
|
|
|
|
- +'<strong class="current">¥'+orderMoney+'</strong>'
|
|
|
|
- +'</div>'
|
|
|
|
- +'</div>'
|
|
|
|
- +iconHtml
|
|
|
|
- +'</div>'
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- //删除完成后补的订单仍可点击
|
|
|
|
- appendList($(listhtml));
|
|
|
|
- }else if (data.res[0].product_type=="vip订阅"){
|
|
|
|
- console.log("vip订阅");
|
|
|
|
- var listhtml=""
|
|
|
|
- var oneD=data.res;
|
|
|
|
- for(var index in oneD){
|
|
|
|
- var obj=oneD[index];
|
|
|
|
- count++;
|
|
|
|
- var id = obj.id;
|
|
|
|
- //订单编号
|
|
|
|
- var orderCode = obj.order_code;
|
|
|
|
- //创建时间
|
|
|
|
- var createTime=obj.create_time;
|
|
|
|
- createTime=createTime.replace(/-/g,".")
|
|
|
|
- //选择时间
|
|
|
|
- var publishTime = obj.filter_publishtime;
|
|
|
|
- if(!publishTime){
|
|
|
|
- publishTime = "全部";
|
|
|
|
- }else{
|
|
|
|
- if(publishTime.length==11){
|
|
|
|
- if(publishTime.slice(0,1)!="_"){
|
|
|
|
- var publishtime_=publishTime.slice(0,10);
|
|
|
|
- publishTime=timestampToTime(publishtime_);
|
|
|
|
- publishTime=publishTime+"-";
|
|
|
|
- }else{
|
|
|
|
- var publishtime_=publishTime.slice(1,11);
|
|
|
|
- publishTime=timestampToTime(publishtime_);
|
|
|
|
- publishTime=publishTime+"前全部";
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- //筛选条件
|
|
|
|
- var filter_vip = JSON.parse(obj.filter);
|
|
|
|
- //地区
|
|
|
|
- var region_vipArr = filter_vip.area;
|
|
|
|
- var region_vip=""
|
|
|
|
- var province_length=0;
|
|
|
|
- var city_length=0;
|
|
|
|
- for( i in region_vipArr){
|
|
|
|
- if(region_vipArr[i].length==0){
|
|
|
|
- province_length++;
|
|
|
|
- }else{
|
|
|
|
- city_length+=region_vipArr[i].length;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- region_vip=province_length+"个省级区域、"+city_length+"个地市";
|
|
|
|
- //行业
|
|
|
|
- var industry_vip = filter_vip.industry.length; //数组
|
|
|
|
- var cyclecount_vip = filter_vip.cyclecount; //时长
|
|
|
|
- var cycleunit_vip = filter_vip.cycleunit; //单位 1:年 2:月
|
|
|
|
- //订阅周期
|
|
|
|
- var effectiveduration_vip=""
|
|
|
|
- if(cycleunit_vip==1){
|
|
|
|
- effectiveduration_vip=cyclecount_vip+"年";
|
|
|
|
- }else if(cycleunit_vip==2){
|
|
|
|
- effectiveduration_vip=cyclecount_vip+"个月"
|
|
|
|
- }
|
|
|
|
- var vip_status =obj.i_vip_status; // 1:试用 2:正式 -1:试用到期 -2:正式到期
|
|
|
|
- if(obj.i_vip_status=="1"){ //试用
|
|
|
|
- effectiveduration_vip="7天";
|
|
|
|
- }
|
|
|
|
- //订单状态 0待支付 1已完成 -1删除
|
|
|
|
- var orderStatus_vip = obj.order_status;
|
|
|
|
- var token_vip = obj.token;
|
|
|
|
- if(sessionStorage&&sessionStorage.getItem("paySuccess_"+obj.order_code)!=null){
|
|
|
|
- orderStatus = sessionStorage.getItem("paySuccess_"+obj.order_code);
|
|
|
|
- if (orderTabActive==1&&orderStatus==1){
|
|
|
|
- gopayIndex = index;
|
|
|
|
- psss=obj.order_code;
|
|
|
|
- continue;
|
|
|
|
- }else{
|
|
|
|
- sessionStorage.removeItem("paySuccess_"+obj.order_code);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- //订单金额
|
|
|
|
- var orderMoney_vip = obj.order_money;
|
|
|
|
- //金额格式化 小数点前 1,000
|
|
|
|
- orderMoney_vip=orderMoney_vip+"";
|
|
|
|
- orderMoney_vip1=toThousands(orderMoney_vip.split(".")[0]);
|
|
|
|
- orderMoney_vip2=orderMoney_vip.split(".")[1];
|
|
|
|
- if(orderMoney_vip2){
|
|
|
|
- orderMoney_vip=orderMoney_vip1+"."+orderMoney_vip2;
|
|
|
|
- }else{
|
|
|
|
- orderMoney_vip=orderMoney_vip1;
|
|
|
|
- }
|
|
|
|
- if(orderStatus_vip==0){
|
|
|
|
- orderStatus_vip="待付款"
|
|
|
|
- orderHtml=""
|
|
|
|
- orderHtml+='<span class="status notpay">'+orderStatus_vip+'</span>'
|
|
|
|
- orderHtml+="<a class=\"shanchu iconfont icon-shanchu\" title=\"删除订单\" onclick=\"deleteOrder(" + id_vip +",this)\"></a>";
|
|
|
|
- iconHtml=""
|
|
|
|
- iconHtml+='<div class="card-footer">'
|
|
|
|
- +'<a class="btn cancle" onclick="cancelOrder('+id_vip+',this)">取消订单</a>'
|
|
|
|
- +'<a href="javascript:void(0)" onclick="goPay(this)" class="btn pay" filterid="'+obj.filter_id+'" token="'+token_vip+'" id="'+id_vip+'">去支付</a>'
|
|
|
|
- +'</div>'
|
|
|
|
- }else if(orderStatus_vip==1){
|
|
|
|
- orderStatus_vip="已完成";
|
|
|
|
- orderHtml=""
|
|
|
|
- orderHtml+='<span class="status">'+orderStatus_vip+'</span>'
|
|
|
|
- orderHtml+="<a class=\"shanchu iconfont icon-shanchu\" title=\"删除订单\" onclick=\"deleteOrder(" + id_vip +",this)\"></a>";
|
|
|
|
- iconHtml=""
|
|
|
|
- //最后一次购买完 1:试用 2:正式 -1:试用到期 -2:正式到期
|
|
|
|
- if((vip_status=="-2")&&(obj.lastbuy_code!="")){
|
|
|
|
- iconHtml+='<div class="card-footer">'
|
|
|
|
- +'<a onclick="renewalOrBuyAgain(2,this)" class="btn cancle">再次购买</a>'
|
|
|
|
- +'</div>'
|
|
|
|
- }else if((vip_status=="2")&&(obj.lastbuy_code!="")){
|
|
|
|
- iconHtml+='<div class="card-footer">'
|
|
|
|
- +'<a onclick="renewalOrBuyAgain(1,this)" class="btn cancle">续费</a>'
|
|
|
|
- +'</div>'
|
|
|
|
- }
|
|
|
|
- }else if(orderStatus_vip==-2){
|
|
|
|
- orderStatus_vip="已取消";
|
|
|
|
- orderHtml="";
|
|
|
|
- orderHtml+='<span class="status">'+orderStatus_vip+'</span>'
|
|
|
|
- orderHtml+="<a class=\"shanchu iconfont icon-shanchu\" title=\"删除订单\" onclick=\"deleteOrder(" + id_vip +",this)\"></a>";
|
|
|
|
- iconHtml="";
|
|
|
|
- iconHtml+='<div class="card-footer">'
|
|
|
|
- // +'<a onclick="renewalOrBuyAgain(2,this)" class="btn cancle">再次购买</a>'
|
|
|
|
- +'</div>'
|
|
|
|
- }
|
|
|
|
- //vip状态 0不是vip 1试用 2正式
|
|
|
|
- var status_vip = obj.i_vip_status;
|
|
|
|
- if (orderStatus_vip!="已完成"){
|
|
|
|
- //未支付 或 已取消
|
|
|
|
- listhtml+='<div class="card">'
|
|
|
|
- +'<div class="card-header">'
|
|
|
|
- +'<span class="time" style="color:#888888">'+createTime_vip+'</span>'
|
|
|
|
- +orderHtml
|
|
|
|
- +'</div>'
|
|
|
|
- +'<div class="card-content">'
|
|
|
|
- +'<a eid='+orderCode_vip+' class="media" isvipOrder="true">'
|
|
|
|
- +'<div class="media-img">'
|
|
|
|
- +'<img src="/vipsubscribe/image/vip_order.png">'
|
|
|
|
- +'</div>'
|
|
|
|
- +'<div class="media-info">'
|
|
|
|
- +'<p class="item-ifo ellipsis">区域:'+ region_vip+'</p>'
|
|
|
|
- +'<p class="item-ifo ellipsis">行业:'+ industry_vip +'个行业</p>'
|
|
|
|
- +'<p class="item-ifo ellipsis">订阅周期:'+effectiveduration_vip+'</p>'
|
|
|
|
- +'</div>'
|
|
|
|
- +'</a>'
|
|
|
|
- +'<div class="price">'
|
|
|
|
- +'<strong class="current">¥'+orderMoney_vip+'</strong>'
|
|
|
|
- +'</div>'
|
|
|
|
- +'</div>'
|
|
|
|
- +iconHtml
|
|
|
|
- +'</div>'
|
|
|
|
- }else{
|
|
|
|
- //有效时间
|
|
|
|
- var starttime_vip= obj.l_vip_starttime;
|
|
|
|
- var endtime_vip= obj.l_vip_endtime;
|
|
|
|
- starttime_vip = timestampToTime(starttime_vip)
|
|
|
|
- endtime_vip = timestampToTime(endtime_vip)
|
|
|
|
- var effectivetime_vip =starttime_vip+"-"+endtime_vip;
|
|
|
|
- //已完成
|
|
|
|
- listhtml+='<div class="card">'
|
|
|
|
- +'<div class="card-header">'
|
|
|
|
- +'<span class="time" style="color:#888888">'+createTime_vip+'</span>'
|
|
|
|
- +orderHtml
|
|
|
|
- +'</div>'
|
|
|
|
- +'<div class="card-content">'
|
|
|
|
- +'<a eid='+orderCode_vip+' class="media" isvipOrder="true">'
|
|
|
|
- +'<div class="media-img">'
|
|
|
|
- +'<img src="/vipsubscribe/image/vip_order.png">'
|
|
|
|
- +'</div>'
|
|
|
|
- +'<div class="media-info">'
|
|
|
|
- +'<p class="item-ifo ellipsis">区域:'+ region_vip+'</p>'
|
|
|
|
- +'<p class="item-ifo ellipsis">行业:'+ industry_vip +'个行业</p>'
|
|
|
|
- +'<p class="item-ifo ellipsis">订阅周期:'+effectiveduration_vip+'</p>'
|
|
|
|
- +'<p class="item-ifo ellipsis">有效日期:'+effectivetime_vip+'</p>'
|
|
|
|
- +'</div>'
|
|
|
|
- +'</a>'
|
|
|
|
- +'<div class="price">'
|
|
|
|
- +'<strong class="current">¥'+orderMoney_vip+'</strong>'
|
|
|
|
- +'</div>'
|
|
|
|
- +'</div>'
|
|
|
|
- +iconHtml
|
|
|
|
- +'</div>'
|
|
|
|
- }
|
|
|
|
- }//for end
|
|
|
|
- //删除完成后补的订单仍可点击
|
|
|
|
- appendList($(listhtml));
|
|
|
|
- } //vip订阅 end
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ structureHtml(data.res);
|
|
}//铺数据 end
|
|
}//铺数据 end
|
|
if(parent.children("div").length<10){
|
|
if(parent.children("div").length<10){
|
|
$(".dropload-refresh").text("没有更多了");
|
|
$(".dropload-refresh").text("没有更多了");
|
|
@@ -927,12 +631,12 @@
|
|
$(".card_lists").append(nodataHtml);
|
|
$(".card_lists").append(nodataHtml);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- //return 的是 暂无数据的情况noDataHtml
|
|
|
|
- if(!result){
|
|
|
|
- $(".dropload-down").hide()
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|
|
|
|
+ //return 的是 暂无数据的情况noDataHtml
|
|
|
|
+ if(!result){
|
|
|
|
+ $(".dropload-down").hide()
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if(hasNextPage){
|
|
if(hasNextPage){
|
|
wxflag = $(' .main').dropload({
|
|
wxflag = $(' .main').dropload({
|
|
scrollArea : $(".main"),
|
|
scrollArea : $(".main"),
|
|
@@ -967,7 +671,7 @@
|
|
});
|
|
});
|
|
noMoreData(wxflag);
|
|
noMoreData(wxflag);
|
|
}
|
|
}
|
|
- },300)
|
|
|
|
|
|
+ },500)
|
|
}
|
|
}
|
|
|
|
|
|
function structureHtml(object){
|
|
function structureHtml(object){
|
|
@@ -1098,7 +802,7 @@
|
|
+'</div>'
|
|
+'</div>'
|
|
+iconHtml
|
|
+iconHtml
|
|
+'</div>'
|
|
+'</div>'
|
|
- }else if(obj.product_type=="vip订阅"){
|
|
|
|
|
|
+ }else if((obj.product_type=="vip订阅")||(obj.product_type=="VIP订阅")){
|
|
count++;
|
|
count++;
|
|
var id_vip = obj.id;
|
|
var id_vip = obj.id;
|
|
//订单编号
|
|
//订单编号
|
|
@@ -1117,20 +821,22 @@
|
|
if(region_vipArr[i].length==0){
|
|
if(region_vipArr[i].length==0){
|
|
province_length++;
|
|
province_length++;
|
|
}else{
|
|
}else{
|
|
- city_length+=region_vipArr[i].length;
|
|
|
|
|
|
+ city_length+=region_vipArr[i].count;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
region_vip=province_length+"个省级区域、"+city_length+"个地市";
|
|
region_vip=province_length+"个省级区域、"+city_length+"个地市";
|
|
//行业
|
|
//行业
|
|
- var industry_vip = filter_vip.industry.length; //数组
|
|
|
|
|
|
+ var industry_vip = filter_vip.industry.count; //数组
|
|
var cyclecount_vip = filter_vip.cyclecount; //时长
|
|
var cyclecount_vip = filter_vip.cyclecount; //时长
|
|
- var cycleunit_vip = filter_vip.cycleunit; //单位 1:年 2:月
|
|
|
|
|
|
+ var cycleunit_vip = filter_vip.cycleunit; //单位 1:年 2:月 3:天
|
|
//订阅周期
|
|
//订阅周期
|
|
var effectiveduration_vip=""
|
|
var effectiveduration_vip=""
|
|
if(cycleunit_vip==1){
|
|
if(cycleunit_vip==1){
|
|
effectiveduration_vip=cyclecount_vip+"年";
|
|
effectiveduration_vip=cyclecount_vip+"年";
|
|
}else if(cycleunit_vip==2){
|
|
}else if(cycleunit_vip==2){
|
|
effectiveduration_vip=cyclecount_vip+"个月"
|
|
effectiveduration_vip=cyclecount_vip+"个月"
|
|
|
|
+ }else if(cycleunit_vip==3){
|
|
|
|
+ effectiveduration_vip=cyclecount_vip+"天";
|
|
}
|
|
}
|
|
var vip_status =obj.i_vip_status; // 1:试用 2:正式 -1:试用到期 -2:正式到期
|
|
var vip_status =obj.i_vip_status; // 1:试用 2:正式 -1:试用到期 -2:正式到期
|
|
//订单状态 0待支付 1已完成 -1删除
|
|
//订单状态 0待支付 1已完成 -1删除
|
|
@@ -1193,7 +899,6 @@
|
|
+'</div>'
|
|
+'</div>'
|
|
}
|
|
}
|
|
//vip状态 0不是vip 1试用 2正式
|
|
//vip状态 0不是vip 1试用 2正式
|
|
-// var status_vip = obj.i_vip_status;
|
|
|
|
if (orderStatus_vip!="已完成"){
|
|
if (orderStatus_vip!="已完成"){
|
|
//未支付 或 已取消
|
|
//未支付 或 已取消
|
|
listhtml+='<div class="card">'
|
|
listhtml+='<div class="card">'
|
|
@@ -1220,10 +925,10 @@
|
|
+'</div>'
|
|
+'</div>'
|
|
}else{
|
|
}else{
|
|
//有效时间
|
|
//有效时间
|
|
- var starttime_vip= obj.l_vip_starttime;
|
|
|
|
- var endtime_vip= obj.l_vip_endtime;
|
|
|
|
- starttime_vip = timestampToTime(starttime_vip)
|
|
|
|
- endtime_vip = timestampToTime(endtime_vip)
|
|
|
|
|
|
+ var starttime_vip= obj.vip_starttime+"";
|
|
|
|
+ var endtime_vip= obj.vip_endtime+"";
|
|
|
|
+ starttime_vip= starttime_vip.split(" ")[0].replace(/-/g,".")
|
|
|
|
+ endtime_vip= endtime_vip.split(" ")[0].replace(/-/g,".")
|
|
var effectivetime_vip =starttime_vip+"-"+endtime_vip;
|
|
var effectivetime_vip =starttime_vip+"-"+endtime_vip;
|
|
//已完成
|
|
//已完成
|
|
listhtml+='<div class="card">'
|
|
listhtml+='<div class="card">'
|