|
@@ -621,12 +621,9 @@
|
|
|
$(".save_renew").on("click", function(){
|
|
|
console.log(nowUpgrade)
|
|
|
let times = $('.choose_item.select_cycle .info').attr('placeholder');
|
|
|
- let ok = times.match("月")
|
|
|
- if (ok !== null){
|
|
|
+ if (times.match("月") !== null){
|
|
|
times = Number(times.replace("个月",""));
|
|
|
- }
|
|
|
- let oks = times.match("年")
|
|
|
- if (oks !== null){
|
|
|
+ }else if (times.match("年") !== null){
|
|
|
times = 12 * Number(times.replace("年",""));
|
|
|
}
|
|
|
// 当续费时间 + 当前已经买的时间超过36个月,给出提醒
|