瀏覽代碼

Merge branch 'master' of https://git.nanodreamtech.com/Boss/yizhizan-h5

wkw 7 月之前
父節點
當前提交
9148981b62
共有 2 個文件被更改,包括 12 次插入3 次删除
  1. 11 2
      package/jobIntention/city.vue
  2. 1 1
      package/screen/city.vue

+ 11 - 2
package/jobIntention/city.vue

@@ -73,15 +73,17 @@
 				city: "",
 				latitude: "",
 				longitude: "",
+				type:''
 			};
 		},
 		components: {
 			navBar,
 		},
-		onLoad() {
+		onLoad(options) {
 			this.getLatOrLng(); //获取经纬度
 			this.getRmCityList(); //热门城市
 			this.getCitysList();
+			this.type=options&&options.type
 		},
 		methods: {
 			/**
@@ -174,7 +176,14 @@
 				uni.$emit("city", {
 					city: city,
 				});
-				uni.navigateBack();
+				let data = {
+					city: city=='全国'||city=='全部'?'':city,
+					county: ''
+				}
+				uni.$emit('filterCity', data)
+				uni.navigateBack({
+					delta: this.type=='search'?2:1,
+				});
 			},
 
 			bindToView(event) {

+ 1 - 1
package/screen/city.vue

@@ -61,7 +61,7 @@
 			},
 			goTo(){
 				uni.navigateTo({
-					url:'/package/jobIntention/city'
+					url:'/package/jobIntention/city?type=search'
 				})
 			}
 		}