From 75e91a9ddec82090eb0f1b7c17888e2ed25932c9 Mon Sep 17 00:00:00 2001 From: wangxia <779219182@qq.com> Date: Sat, 7 Jun 2025 15:22:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E8=B5=84=E6=96=99=20?= =?UTF-8?q?=E5=85=B3=E6=B3=A8=E5=9B=A2=E9=98=9F=20=E5=8A=A0=E5=85=A5?= =?UTF-8?q?=E5=9B=A2=E9=98=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 38 ++++ api/order.js | 2 +- api/user.js | 2 +- components/list/job.vue | 2 +- components/quickLogin.vue | 167 ++++++++++++++++ components/unloginInfo.vue | 57 ++++++ main.js | 20 +- pages.json | 18 ++ pages/apply/index.vue | 12 +- pages/login/index.vue | 2 +- pages/person/index.vue | 87 +++++--- pages/workBench/index.vue | 78 ++++---- root/home/applicationSuccess.vue | 2 +- root/person/agencyAvatar.vue | 132 +++++++++++++ root/person/change copy.vue | 166 ++++++++++++++++ root/person/change.vue | 200 +++++++++---------- root/person/info copy.vue | 126 ++++++++++++ root/person/info.vue | 100 ++++++++-- root/person/inviteFollowMe.vue | 143 ++++++++++++++ root/person/inviteFollowSuccess.vue | 55 ++++++ root/person/memberApplyAdd.vue | 12 +- root/person/memberApplyQRCode.vue | 4 +- root/person/orderEdit.vue | 381 ++++++++++++++++++++++++++++++++++++ root/person/pwdForget copy.vue | 154 +++++++++++++++ root/person/pwdForget.vue | 314 +++++++++++++++-------------- static/css/base.scss | 15 +- utils/ajax.js | 2 +- 27 files changed, 1933 insertions(+), 358 deletions(-) create mode 100644 components/quickLogin.vue create mode 100644 components/unloginInfo.vue create mode 100644 root/person/agencyAvatar.vue create mode 100644 root/person/change copy.vue create mode 100644 root/person/info copy.vue create mode 100644 root/person/inviteFollowMe.vue create mode 100644 root/person/inviteFollowSuccess.vue create mode 100644 root/person/orderEdit.vue create mode 100644 root/person/pwdForget copy.vue diff --git a/App.vue b/App.vue index e6df8ae..2fe5f81 100644 --- a/App.vue +++ b/App.vue @@ -1,6 +1,10 @@ diff --git a/api/order.js b/api/order.js index 687fed9..4f6e6fd 100644 --- a/api/order.js +++ b/api/order.js @@ -1,6 +1,6 @@ let orderInfo = { order_list:"/assistant/apply/order/list",// 工单列表(旧) - order_list_new:"/yishoudan/user/apply/order/V2/list",// 工单列表(新) + order_list_new:"/yishoudan/user/apply/order/web/list",// 工单列表(新) order_detail :"/assistant/apply/order/detail",// 工单详情(旧) order_detail_new :"/yishoudan/user/apply/order/V2/details",// 工单详情(新) order_update_detail :"/yishoudan/user/apply/order/V2/updateOrderInfo",// 工单信息修改 diff --git a/api/user.js b/api/user.js index 8eed690..9192c02 100644 --- a/api/user.js +++ b/api/user.js @@ -28,7 +28,7 @@ let userInfo = {// 用户信息模块 order_checkMemberDel: "/yishoudan/user/checkDelAgencyCorpUser",// 删除成员前校验 order_delMember: "/yishoudan/user/delAgencyCorpUser",// 删除成员 order_getCompanyQRCode: "/yishoudan/agency/group/user/apply/inviteImage",// 获取团队二维码 - order_getAgencyById: "/agency/getAgencyById",// 获取代理信息 + order_getAgencyByIdForApply: "/agency/getAgencyByIdForApply",// 获取代理信息 order_addApply: "/yishoudan/agency/group/user/apply/addApply",// 申请加入团队 order_checkHasApply: "/yishoudan/agency/group/user/apply/checkHasApply",// 是否申请过加入团队 order_getNewApplyNum: "/yishoudan/agency/group/user/apply/getNewApplyNum",// 获取申请加入的成员数量 diff --git a/components/list/job.vue b/components/list/job.vue index 97ea397..e0e608a 100644 --- a/components/list/job.vue +++ b/components/list/job.vue @@ -110,7 +110,7 @@ - + {{ item.agencyName || "-" }} diff --git a/components/quickLogin.vue b/components/quickLogin.vue new file mode 100644 index 0000000..8a44c0d --- /dev/null +++ b/components/quickLogin.vue @@ -0,0 +1,167 @@ + + + + + diff --git a/components/unloginInfo.vue b/components/unloginInfo.vue new file mode 100644 index 0000000..810dd1c --- /dev/null +++ b/components/unloginInfo.vue @@ -0,0 +1,57 @@ + + + + + diff --git a/main.js b/main.js index b6d7d5d..e2708a8 100644 --- a/main.js +++ b/main.js @@ -63,8 +63,16 @@ 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.是发单号 + console.log('resresresresresresresres', res); + G.Get(apiInfo.login_agencyInfo, {}, (aRes) => { + console.log("获取团队信息:", 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是普通成员 - resolve(res) + // 登录跳转到首页的判断 + uni.setStorageSync("SHOW_INVITE", 1); + resolve(res) + }); }, function fail (err) { console.log(err); @@ -85,7 +93,15 @@ export function createApp () { uni.setStorageSync("apply-agencyId", res.user.agencyId); // 单独存储 -- 代理id,方便获取 uni.setStorageSync("apply-supplierAccount", res.supplierAccount); // 单独存储 -- 是否是发单号,方便获取 0.不是发单号 1.是发单号 - resolve(res) + G.Get(apiInfo.login_agencyInfo, {}, (aRes) => { + console.log("获取团队信息:", 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是普通成员 + + // 登录跳转到首页的判断 + uni.setStorageSync("SHOW_INVITE", 1); + resolve(res) + }); }) }) }, diff --git a/pages.json b/pages.json index 7532baa..2260185 100644 --- a/pages.json +++ b/pages.json @@ -235,6 +235,24 @@ "backgroundColorBottom": "#f5f5f5" } }, + { + "path": "inviteFollowMe", + "style": { + "navigationBarTitleText": "邀请关注", + "backgroundColor": "#f5f5f5", + "backgroundColorTop": "#f5f5f5", + "backgroundColorBottom": "#f5f5f5" + } + }, + { + "path": "inviteFollowSuccess", + "style": { + "navigationBarTitleText": "申请关注", + "backgroundColor": "#f5f5f5", + "backgroundColorTop": "#f5f5f5", + "backgroundColorBottom": "#f5f5f5" + } + }, { "path": "feedback", "style": { diff --git a/pages/apply/index.vue b/pages/apply/index.vue index c9451e9..9e9e39e 100644 --- a/pages/apply/index.vue +++ b/pages/apply/index.vue @@ -28,7 +28,7 @@ - + @@ -157,11 +157,15 @@ export default { let that = this; if (options.status) { that.menuActive = Number(options.status); - setTimeout(() => { - that.menuActive = Number(options.status); - }, 100); + // setTimeout(() => { + // that.menuActive = Number(options.status); + // }, 200); } }, + created() { + let that = this; + console.log(12312312312); + }, onShow() { let that = this; // 导航栏高度信息 diff --git a/pages/login/index.vue b/pages/login/index.vue index c2e1c92..6ccc2d1 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -41,7 +41,7 @@ - + diff --git a/pages/person/index.vue b/pages/person/index.vue index eb97e82..dd1326b 100644 --- a/pages/person/index.vue +++ b/pages/person/index.vue @@ -1,6 +1,6 @@