|
@@ -14,16 +14,13 @@
|
|
<link rel="stylesheet" type="text/css" href="/vipsubscribe/css/base.css?v={{Msg "seo" "version"}}" />
|
|
<link rel="stylesheet" type="text/css" href="/vipsubscribe/css/base.css?v={{Msg "seo" "version"}}" />
|
|
<link rel="stylesheet" type="text/css" href="/vipsubscribe/iconfont/iconfont.css?v={{Msg "seo" "version"}}" />
|
|
<link rel="stylesheet" type="text/css" href="/vipsubscribe/iconfont/iconfont.css?v={{Msg "seo" "version"}}" />
|
|
<link rel="stylesheet" href="/vipsubscribe/css/public.css?v={{Msg "seo" "version"}}">
|
|
<link rel="stylesheet" href="/vipsubscribe/css/public.css?v={{Msg "seo" "version"}}">
|
|
- <link rel="stylesheet" href="/vipsubscribe/css/vip_update.css?v={{Msg "seo" "version"}}4">
|
|
|
|
|
|
+ <link rel="stylesheet" href="/vipsubscribe/css/vip_update.css?v={{Msg "seo" "version"}}7">
|
|
{{include "/common/weixin.html"}}
|
|
{{include "/common/weixin.html"}}
|
|
</head>
|
|
</head>
|
|
<style type="text/css">
|
|
<style type="text/css">
|
|
body,html {
|
|
body,html {
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
- ::-webkit-input-placeholder { /* Chrome/Opera/Safari */
|
|
|
|
- color: #686868;
|
|
|
|
- }
|
|
|
|
.weixin_pay{
|
|
.weixin_pay{
|
|
padding-right: 3px;
|
|
padding-right: 3px;
|
|
}
|
|
}
|
|
@@ -37,12 +34,12 @@
|
|
-webkit-overflow-scrolling: touch;
|
|
-webkit-overflow-scrolling: touch;
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
+ ::-webkit-input-placeholder{
|
|
|
|
+ color: #000;
|
|
|
|
+ }
|
|
|
|
|
|
</style>
|
|
</style>
|
|
<body class="no-touch">
|
|
<body class="no-touch">
|
|
- <script type="text/javascript">
|
|
|
|
- initShare({{.T.signature}},{{.T.openid}},2,"jy_extend",{{.T.nickname}},{{.T.avatar}});
|
|
|
|
- </script>
|
|
|
|
<div class="vip_update">
|
|
<div class="vip_update">
|
|
<div class="choose_condition">
|
|
<div class="choose_condition">
|
|
<p class="update_tip">提示:订阅升级可在已购买的服务基础上,增加区域、行业、以及延长订阅周期!</p>
|
|
<p class="update_tip">提示:订阅升级可在已购买的服务基础上,增加区域、行业、以及延长订阅周期!</p>
|
|
@@ -50,7 +47,7 @@
|
|
<li class="choose_item">
|
|
<li class="choose_item">
|
|
<a href="/front/vipsubscribe/toChooseAreaUpgrade">
|
|
<a href="/front/vipsubscribe/toChooseAreaUpgrade">
|
|
<span class="label">区域</span>
|
|
<span class="label">区域</span>
|
|
- <input type="text" id="area" value="" onfocus="this.blur();" placeholder="选择全国、省份、地市" class="info">
|
|
|
|
|
|
+ <input type="text" id="area" value="" disabled placeholder="选择全国、省份、地市" class="info">
|
|
<i class="iconfont icon-arrow"></i>
|
|
<i class="iconfont icon-arrow"></i>
|
|
</a>
|
|
</a>
|
|
<p class="add_tips area-list" style="display: none;">已新增 1 个省级区域、4 个地市</p>
|
|
<p class="add_tips area-list" style="display: none;">已新增 1 个省级区域、4 个地市</p>
|
|
@@ -58,7 +55,7 @@
|
|
<li class="choose_item">
|
|
<li class="choose_item">
|
|
<a href="/front/vipsubscribe/toChooseIndustryUpgrade">
|
|
<a href="/front/vipsubscribe/toChooseIndustryUpgrade">
|
|
<span class="label">行业</span>
|
|
<span class="label">行业</span>
|
|
- <input type="text" id="buyerclass" onfocus="this.blur();" value="" placeholder="选择采购单位行业" class="info">
|
|
|
|
|
|
+ <input type="text" id="buyerclass" disabled value="" placeholder="选择采购单位行业" class="info">
|
|
<i class="iconfont icon-arrow"></i>
|
|
<i class="iconfont icon-arrow"></i>
|
|
</a>
|
|
</a>
|
|
<p class="add_tips industry-list" style="display: none;">已新增 2 个行业</p>
|
|
<p class="add_tips industry-list" style="display: none;">已新增 2 个行业</p>
|
|
@@ -70,13 +67,13 @@
|
|
<i class="iconfont icon-arrow choose_time"></i>
|
|
<i class="iconfont icon-arrow choose_time"></i>
|
|
</a>
|
|
</a>
|
|
</li> -->
|
|
</li> -->
|
|
- <li class="choose_item choose_effect_date">
|
|
|
|
|
|
+ <!--<li class="choose_item choose_effect_date">
|
|
<a href="javascript:;">
|
|
<a href="javascript:;">
|
|
<span class="label">生效日期</span>
|
|
<span class="label">生效日期</span>
|
|
<span class="info" id="effect_date_name">立即生效,需支付当月费用差价</span>
|
|
<span class="info" id="effect_date_name">立即生效,需支付当月费用差价</span>
|
|
<i class="iconfont icon-arrow choose_time"></i>
|
|
<i class="iconfont icon-arrow choose_time"></i>
|
|
</a>
|
|
</a>
|
|
- </li>
|
|
|
|
|
|
+ </li>-->
|
|
</ul>
|
|
</ul>
|
|
<ul class="chooseList">
|
|
<ul class="chooseList">
|
|
<li class="choose_item lengthen">
|
|
<li class="choose_item lengthen">
|
|
@@ -134,8 +131,7 @@
|
|
</table>
|
|
</table>
|
|
<dl class="tips">
|
|
<dl class="tips">
|
|
<dt>购买须知:</dt>
|
|
<dt>购买须知:</dt>
|
|
- <dd>套餐周期内,不支持套餐降级,续费可降级;</dd>
|
|
|
|
- <dd>用户最多购买/续费3年套餐;</dd>
|
|
|
|
|
|
+ <dd>套餐周期内,不支持套餐降级,即将到期时续费可降级;</dd>
|
|
<dd>支持套餐升级,补差价(按月进行补差价,不足一个月按一个月计算)。</dd>
|
|
<dd>支持套餐升级,补差价(按月进行补差价,不足一个月按一个月计算)。</dd>
|
|
</dl>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
@@ -243,7 +239,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 选择生效日期 -->
|
|
<!-- 选择生效日期 -->
|
|
- <div class="js_dialog effective_date" id="effective_date" style="display: none;">
|
|
|
|
|
|
+ <!--<div class="js_dialog effective_date" id="effective_date" style="display: none;">
|
|
<div class="weui-mask"></div>
|
|
<div class="weui-mask"></div>
|
|
<div class="box">
|
|
<div class="box">
|
|
<div class="box_hd">
|
|
<div class="box_hd">
|
|
@@ -276,7 +272,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ </div>-->
|
|
<!-- 选择支付方式 -->
|
|
<!-- 选择支付方式 -->
|
|
<div class="js_dialog pay_way" id="pay_way" style="display: none;">
|
|
<div class="js_dialog pay_way" id="pay_way" style="display: none;">
|
|
<div class="weui-mask"></div>
|
|
<div class="weui-mask"></div>
|
|
@@ -446,62 +442,62 @@
|
|
// $('.pay_mode .select_payment .choose_way.info').html(checkValue);
|
|
// $('.pay_mode .select_payment .choose_way.info').html(checkValue);
|
|
// });
|
|
// });
|
|
// 选择生效日期
|
|
// 选择生效日期
|
|
- $('.choose_effect_date > a').click(function () {
|
|
|
|
- $('#effective_date').show(200);
|
|
|
|
- var nowMonths = new Date().getMonth()+1;
|
|
|
|
- var nowYears = new Date().getFullYear();
|
|
|
|
- var as = nowMonths +1;
|
|
|
|
- if(as > 12){
|
|
|
|
- as = as-12;
|
|
|
|
- nowYears = nowYears +1;
|
|
|
|
- }
|
|
|
|
- var bs = nowYears+"/"+as+"/1";
|
|
|
|
- var effects = new Date(bs).getTime() /1000;
|
|
|
|
- var a = nowYears+"."+as+".01";
|
|
|
|
- $(".notnownow").text(a + " - " + endTime.replace(/-/g, "."))
|
|
|
|
- if(ends < effects){
|
|
|
|
- $(".effect_next").hide();
|
|
|
|
-// $(".box").css("height", "2.7rem");
|
|
|
|
- }
|
|
|
|
- if(!isvalidOk){
|
|
|
|
- console.log(isvalidOk)
|
|
|
|
- $(".effect_one").hide();
|
|
|
|
- $(".effective_name").each(function(){
|
|
|
|
- if($(this).text() === effectiveNames){
|
|
|
|
- $(this).parent().next().find("input").prop("checked", true);
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+// $('.choose_effect_date > a').click(function () {
|
|
|
|
+// $('#effective_date').show(200);
|
|
|
|
+// var nowMonths = new Date().getMonth()+1;
|
|
|
|
+// var nowYears = new Date().getFullYear();
|
|
|
|
+// var as = nowMonths +1;
|
|
|
|
+// if(as > 12){
|
|
|
|
+// as = as-12;
|
|
|
|
+// nowYears = nowYears +1;
|
|
|
|
+// }
|
|
|
|
+// var bs = nowYears+"/"+as+"/1";
|
|
|
|
+// var effects = new Date(bs).getTime() /1000;
|
|
|
|
+// var a = nowYears+"."+as+".01";
|
|
|
|
+// $(".notnownow").text(a + " - " + endTime.replace(/-/g, "."))
|
|
|
|
+// if(ends < effects){
|
|
|
|
+// $(".effect_next").hide();
|
|
|
|
+//// $(".box").css("height", "2.7rem");
|
|
|
|
+// }
|
|
|
|
+// if(!isvalidOk){
|
|
|
|
+// console.log(isvalidOk)
|
|
|
|
+// $(".effect_one").hide();
|
|
|
|
+// $(".effective_name").each(function(){
|
|
|
|
+// if($(this).text() === effectiveNames){
|
|
|
|
+// $(this).parent().next().find("input").prop("checked", true);
|
|
|
|
+// }
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+// })
|
|
//
|
|
//
|
|
- var effectiveName = new Date().getMonth()+2;
|
|
|
|
- if(effectiveName > 12){
|
|
|
|
- effectiveName = effectiveName - 12
|
|
|
|
- }
|
|
|
|
- var effectiveNames = effectiveName+"月1日生效"
|
|
|
|
- $(".effective_name.notnow").text(effectiveNames);
|
|
|
|
- $('#nextMonth').val(effectiveNames);
|
|
|
|
|
|
+// var effectiveName = new Date().getMonth()+2;
|
|
|
|
+// if(effectiveName > 12){
|
|
|
|
+// effectiveName = effectiveName - 12
|
|
|
|
+// }
|
|
|
|
+// var effectiveNames = effectiveName+"月1日生效"
|
|
|
|
+// $(".effective_name.notnow").text(effectiveNames);
|
|
|
|
+// $('#nextMonth').val(effectiveNames);
|
|
|
|
|
|
// 对生效日期方式选择的input绑定点击事件
|
|
// 对生效日期方式选择的input绑定点击事件
|
|
- $('#effective_date input:radio[name="date"]').click(function () {
|
|
|
|
- var checkValue = $('input:radio[name="date"]:checked').val();
|
|
|
|
-// console.log(checkValue);
|
|
|
|
- $('#effective_date').hide(200);
|
|
|
|
- var effective = "";
|
|
|
|
- var effectiveName = new Date().getMonth()+2;
|
|
|
|
- if(effectiveName > 12){
|
|
|
|
- effectiveName = effectiveName - 12
|
|
|
|
- }
|
|
|
|
- var effectiveNames = effectiveName+"月1日生效"
|
|
|
|
- if(checkValue === "立即生效,需支付当月费用差价"){
|
|
|
|
- effective = "now";
|
|
|
|
- }else if(checkValue === effectiveNames){
|
|
|
|
- effective = "notnow";
|
|
|
|
- }
|
|
|
|
- sessionStorage.effectiveDate = effective;
|
|
|
|
- $('#effect_date_name').html(checkValue);
|
|
|
|
- FinallyPrice();
|
|
|
|
- });
|
|
|
|
|
|
+// $('#effective_date input:radio[name="date"]').click(function () {
|
|
|
|
+// var checkValue = $('input:radio[name="date"]:checked').val();
|
|
|
|
+//// console.log(checkValue);
|
|
|
|
+// $('#effective_date').hide(200);
|
|
|
|
+// var effective = "";
|
|
|
|
+// var effectiveName = new Date().getMonth()+2;
|
|
|
|
+// if(effectiveName > 12){
|
|
|
|
+// effectiveName = effectiveName - 12
|
|
|
|
+// }
|
|
|
|
+// var effectiveNames = effectiveName+"月1日生效"
|
|
|
|
+// if(checkValue === "立即生效,需支付当月费用差价"){
|
|
|
|
+// effective = "now";
|
|
|
|
+// }else if(checkValue === effectiveNames){
|
|
|
|
+// effective = "notnow";
|
|
|
|
+// }
|
|
|
|
+// sessionStorage.effectiveDate = effective;
|
|
|
|
+// $('#effect_date_name').html(checkValue);
|
|
|
|
+// FinallyPrice();
|
|
|
|
+// });
|
|
|
|
|
|
|
|
|
|
// 选择周期
|
|
// 选择周期
|
|
@@ -822,25 +818,25 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//生效时间
|
|
//生效时间
|
|
- if(sessionStorage.effectiveDate !== ""&&sessionStorage.effectiveDate!==undefined){
|
|
|
|
- var effective = sessionStorage.effectiveDate;
|
|
|
|
- var effectiveHtml = "";
|
|
|
|
- if(effective === "now"){
|
|
|
|
- effectiveHtml = "立即生效,需支付当月费用差价";
|
|
|
|
- }else if(effective === "notnow"){
|
|
|
|
- var effectiveName = new Date().getMonth()+2;
|
|
|
|
- if(effectiveName > 12){
|
|
|
|
- effectiveName = effectiveName - 12
|
|
|
|
- }
|
|
|
|
- effectiveHtml = effectiveName+"月1日生效";
|
|
|
|
- }
|
|
|
|
- $(".effective_name").each(function(){
|
|
|
|
- if($(this).text() === effectiveHtml){
|
|
|
|
- $(this).parent().next().find("input").prop("checked", true);
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- $('#effect_date_name').html(effectiveHtml);
|
|
|
|
- }
|
|
|
|
|
|
+// if(sessionStorage.effectiveDate !== ""&&sessionStorage.effectiveDate!==undefined){
|
|
|
|
+// var effective = sessionStorage.effectiveDate;
|
|
|
|
+// var effectiveHtml = "";
|
|
|
|
+// if(effective === "now"){
|
|
|
|
+// effectiveHtml = "立即生效,需支付当月费用差价";
|
|
|
|
+// }else if(effective === "notnow"){
|
|
|
|
+// var effectiveName = new Date().getMonth()+2;
|
|
|
|
+// if(effectiveName > 12){
|
|
|
|
+// effectiveName = effectiveName - 12
|
|
|
|
+// }
|
|
|
|
+// effectiveHtml = effectiveName+"月1日生效";
|
|
|
|
+// }
|
|
|
|
+// $(".effective_name").each(function(){
|
|
|
|
+// if($(this).text() === effectiveHtml){
|
|
|
|
+// $(this).parent().next().find("input").prop("checked", true);
|
|
|
|
+// }
|
|
|
|
+// })
|
|
|
|
+// $('#effect_date_name').html(effectiveHtml);
|
|
|
|
+// }
|
|
// //支付方式
|
|
// //支付方式
|
|
// if(sessionStorage.payType!==""&&sessionStorage.payType!==undefined){
|
|
// if(sessionStorage.payType!==""&&sessionStorage.payType!==undefined){
|
|
// var payType = sessionStorage.payType;
|
|
// var payType = sessionStorage.payType;
|
|
@@ -896,7 +892,7 @@
|
|
var starts = "";
|
|
var starts = "";
|
|
var endTime = "";
|
|
var endTime = "";
|
|
var ends = "";
|
|
var ends = "";
|
|
- var isvalidOk = "";
|
|
|
|
|
|
+// var isvalidOk = "";
|
|
$DoPost("/subscribepay/renewUpgrade/getBuyMsg", {}, function (data) {
|
|
$DoPost("/subscribepay/renewUpgrade/getBuyMsg", {}, function (data) {
|
|
if (data) {
|
|
if (data) {
|
|
area = data.area;
|
|
area = data.area;
|
|
@@ -907,9 +903,10 @@
|
|
starts = data.starttime;
|
|
starts = data.starttime;
|
|
endTime = data.end;
|
|
endTime = data.end;
|
|
ends = data.endtime;
|
|
ends = data.endtime;
|
|
- isvalidOk = data.isvalidOk;
|
|
|
|
|
|
+// isvalidOk = data.isvalidOk;
|
|
//
|
|
//
|
|
- var areaArr = [];
|
|
|
|
|
|
+ var provinceArr = [];
|
|
|
|
+ var cityArr = [];
|
|
var areaHtml = "";
|
|
var areaHtml = "";
|
|
var buyerclassArr = [];
|
|
var buyerclassArr = [];
|
|
var buyerclassHtml = "";
|
|
var buyerclassHtml = "";
|
|
@@ -920,45 +917,47 @@
|
|
var citys = area[province]
|
|
var citys = area[province]
|
|
// console.log(citys);
|
|
// console.log(citys);
|
|
if(citys.length===0){
|
|
if(citys.length===0){
|
|
- areaArr.push(province);
|
|
|
|
|
|
+ provinceArr.push(province);
|
|
}else{
|
|
}else{
|
|
for(var i in citys){
|
|
for(var i in citys){
|
|
- areaArr.push(citys[i]);
|
|
|
|
|
|
+ cityArr.push(citys[i]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- areaHtml = areaArr.toString().replace(/,/g, " ");
|
|
|
|
|
|
+ var provinceLen = provinceArr.length;
|
|
|
|
+ var cityLen = cityArr.length;
|
|
|
|
+ areaHtml = "已购买"+provinceLen+"个省级区域/"+cityLen+"个市";
|
|
// $(".item_area .label_for").text(areaHtml);
|
|
// $(".item_area .label_for").text(areaHtml);
|
|
if(checkObj(area)){
|
|
if(checkObj(area)){
|
|
- areaHtml = "全国";
|
|
|
|
|
|
+ areaHtml = "已购买全国";
|
|
}
|
|
}
|
|
- $('#area').val(areaHtml);
|
|
|
|
|
|
+ $('#area').attr("placeholder",areaHtml);
|
|
}
|
|
}
|
|
if(buyerclass !== "" && buyerclass !== undefined){
|
|
if(buyerclass !== "" && buyerclass !== undefined){
|
|
for(var i in buyerclass){
|
|
for(var i in buyerclass){
|
|
var industry = buyerclass[i];
|
|
var industry = buyerclass[i];
|
|
buyerclassArr.push(industry);
|
|
buyerclassArr.push(industry);
|
|
- buyerclassHtml = buyerclassArr.toString().replace(/,/g, " ");
|
|
|
|
|
|
+ buyerclassHtml = "已购买"+buyerclassArr.length+"个行业";
|
|
}
|
|
}
|
|
// $(".item_industry .label_for").text(buyerclassHtml);
|
|
// $(".item_industry .label_for").text(buyerclassHtml);
|
|
if(checkObj(buyerclass)){
|
|
if(checkObj(buyerclass)){
|
|
- buyerclassHtml = "全行业";
|
|
|
|
|
|
+ buyerclassHtml = "已购买全行业";
|
|
}
|
|
}
|
|
- $('#buyerclass').val(buyerclassHtml);
|
|
|
|
|
|
+ $('#buyerclass').attr("placeholder",buyerclassHtml);
|
|
}
|
|
}
|
|
//
|
|
//
|
|
var nowDate = data.now.replace(/-/g, ".");
|
|
var nowDate = data.now.replace(/-/g, ".");
|
|
var a = nowDate+ " - " +endTime;
|
|
var a = nowDate+ " - " +endTime;
|
|
$(".nownow").text(nowDate+ " - " +endTime.replace(/-/g, "."))
|
|
$(".nownow").text(nowDate+ " - " +endTime.replace(/-/g, "."))
|
|
//
|
|
//
|
|
- if(!isvalidOk){
|
|
|
|
- var effectiveName = new Date().getMonth()+2;
|
|
|
|
- if(effectiveName > 12){
|
|
|
|
- effectiveName = effectiveName - 12
|
|
|
|
- }
|
|
|
|
- effectiveHtml = effectiveName+"月1日生效";
|
|
|
|
- $("#effect_date_name").text(effectiveHtml);
|
|
|
|
- }
|
|
|
|
|
|
+// if(!isvalidOk){
|
|
|
|
+// var effectiveName = new Date().getMonth()+2;
|
|
|
|
+// if(effectiveName > 12){
|
|
|
|
+// effectiveName = effectiveName - 12
|
|
|
|
+// }
|
|
|
|
+// effectiveHtml = effectiveName+"月1日生效";
|
|
|
|
+// $("#effect_date_name").text(effectiveHtml);
|
|
|
|
+// }
|
|
}
|
|
}
|
|
},false);
|
|
},false);
|
|
//
|
|
//
|
|
@@ -982,7 +981,7 @@
|
|
var endDay = new Date(endTime).getDate();
|
|
var endDay = new Date(endTime).getDate();
|
|
var oldPrice = "";
|
|
var oldPrice = "";
|
|
var price = "";
|
|
var price = "";
|
|
- var effect = "";
|
|
|
|
|
|
+// var effect = "";
|
|
var buyCheck = true;
|
|
var buyCheck = true;
|
|
if(sessionStorage.buyCheck!==undefined&&sessionStorage.buyCheck!==""){
|
|
if(sessionStorage.buyCheck!==undefined&&sessionStorage.buyCheck!==""){
|
|
let bcheck = sessionStorage.buyCheck;
|
|
let bcheck = sessionStorage.buyCheck;
|
|
@@ -1086,16 +1085,16 @@
|
|
}
|
|
}
|
|
|
|
|
|
console.log("industrysArr",industrysArr);
|
|
console.log("industrysArr",industrysArr);
|
|
- if(sessionStorage.effectiveDate !== ""&&sessionStorage.effectiveDate!==undefined){
|
|
|
|
- let eff = sessionStorage.effectiveDate;
|
|
|
|
- if(eff === "now"){
|
|
|
|
- effect = "now";
|
|
|
|
- }else{
|
|
|
|
- effect = "notnow";
|
|
|
|
- }
|
|
|
|
- }else{
|
|
|
|
- effect = "now";
|
|
|
|
- }
|
|
|
|
|
|
+// if(sessionStorage.effectiveDate !== ""&&sessionStorage.effectiveDate!==undefined){
|
|
|
|
+// let eff = sessionStorage.effectiveDate;
|
|
|
|
+// if(eff === "now"){
|
|
|
|
+// effect = "now";
|
|
|
|
+// }else{
|
|
|
|
+// effect = "notnow";
|
|
|
|
+// }
|
|
|
|
+// }else{
|
|
|
|
+// effect = "now";
|
|
|
|
+// }
|
|
//
|
|
//
|
|
if(endYear === nowYear){
|
|
if(endYear === nowYear){
|
|
if(endMonth === nowMonth){
|
|
if(endMonth === nowMonth){
|
|
@@ -1249,19 +1248,19 @@
|
|
//
|
|
//
|
|
$(".save_upgrade").on("click", function(){
|
|
$(".save_upgrade").on("click", function(){
|
|
$(".save_upgrade").attr("disabled","disabled")
|
|
$(".save_upgrade").attr("disabled","disabled")
|
|
- let effective = $("#effect_date_name").text();
|
|
|
|
- var effect = "now";
|
|
|
|
- if(effective !== "立即生效,需支付当月费用差价"){
|
|
|
|
- let nowMonth = new Date().getMonth()+1;
|
|
|
|
- let nowYear = new Date().getFullYear();
|
|
|
|
- let a = nowMonth +1;
|
|
|
|
- if(a > 12){
|
|
|
|
- a = a-12;
|
|
|
|
- nowYear = nowYear +1;
|
|
|
|
- }
|
|
|
|
- let b = nowYear+"/"+a+"/1";
|
|
|
|
- effect = new Date(b).getTime() /1000;
|
|
|
|
- }
|
|
|
|
|
|
+// let effective = $("#effect_date_name").text();
|
|
|
|
+// var effect = "now";
|
|
|
|
+// if(effective !== "立即生效,需支付当月费用差价"){
|
|
|
|
+// let nowMonth = new Date().getMonth()+1;
|
|
|
|
+// let nowYear = new Date().getFullYear();
|
|
|
|
+// let a = nowMonth +1;
|
|
|
|
+// if(a > 12){
|
|
|
|
+// a = a-12;
|
|
|
|
+// nowYear = nowYear +1;
|
|
|
|
+// }
|
|
|
|
+// let b = nowYear+"/"+a+"/1";
|
|
|
|
+// effect = new Date(b).getTime() /1000;
|
|
|
|
+// }
|
|
//
|
|
//
|
|
let areas = areasArr;
|
|
let areas = areasArr;
|
|
let industrys = industrysArr;
|
|
let industrys = industrysArr;
|
|
@@ -1288,11 +1287,11 @@
|
|
"areas": JSON.stringify(areaarr),
|
|
"areas": JSON.stringify(areaarr),
|
|
"industryarr": industryarr.join(","),
|
|
"industryarr": industryarr.join(","),
|
|
"payWay": "wx_js",
|
|
"payWay": "wx_js",
|
|
- "effect": effect,
|
|
|
|
|
|
+// "effect": effect,
|
|
"pay_source" : "Upgrade",
|
|
"pay_source" : "Upgrade",
|
|
"time": times,
|
|
"time": times,
|
|
"nowUp": Number(nowRenew),
|
|
"nowUp": Number(nowRenew),
|
|
- "isvalidOk" : isvalidOk,
|
|
|
|
|
|
+// "isvalidOk" : isvalidOk,
|
|
}
|
|
}
|
|
console.log(param)
|
|
console.log(param)
|
|
$DoPost("/subscribepay/renewUpgrade/renewUpgradeCreateOrder",param,function(r){
|
|
$DoPost("/subscribepay/renewUpgrade/renewUpgradeCreateOrder",param,function(r){
|
|
@@ -1311,7 +1310,7 @@
|
|
sessionStorage.removeItem("proPrice");
|
|
sessionStorage.removeItem("proPrice");
|
|
sessionStorage.removeItem("vipSubSelectAreaUpgrade");
|
|
sessionStorage.removeItem("vipSubSelectAreaUpgrade");
|
|
sessionStorage.removeItem("vipSubSelectIndustryUpgrade");
|
|
sessionStorage.removeItem("vipSubSelectIndustryUpgrade");
|
|
- sessionStorage.removeItem("effectiveDate");
|
|
|
|
|
|
+// sessionStorage.removeItem("effectiveDate");
|
|
sessionStorage.removeItem("buyCheck");
|
|
sessionStorage.removeItem("buyCheck");
|
|
}
|
|
}
|
|
|
|
|