xuzhiheng 5 years ago
parent
commit
a391b2dc5b
1 changed files with 13 additions and 0 deletions
  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;
 			}