7 месяцев назад
Родитель
Сommit
922f5b3221

+ 31 - 4
package/jobIntention/completeMsg.vue

@@ -36,7 +36,7 @@
 							<image v-else src="@/static/images/jobApplicant/touxiang.svg" mode="scaleToFill"
 								class="user-img" />
 						</view>
-						<view class="people-name">{{item.hr.hrPosition}} 招聘者</view>
+						<view class="people-name">{{item.hr?item.hr.hrPosition:"无"}} 招聘者</view>
 					</view>
 				</view>
 			</view>
@@ -60,6 +60,7 @@
 		},
 		onShow() {
 			this.getmypost()
+			this.HrFirst()
 		},
 		methods: {
 			goUploadImg() {
@@ -170,8 +171,11 @@
 						return;
 					}
 					this.userpost = res.data.records || {};
-					this.name=this.userpost[0].hr.hrPosition || ""
-					this.avatar=this.userpost[0].hr.hrImg || ""
+					if(this.userpost[0].hr){
+						this.name=this.userpost[0].hr.hrPosition || ""
+						this.avatar=this.userpost[0].hr.hrImg || ""
+					}
+				
 					console.log("查询我的岗位列表状态", res)
 				})
 				.catch((err) => {
@@ -181,7 +185,30 @@
 						icon: "none"
 					});
 				});
-		}
+		},
+		//Hr 名片
+		HrFirst() {
+			this.$Request.get("/app/HrFirst","")
+				.then((res) => {
+					if (res.code != 0) {
+						uni.showToast({
+							title: res.msg || "查询失败",
+							icon: "none"
+						});
+						return;
+					}
+				
+					console.log("Hr 名片", res)
+				})
+				.catch((err) => {
+					console.error("查询失败:", err);
+					uni.showToast({
+						title: "网络异常",
+						icon: "none"
+					});
+				});
+		},
+		
 	},
 	};
 </script>

+ 2 - 2
package/jobIntention/underReview.vue

@@ -46,8 +46,8 @@ export default {
   
   methods: {
     goCompleteMsg() {
-		if(this.companyinfo.status==3){
-			 uni.navigateTo({ url: "/my/jobPosting?companyName=" });
+		if(this.companyinfo.status!=2){
+			 uni.navigateTo({ url: "my/renzheng/editCompany" });
 		}else{
 			 uni.navigateTo({ url: "/package/jobIntention/completeMsg" });
 		}

+ 1 - 1
pages/my/VIP/benefits.vue

@@ -449,7 +449,7 @@
 					// #endif
 					// #ifdef H5
 					let data = {
-						classify: 5,
+						classify: 5,//支付方式
 						money:this.planPrices,
 						type: 2,
 					};

+ 1 - 1
pages/my/index.vue

@@ -1493,7 +1493,7 @@
 									if (res.confirm) {
 										console.log("用户点击确定");
 										uni.navigateTo({
-											url: "/pages/my/businessLicense",
+											url: "/package/jobIntention/underReview",
 										});
 									} else if (res.cancel) {
 										console.log("用户点击取消");

+ 37 - 2
pages/my/jobPostingSecond.vue

@@ -324,7 +324,8 @@
 				this.status = decodeURIComponent(options.status);
 				console.log('接收的公司状态:', this.status);
 			}else{
-				this.status = uni.getStorageSync('companyStatus')
+				//this.status = uni.getStorageSync('companyStatus')
+				this.getcompanystatus()
 			}
 			this.fundListener = uni.$on("fundData", (data) => {
 				console.log("接收到的福利数据:", data);
@@ -345,6 +346,8 @@
 				this.companyId = uni.getStorageSync('companyId') || ""
 			}
 
+			
+
 
 
 			if (options.pid) {
@@ -427,6 +430,33 @@
 					}
 				})
 			},
+			
+			// 查询用户企业状态
+			getcompanystatus() {
+				this.$Request.get("/app/company/selectCompanyByUserId", "")
+					.then((res) => {
+						if (res.code != 0) {
+							uni.showToast({
+								title: res.msg || "查询状态失败",
+								icon: "none"
+							});
+							return;
+						}
+						this.status = res.data.companyinfo || "";
+			    this.$queue.setData('companyId', res.data.companyId);
+				this.$queue.setData('companyStatus', res.data.companyStatus);
+						console.log("查询用户企业状态", this.companyinfo)
+					})
+					.catch((err) => {
+						console.error("查询失败:", err);
+						uni.showToast({
+							title: "网络异常",
+							icon: "none"
+						});
+					});
+			},
+			
+			
 
 			// 处理薪资范围选择(核心修复)
 			onMoneyConfirm(selectedItems) {
@@ -559,10 +589,15 @@
 									url: "/package/jobIntention/company?companyName=" + this.companyName +
 										'&companyId=' + this.companyId
 								});
-							} else {
+							} else if(this.status == 2){//审核通过
 								uni.navigateTo({
 									url: '/pages/jobManagement/jobManagement'
 								})
+								
+							}else {
+								uni.navigateTo({
+									url: '/my/renzheng/editCompany'
+								})
 							}