xuzhiheng 5 年之前
父節點
當前提交
a391b2dc5b
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      src/web/templates/weixin/vipsubscribe/vip_upgrade.html

+ 13 - 0
src/web/templates/weixin/vipsubscribe/vip_upgrade.html

@@ -921,6 +921,16 @@
 							for(let i in areasArr[province]){
 								cityArr.push(areasArr[province][i]);
 							}
+							//
+							for (var x = 0; x < cityArr.length; x++) {
+					            for (var j =x+1; j <cityArr.length; ) {
+					                if (cityArr[x] === cityArr[j]){
+					                    cityArr.splice(j, 1);
+					                }
+					                else j++;
+					            }
+					       	}
+							//
 							areasArr[province] = cityArr;
 						}
 						if(province === "全国"){
@@ -1112,6 +1122,9 @@
 				console.log("proprice",proPrice);
 				cPrice = (Number(cPrice) + Number(proPrice)).toFixed(1);
 			}
+//			if(effect === "notnow"){
+//				cPrice = cPrice -(completeMonth - oldMonthPrice);
+//			}
 			if(cPrice < 0){
 				cPrice = 0;
 			}