xxdezh 8 mesiacov pred
rodič
commit
3aed447435

+ 7 - 1
package/jobIntention/underReview.vue

@@ -41,7 +41,13 @@ export default {
   
   methods: {
     goCompleteMsg() {
-      uni.navigateTo({ url: "/package/jobIntention/completeMsg" });
+		if(ompanyinfo.status==3){
+			 uni.navigateTo({ url: "/my/jobPosting?companyName=" });
+		}else{
+			 uni.navigateTo({ url: "/package/jobIntention/completeMsg" });
+		}
+		
+     
     },
     
     // 查询用户企业状态

+ 9 - 1
pages/index/index.vue

@@ -376,10 +376,16 @@
 									</view>
 								</view>
 								<!-- 发布招聘 -->
-								<view class="qySx-box-r flex align-center" @click="goNavss('/package/addJob/addJob')">
+						<!-- 		<view class="qySx-box-r flex align-center" @click="goNavss('/package/addJob/addJob')">
+									<image src="../../static/images/index/Attachment.svg" class="attachment-icon" />
+								</view> -->
+								
+								<view class="qySx-box-r flex align-center" @click="goNavss('/pages/my/jobPosting?companyId='+uni.getStorageSync('companyId')+'&status='+companyStatus+'&companyName='+companyName)">
 									<image src="../../static/images/index/Attachment.svg" class="attachment-icon" />
 								</view>
+								
 							</view>
+							
 
 							<!-- 第二行:筛选 -->
 							<view class="qySx-sx-box flex justify-between align-center">
@@ -512,6 +518,7 @@
 				enable: true, //开启吸顶
 				goback: false,
 				city: '',
+				companyName:"",
 				datasList: [],
 				isfixeds: false,
 				userType: 1,
@@ -1166,6 +1173,7 @@
 				this.$Request.get("/app/company/selectCompanyByUserId").then(res => {
 					if (res.code == 0 && res.data) {
 						this.companyStatus = res.data.status
+						this.companyName=res.data.companyAllName
 						uni.setStorageSync('companyStatus', this.companyStatus)
 					} else {
 						this.companyStatus = ''

+ 28 - 12
pages/my/jobPostingSecond.vue

@@ -86,8 +86,9 @@
 				welfareTag: "", // 福利待遇
 				positionTag: "", // 职位关键词
 				stationName: "",
-				companyName: "", 
-				companyId:"",
+				companyName: "",
+				companyId: "",
+				status: 1,
 
 				// 选择器显示控制
 				showExper: false,
@@ -220,6 +221,10 @@
 				this.companyName = decodeURIComponent(options.companyName);
 				console.log('接收的公司名称:', this.companyName);
 			}
+			if (options.status) {
+				this.status = decodeURIComponent(options.status);
+				console.log('接收的公司名称:', this.status);
+			}
 			this.fundListener = uni.$on("fundData", (data) => {
 				console.log("接收到的福利数据:", data);
 				this.welfareTag = data; // 赋值给当前页面变量
@@ -232,10 +237,12 @@
 				console.log("接收到的地址数据:", data);
 				this.stationName = data; // 赋值给当前页面变量
 			});
-				if (options.companyId) {
-					this.companyId = options.companyId;
-					console.log('接收的公司ID:', this.companyId);
-				}
+			if (options.companyId) {
+				this.companyId = options.companyId;
+				console.log('接收的公司ID:', this.companyId);
+			}else{
+				this.companyId = uni.getStorageSync('companyId') || ""
+			}
 
 		},
 		onUnload() {
@@ -353,9 +360,9 @@
 					address: this.stationName.fullText, //地址
 					lat: this.stationName.latitude,
 					lng: this.stationName.longitude,
-					province:this.stationName.province,
-					city:this.stationName.city,
-					county:this.stationName.district
+					province: this.stationName.province,
+					city: this.stationName.city,
+					county: this.stationName.district
 				};
 
 				// 调用接口提交
@@ -370,9 +377,18 @@
 								title: "提交成功",
 								icon: "success"
 							});
-							uni.navigateTo({
-								url: "/package/jobIntention/company?companyName="+this.companyName+'&companyId='+this.companyId
-							});
+							//这里要选择跳转,第一次是要跳公司页,如果是二次就到职位管理页
+							if (this.status == 1) { //审核中
+								uni.navigateTo({
+									url: "/package/jobIntention/company?companyName=" + this.companyName +
+										'&companyId=' + this.companyId
+								});
+							} else {
+								uni.navigateTo({
+									url: '/pages/jobManagement/jobManagement'
+								})
+							}
+
 
 
 						} else {