xuzhiheng 5 năm trước cách đây
mục cha
commit
4d187d35e0
1 tập tin đã thay đổi với 2 bổ sung5 xóa
  1. 2 5
      src/web/templates/weixin/vipsubscribe/renew_pay.html

+ 2 - 5
src/web/templates/weixin/vipsubscribe/renew_pay.html

@@ -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个月,给出提醒