twt 3 år sedan
förälder
incheckning
a75b03282e
1 ändrade filer med 8 tillägg och 1 borttagningar
  1. 8 1
      pages/module/maintain.vue

+ 8 - 1
pages/module/maintain.vue

@@ -428,10 +428,17 @@ export default {
 				title: '加载中'
 			})
 			var location = uni.getStorageSync("locationCity");
+			var selectCity = uni.getStorageSync("selectCity");
+			var cityCode=''
+			if(selectCity){
+				cityCode=selectCity.code
+			}else{
+				cityCode=location.cityCode
+			}
 			this.$http('miniApp/tPackageMiniAppController/queryPackageList', {
 			   mileage:this.maintainCarData.milage,
 			   liyangId:this.maintainCarData.nLevelID,
-			   cityCode:location.cityCode,
+			   cityCode:cityCode,
 			   guidePrice:this.maintainCarData.guidePrice,
 			 },'GET').then(res => {
 				 console.log(res)