twt il y a 3 ans
Parent
commit
a75b03282e
1 fichiers modifiés avec 8 ajouts et 1 suppressions
  1. 8 1
      pages/module/maintain.vue

+ 8 - 1
pages/module/maintain.vue

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