Parcourir la source

fix:位置定位不能点击,解决报错

jianghaili il y a 7 mois
Parent
commit
9f23b6e522
3 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1 1
      pages/index/index.vue
  2. 1 1
      pages/my/jobPosting.vue
  3. 1 1
      pages/my/jobPostingSecond.vue

+ 1 - 1
pages/index/index.vue

@@ -876,8 +876,8 @@
 			},
 			// 
 			async getLocalJobs() {
-				// #ifdef APP
 				let that = this;
+				// #ifdef APP
 				const hasLocation = await this.$queue.checkPermission(
 					'location',
 					'获取位置需要定位权限,用于推荐同城的求职岗位或牛人',

+ 1 - 1
pages/my/jobPosting.vue

@@ -348,7 +348,7 @@
 							}
 							// 提交成功后跳转到职位发布页面
 							setTimeout(() => {
-								uni.navigateTo({
+								uni.redirectTo({
 									url: "/pages/my/jobPostingSecond?pid=" + pid + "&status=" + this
 										.status + "&companyName=" + this.companyName + '&companyId=' +
 										this.companyId+'&type='+this.update

+ 1 - 1
pages/my/jobPostingSecond.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="switch-roles">
-		<nav-bar title="选择职位要求" color="#000"></nav-bar>
+		<nav-bar title="选择职位要求" color="#000" :isBack="false"></nav-bar>
 		<view class="roles-content">
 			<view class="content">
 				<view class="title">继续填写</view>