|
@@ -129,10 +129,10 @@
|
|
</label>
|
|
</label>
|
|
<div class="number_box active" id="number_box_month" data-numbox-step="1" data-numbox-min="1"
|
|
<div class="number_box active" id="number_box_month" data-numbox-step="1" data-numbox-min="1"
|
|
data-numbox-max="12">
|
|
data-numbox-max="12">
|
|
- <button class="weui-btn weui-btn_plain-default" type="button">
|
|
|
|
|
|
+ <button class="weui-btn weui-btn_plain-default" type="button" disabled>
|
|
<div class="jy_icon decrease"></div>
|
|
<div class="jy_icon decrease"></div>
|
|
</button>
|
|
</button>
|
|
- <span class="month_number">6</span>
|
|
|
|
|
|
+ <span class="month_number">1</span>
|
|
<button class="weui-btn weui-btn_plain-default add" type="button">
|
|
<button class="weui-btn weui-btn_plain-default add" type="button">
|
|
<div class="jy_icon increase"></div>
|
|
<div class="jy_icon increase"></div>
|
|
</button>
|
|
</button>
|
|
@@ -198,7 +198,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="/vipsubscribe/js/jquery-2.1.4.js"></script>
|
|
<script src="/vipsubscribe/js/jquery-2.1.4.js"></script>
|
|
- <script src="/vipsubscribe/js/common.js?v={{Msg "seo" "version"}}3"></script>
|
|
|
|
|
|
+ <script src="/vipsubscribe/js/common.js?v={{Msg "seo" "version"}}4"></script>
|
|
<!--<script src="/vipsubscribe/js/fastclick.js?v={{Msg "seo" "version"}}"></script>-->
|
|
<!--<script src="/vipsubscribe/js/fastclick.js?v={{Msg "seo" "version"}}"></script>-->
|
|
<script src="https://res.wx.qq.com/open/libs/weuijs/1.1.4/weui.min.js?v={{Msg "seo" "version"}}"></script>
|
|
<script src="https://res.wx.qq.com/open/libs/weuijs/1.1.4/weui.min.js?v={{Msg "seo" "version"}}"></script>
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
@@ -462,7 +462,8 @@
|
|
sessionStorage.renew_cyclecount = flagValLen;
|
|
sessionStorage.renew_cyclecount = flagValLen;
|
|
sessionStorage.renew_price = $(".computed_price").html();
|
|
sessionStorage.renew_price = $(".computed_price").html();
|
|
$('#time_cycle').hide(function () {
|
|
$('#time_cycle').hide(function () {
|
|
- $('.choose_item.select_cycle .info').attr('placeholder', val);
|
|
|
|
|
|
+// $('.choose_item.select_cycle .info').attr('placeholder', val);
|
|
|
|
+ $('.choose_item.select_cycle .info').val(val);
|
|
})
|
|
})
|
|
$(".finally_price").html($(".computed_price").html());
|
|
$(".finally_price").html($(".computed_price").html());
|
|
sessionStorage.renew_finally_price = $(".finally_price").html();
|
|
sessionStorage.renew_finally_price = $(".finally_price").html();
|
|
@@ -589,7 +590,7 @@
|
|
$(".item_cycle .label_for").text(month+"个月");
|
|
$(".item_cycle .label_for").text(month+"个月");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- var val = monthPrice * 6
|
|
|
|
|
|
+ var val = monthPrice * 1
|
|
$(".computed_price").html("¥"+val.toFixed(1))
|
|
$(".computed_price").html("¥"+val.toFixed(1))
|
|
//
|
|
//
|
|
var threeDay = ends - 86400 * 3;
|
|
var threeDay = ends - 86400 * 3;
|
|
@@ -607,7 +608,7 @@
|
|
}
|
|
}
|
|
}, false);
|
|
}, false);
|
|
//
|
|
//
|
|
- var nowDate = new Date().toLocaleDateString();
|
|
|
|
|
|
+ var nowDate = new Date(startTime).toLocaleDateString();
|
|
nowDate = nowDate.split("/");
|
|
nowDate = nowDate.split("/");
|
|
var nowMonth = Number(nowDate[1]);
|
|
var nowMonth = Number(nowDate[1]);
|
|
var nowYear = Number(nowDate[0]);
|
|
var nowYear = Number(nowDate[0]);
|
|
@@ -664,14 +665,16 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
dateName = cyclecount + "年";
|
|
dateName = cyclecount + "年";
|
|
- $('.choose_item.select_cycle .info').attr('placeholder', dateName);
|
|
|
|
|
|
+// $('.choose_item.select_cycle .info').attr('placeholder', dateName);
|
|
|
|
+ $('.choose_item.select_cycle .info').val(dateName);
|
|
}else if(cycleunit === "2"){
|
|
}else if(cycleunit === "2"){
|
|
$("#monthly").prop("checked", true);
|
|
$("#monthly").prop("checked", true);
|
|
$('#number_box_month').addClass('active');
|
|
$('#number_box_month').addClass('active');
|
|
$('#number_box_year span').removeClass('active');
|
|
$('#number_box_year span').removeClass('active');
|
|
$(".month_number").text(cyclecount);
|
|
$(".month_number").text(cyclecount);
|
|
dateName = cyclecount + "个月";
|
|
dateName = cyclecount + "个月";
|
|
- $('.choose_item.select_cycle .info').attr('placeholder', dateName);
|
|
|
|
|
|
+// $('.choose_item.select_cycle .info').attr('placeholder', dateName);
|
|
|
|
+ $('.choose_item.select_cycle .info').val(dateName);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(sessionStorage.renew_price!==""&&sessionStorage.renew_price!==undefined){
|
|
if(sessionStorage.renew_price!==""&&sessionStorage.renew_price!==undefined){
|
|
@@ -684,7 +687,8 @@
|
|
//
|
|
//
|
|
$(".save_renew").on("click", function(){
|
|
$(".save_renew").on("click", function(){
|
|
console.log(nowUpgrade)
|
|
console.log(nowUpgrade)
|
|
- let times = $('.choose_item.select_cycle .info').attr('placeholder');
|
|
|
|
|
|
+// let times = $('.choose_item.select_cycle .info').attr('placeholder');
|
|
|
|
+ let times = $('.choose_item.select_cycle .info').val();
|
|
if (times.match("月") !== null){
|
|
if (times.match("月") !== null){
|
|
times = Number(times.replace("个月",""));
|
|
times = Number(times.replace("个月",""));
|
|
}else if (times.match("年") !== null){
|
|
}else if (times.match("年") !== null){
|
|
@@ -706,7 +710,7 @@
|
|
var param = {
|
|
var param = {
|
|
"area": JSON.stringify(area),
|
|
"area": JSON.stringify(area),
|
|
"industry": buyerclass.toString(),
|
|
"industry": buyerclass.toString(),
|
|
- "time": $('.choose_item.select_cycle .info').attr('placeholder'),
|
|
|
|
|
|
+ "time": $('.choose_item.select_cycle .info').val(),
|
|
"payWay":"wx_js",
|
|
"payWay":"wx_js",
|
|
"pay_source": "Renew",
|
|
"pay_source": "Renew",
|
|
"endtime": ends,
|
|
"endtime": ends,
|