|
@@ -448,9 +448,9 @@
|
|
nowDates = nowDates.split("/");
|
|
nowDates = nowDates.split("/");
|
|
var nowMonths = Number(nowDates[1]);
|
|
var nowMonths = Number(nowDates[1]);
|
|
var nowYears = Number(nowDates[0]);
|
|
var nowYears = Number(nowDates[0]);
|
|
- var as = nowMonths +1
|
|
|
|
|
|
+ var as = nowMonths +1;
|
|
if(as > 12){
|
|
if(as > 12){
|
|
- as = nowMonths-12;
|
|
|
|
|
|
+ as = as-12;
|
|
nowYears = nowYears +1;
|
|
nowYears = nowYears +1;
|
|
}
|
|
}
|
|
var bs = nowYears+"/"+as+"/1";
|
|
var bs = nowYears+"/"+as+"/1";
|
|
@@ -528,7 +528,6 @@
|
|
// $('#time_cycle .tips.monthly_tips').hide();
|
|
// $('#time_cycle .tips.monthly_tips').hide();
|
|
|
|
|
|
$('#number_box_month').removeClass('active');
|
|
$('#number_box_month').removeClass('active');
|
|
- $('#number_box_year span:eq(0)').addClass('active');
|
|
|
|
}else{
|
|
}else{
|
|
$('.computed_price').hide()
|
|
$('.computed_price').hide()
|
|
$('#number_box_month').removeClass('active');
|
|
$('#number_box_month').removeClass('active');
|
|
@@ -669,6 +668,19 @@
|
|
})
|
|
})
|
|
/* -------- 选择按年订阅 radio触发的事件------- */
|
|
/* -------- 选择按年订阅 radio触发的事件------- */
|
|
$('#yearly').on('change', function (e) {
|
|
$('#yearly').on('change', function (e) {
|
|
|
|
+ if((12+nowRenew)>36){
|
|
|
|
+ var overtimeWarning = `最长订阅周期不可超过3年<br />当前订阅周期:${nowRenew}个月`
|
|
|
|
+ weui.toast(overtimeWarning, {
|
|
|
|
+ duration: 3000,
|
|
|
|
+ className: 'custom-toast',
|
|
|
|
+ callback: function() {
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ $('#yearly').prop("checked", false);
|
|
|
|
+ $('#monthly').prop("checked", true);
|
|
|
|
+ $('#number_box_month').addClass('active')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
$('.profit_tips').hide()
|
|
$('.profit_tips').hide()
|
|
// console.log($(this).is(':checked'))
|
|
// console.log($(this).is(':checked'))
|
|
let isChecked = $(this).is(':checked')
|
|
let isChecked = $(this).is(':checked')
|