|
@@ -295,6 +295,7 @@
|
|
|
this.industrySelect = JSON.parse(sessionStorage.getItem("vipSubSelectIndustry"));
|
|
|
}
|
|
|
{{if eq .T.orderType 5 }}
|
|
|
+ $('#payHandle').text("立即续费");
|
|
|
//即将到期 回显已购买
|
|
|
if (!sessionStorage.getItem("vipSubSelectArea") || !sessionStorage.getItem("vipSubSelectIndustry")) {
|
|
|
$DoPost("/subscribepay/editSub/getSubBuyMsg", {}, function (r) {
|
|
@@ -315,7 +316,33 @@
|
|
|
}, false)
|
|
|
}
|
|
|
{{end}}
|
|
|
+ {{if .T.again}} //再次购买回显
|
|
|
+ {{if eq .T.again 1 }}
|
|
|
+ var orderCode = getParam("orderCode")
|
|
|
+ if (!sessionStorage.getItem("vipSubSelectArea") || !sessionStorage.getItem("vipSubSelectIndustry")) {
|
|
|
+ $DoPost("/subscribepay/orderListDetails/getVipOrderInfo", {"orderCode": orderCode}, function (r) {
|
|
|
+ if (!$.isEmptyObject(r.data.area)) {
|
|
|
+ purchase.areaSelect = r.data.area
|
|
|
+ } else {
|
|
|
+ purchase.areaSelect = {"全国": []}
|
|
|
+ }
|
|
|
+ if (r.data.industry.length != 0) {
|
|
|
+ purchase.industrySelect = r.data.industry
|
|
|
+ } else {
|
|
|
+ purchase.industrySelect = ["全部行业"]
|
|
|
+ }
|
|
|
+// if (r.timeSelect!=undefined&&r.company!=undefined){
|
|
|
+// purchase.timeSelect=[r.timeSelect,r.company];
|
|
|
+// }
|
|
|
+ $(".weui-icon-checked").click();
|
|
|
+ sessionStorage.setItem("vipSubSelectArea", JSON.stringify(purchase.areaSelect));
|
|
|
+ sessionStorage.setItem("vipSubSelectIndustry", JSON.stringify(purchase.industrySelect));
|
|
|
+ //sessionStorage.setItem("vipSubSelectTime", JSON.stringify(purchase.timeSelect));
|
|
|
|
|
|
+ }, false)
|
|
|
+ }
|
|
|
+ {{end}}
|
|
|
+ {{end}}
|
|
|
if (sessionStorage.getItem("vipSubSelectTime")) {
|
|
|
this.timeSelect = JSON.parse(sessionStorage.getItem("vipSubSelectTime"));
|
|
|
}
|
|
@@ -363,9 +390,9 @@
|
|
|
}
|
|
|
$(".choose_area").val(tipTxt);
|
|
|
//$(".add_tips.area").text(tipTxt).css("display", "");
|
|
|
- }else if(!$.isEmptyObject(this.areaSelect) && this.areaSelect["全国"] ){
|
|
|
+ } else if (!$.isEmptyObject(this.areaSelect) && this.areaSelect["全国"]) {
|
|
|
$(".choose_area").val("全国");
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
$(".choose_area").val("");
|
|
|
}
|
|
|
},
|
|
@@ -396,9 +423,9 @@
|
|
|
}*/
|
|
|
if (this.industrySelect.length > 0 && this.industrySelect[0] != "全部行业" && this.industrySelect[0] != "一个行业") { //选择有行业信息
|
|
|
$(".choose_industry").val("已选择 " + this.industrySelect.length + " 个行业");
|
|
|
- }else if(this.industrySelect.length > 0 && this.industrySelect[0] == "全部行业"){
|
|
|
+ } else if (this.industrySelect.length > 0 && this.industrySelect[0] == "全部行业") {
|
|
|
$(".choose_industry").val("全部行业");
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
$(".choose_industry").val("");
|
|
|
}
|
|
|
},
|