lyuis 7 달 전
부모
커밋
04921d7c9f
4개의 변경된 파일11개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 2
      common/queue.js
  2. 5 2
      package/jobIntention/city.vue
  3. 5 0
      pages/index/index.vue
  4. 1 1
      pages/my/setup.vue

+ 0 - 2
common/queue.js

@@ -494,7 +494,6 @@ module.exports = {
 	        resolve(true);
 	        return;
 	        // #endif
-	
 	        // 特殊处理:相机权限在非iOS平台显示自定义弹窗
 	        if (uni.getSystemInfoSync().platform != 'ios') {
 				switch(perpop){
@@ -512,7 +511,6 @@ module.exports = {
 				}
 	            
 	        }
-	
 	        // Android 平台处理
 	        if (uni.getSystemInfoSync().platform === 'android') {
 	            if (permisionID == '') {

+ 5 - 2
package/jobIntention/city.vue

@@ -85,10 +85,14 @@
 			navBar,
 		},
 		onLoad(options) {
+			//#ifdef H5
 			this.getLatOrLng(); //获取经纬度
+			//#endif
 			this.getRmCityList(); //热门城市
 			this.getCitysList();
 			this.type=options&&options.type
+			if(this.$queue.getData('city'))
+				this.city=this.$queue.getData('city')
 		},
 		methods: {
 			/**
@@ -141,14 +145,13 @@
 				    '获取您的位置用于推荐附近的求职岗位', // 提示文案也无需区分系统(统一表述即可)
 					this
 				  );
-				
+				console.log(hasPermission)
 				  if (!hasPermission) {
 				    uni.showToast({ title: '未获取定位权限,无法推荐附近岗位', icon: 'none' });
 				    return;
 				  }
 				// #endif
 				
-				
 				uni.getLocation({
 					type: "wgs84", //wgs84  gcj02
 					success: function(res) {

+ 5 - 0
pages/index/index.vue

@@ -705,11 +705,16 @@
 				this.page = 1
 				that.getUserList();
 			})
+			uni.$on('updateIndexType', data => {
+				this.page = 1
+				this.getPostType()
+			})
 		},
 		onUnload() {
 			uni.$off('filterCity');
 			uni.$off('preferenceUpdated')
 			uni.$off('updateScreenFilterRecord')
+			uni.$off('updateIndexType')
 			// uni.$off('city')
 		},
 		//下拉刷新

+ 1 - 1
pages/my/setup.vue

@@ -40,7 +40,7 @@
 					注销后无法恢复,请谨慎操作 <u-icon name="arrow-right"></u-icon>
 				</view>
 			</view>
-			<view class="usermain-item item-padding" @click="clear">
+			<view v-if="false" class="usermain-item item-padding" @click="clear">
 				<view class="usermain-item-title">清除缓存</view>
 				<view>
 					{{storageSize}} <u-icon name="arrow-right"></u-icon>