|
@@ -592,16 +592,16 @@
|
|
|
//
|
|
|
$DoPost("/subscribepay/renewUpgrade/getBuyMsg", {}, function (data) {
|
|
|
if (data.success) {
|
|
|
- area = data.area;
|
|
|
- buyerclass = data.buyerclass;
|
|
|
- areas = data.allarea;
|
|
|
- industrys = data.allindustry;
|
|
|
- cyclecount = data.cyclecount;
|
|
|
- startTime = data.start;
|
|
|
- starts = data.starttime;
|
|
|
- endTime = data.end;
|
|
|
- ends = data.endtime;
|
|
|
- oldBuyset = data.buyset;
|
|
|
+ console.log(data)
|
|
|
+ area = data.data.area;
|
|
|
+ buyerclass = data.data.buyerclass;
|
|
|
+ cyclecount = data.data.cyclecount;
|
|
|
+ startTime = data.data.start;
|
|
|
+ starts = data.data.starttime;
|
|
|
+ endTime = data.data.end;
|
|
|
+ ends = data.data.endtime;
|
|
|
+ oldBuyset = data.data.buyset;
|
|
|
+ console.log(oldBuyset)
|
|
|
monthPrice = getsubVipOrderPriceBybuyset(oldBuyset, [1, 2]);
|
|
|
yearPrice = getsubVipOrderPriceBybuyset(oldBuyset, [1, 1]);
|
|
|
//
|
|
@@ -650,18 +650,15 @@
|
|
|
areaHtml = provinceLen+"个省级区域、"+cityLen+"个市";
|
|
|
}
|
|
|
$(".item_area .label_for").text(areaHtml);
|
|
|
+ let industryLen = 0;
|
|
|
+ industryLen = oldBuyset.buyerclasscount;
|
|
|
+ if(industryLen === -1){
|
|
|
+ buyerclassHtml = "全行业";
|
|
|
+ }else{
|
|
|
+ buyerclassHtml = industryLen+"个行业";
|
|
|
+ }
|
|
|
+ $(".item_industry .label_for").text(buyerclassHtml);
|
|
|
}
|
|
|
- if(industrys !== "" && industrys !== undefined){
|
|
|
- for(var i in industrys){
|
|
|
- var industry = industrys[i];
|
|
|
- buyerclassArr.push(industry);
|
|
|
- buyerclassHtml = buyerclassArr.length+"个行业";
|
|
|
- }
|
|
|
- if(checkObj(industrys)){
|
|
|
- buyerclassHtml = "全行业";
|
|
|
- }
|
|
|
- $(".item_industry .label_for").text(buyerclassHtml);
|
|
|
- }
|
|
|
if(startTime !== "" && endTime !== "" && startTime !== undefined && endTime !== undefined){
|
|
|
console.log(startTime)
|
|
|
var start = startTime.replace(/-/g, ".");
|