Browse Source

fix:营业执照

jianghaili 7 months ago
parent
commit
cda129edb9
3 changed files with 14 additions and 8 deletions
  1. 5 2
      pages/jobManagement/jobManagement.vue
  2. 1 1
      pages/my/index.vue
  3. 8 5
      pages/my/jobPosting.vue

+ 5 - 2
pages/jobManagement/jobManagement.vue

@@ -122,7 +122,10 @@ export default {
 		this.status=options.status
 	}
 	  this.backUrl = options.backUrl;
-    this.companyId = uni.getStorageSync('companyId');
+	  if(options.companyId){
+		this.companyId=options.companyId;
+	  }
+    // this.companyId = uni.getStorageSync('companyId');
     this.getJobList();
     this.setBodyHeight();
   },
@@ -203,7 +206,7 @@ export default {
 	 },
     goNav(url) { uni.navigateTo({ url }); },
    // publishNewJob() { uni.navigateTo({ url: '/package/addJob/addJob' }); },
-	 publishNewJob() { uni.navigateTo({ url: `/pages/my/jobPosting?status=${this.status}` }); },
+	 publishNewJob() { uni.navigateTo({ url: `/pages/my/jobPosting?status=${this.status}&companyId=${this.companyId}` }); },
     getJobStatusClass(job) { /* 原有逻辑不变 */ },
     setBodyHeight() { /* 原有逻辑不变 */ },
   }

+ 1 - 1
pages/my/index.vue

@@ -1307,7 +1307,7 @@ export default {
 			}
 			if (uni.getStorageSync("token")) {
 				uni.navigateTo({
-					url: `/pages/jobManagement/jobManagement?status=${status}`,
+					url: `/pages/jobManagement/jobManagement?status=${status}&companyId=${this.companyInfo.companyId}`,
 				});
 			} else {
 				this.noLogin();

+ 8 - 5
pages/my/jobPosting.vue

@@ -103,7 +103,8 @@ export default {
 		}
 		if (options.companyName) {
 			this.companyName = decodeURIComponent(options.companyName);
-		} else {
+		}
+		else {
 			this.companyName = uni.getStorageSync('companyName')
 		}
 		this.descListener = uni.$on("jobDescUpdated", (data) => {
@@ -118,7 +119,8 @@ export default {
 
 		if (options.companyId) {
 			this.companyId = options.companyId;
-		} else {
+		}
+		else {
 			this.companyId = uni.getStorageSync('companyId')
 		}
 		if (options.status) {
@@ -354,10 +356,11 @@ export default {
 						}
 						// 提交成功后跳转到职位发布页面
 						setTimeout(() => {
+
 							uni.redirectTo({
-								url: "/pages/my/jobPostingSecond?pid=" + pid + "&status=" + this
-									.status + "&companyName=" + this.companyName + '&companyId=' +
-									this.companyId + '&type=' + this.update + '&workData=' + JSON.stringify(this.jobInfo) + '&isBack=' + true
+								url: "/pages/my/jobPostingSecond?pid=" + pid + '&companyId=' +
+									this.companyId + "&status=" + this
+										.status + "&companyName=" + this.companyName + '&type=' + this.update + '&workData=' + JSON.stringify(this.jobInfo) + '&isBack=' + true
 							});
 						}, 1500);
 					} else {