From 96bbee1bc4ef19d98812772704de132f7eee77ac Mon Sep 17 00:00:00 2001 From: wangxia <779219182@qq.com> Date: Wed, 13 Aug 2025 14:59:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/list/job.vue | 5 ++-- main.js | 5 ++-- pages/home/index.vue | 2 +- pages/person/index.vue | 8 +++--- root/components/applyFlow.vue | 23 +++++++++-------- root/home/shareJob.vue | 59 +++++++++++++++++++++++++------------------ root/home/shareList.vue | 2 +- root/person/loginIndex.vue | 3 ++- 8 files changed, 62 insertions(+), 45 deletions(-) diff --git a/components/list/job.vue b/components/list/job.vue index 11fc8f7..9c2d2c9 100644 --- a/components/list/job.vue +++ b/components/list/job.vue @@ -121,7 +121,7 @@
项目方:
- {{ item.upFullName || item.upAgencyName || "-" }} + {{ item.upFullName || item.upAgencyName || item.upProviderName || "-" }}
@@ -168,7 +168,7 @@ export default { }, data() { return { - userinfo: uni.getStorageSync("apply-userinfo"), + userinfo: {}, themeColor: getApp().globalData.themeColor, isUseNewJob: getApp().globalData.isUseNewJob, localBaseImg: this.G.store().localBaseImg, @@ -298,6 +298,7 @@ export default { this.appInfo = uni.getStorageSync("miniApp-info"); if (uni.getStorageSync("apply-token")) { + this.userinfo = uni.getStorageSync("apply-userinfo"); this.isLogin = true; } else { this.isLogin = false; diff --git a/main.js b/main.js index 71c4412..d9b8e11 100644 --- a/main.js +++ b/main.js @@ -65,7 +65,7 @@ export function createApp () { uni.setStorageSync('apply-userinfo-copy', JSON.stringify(res)); uni.setStorageSync("apply-agencyId", res.user.agencyId); // 单独存储 -- 代理id,方便获取 uni.setStorageSync("apply-supplierAccount", res.supplierAccount); // 单独存储 -- 是否是发单号,方便获取 0.不是发单号 1.是发单号 - if (res.agencyStatus == 1) { + if (res.agencyId) { G.Get(apiInfo.login_agencyInfo, {}, (aRes) => { uni.setStorageSync("agencyInfo", aRes.agency); // 1是创建者 2是普通成员 uni.setStorageSync("IS_CREATOR", aRes.agency.userId == res.user.id || res.admin == true ? 1 : 2); // 1是创建者 2是普通成员 @@ -96,7 +96,8 @@ export function createApp () { uni.setStorageSync('apply-userinfo-copy', JSON.stringify(res)); uni.setStorageSync("apply-agencyId", res.user.agencyId); // 单独存储 -- 代理id,方便获取 uni.setStorageSync("apply-supplierAccount", res.supplierAccount); // 单独存储 -- 是否是发单号,方便获取 0.不是发单号 1.是发单号 - if (res.agencyStatus == 1) { + if (res.agencyId) { + // if (res.agencyStatus == 1) { G.Get(apiInfo.login_agencyInfo, {}, (aRes) => { uni.setStorageSync("agencyInfo", aRes.agency); // 1是创建者 2是普通成员 uni.setStorageSync("IS_CREATOR", aRes.agency.userId == res.user.id || res.admin == true ? 1 : 2); // 1是创建者 2是普通成员 diff --git a/pages/home/index.vue b/pages/home/index.vue index 8285bcc..81bb2b4 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -105,7 +105,7 @@
分享
职位
- +
diff --git a/pages/person/index.vue b/pages/person/index.vue index d616e5b..504602d 100644 --- a/pages/person/index.vue +++ b/pages/person/index.vue @@ -27,9 +27,8 @@ {{ agencyInfo.agencyName || agencyInfo.fullName || "-" }} - - - + + @@ -347,7 +346,8 @@ export default { this.getNewApplyNum(); that.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false; that.agencyInfo = uni.getStorageSync("agencyInfo"); - if (uni.getStorageSync("apply-userinfo").agencyStatus == 1) { + if (uni.getStorageSync("apply-userinfo").agencyId) { + // if (uni.getStorageSync("apply-userinfo").agencyStatus == 1) { this.getCompanyInfo(); } }); diff --git a/root/components/applyFlow.vue b/root/components/applyFlow.vue index 6c94eb3..d6a9946 100644 --- a/root/components/applyFlow.vue +++ b/root/components/applyFlow.vue @@ -18,12 +18,17 @@
- +
-
- -
报名助手需以企业身份使用,请确认本人所在公司是否已创建团队:
-
+
+
+ 报名助手温馨提示 +
+ +
+
+
报名助手需以企业身份使用,请确认本人所在公司是否已创建团队
+
已有团队?
-
+
还没团队?
-
+
@@ -218,8 +223,6 @@ export default { // 是代理直接关注确认框 applyFlowConfirm() { let that = this; - this.confirmWithoutAgency = true; - return; that.G.handleConfirm({ confirmText: "确认", title: "是否确认关注该发单号?", diff --git a/root/home/shareJob.vue b/root/home/shareJob.vue index a86a174..a554376 100644 --- a/root/home/shareJob.vue +++ b/root/home/shareJob.vue @@ -1,5 +1,7 @@