|
|
@@ -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'
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
|