twt 3 年之前
父節點
當前提交
a75b03282e
共有 1 個文件被更改,包括 8 次插入1 次删除
  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)