From feb5693789be8bf1699de22e709b48865236fc88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E8=BF=90=E6=A8=A1?= <1724894114@qq.com> Date: Mon, 25 Nov 2024 22:45:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 16 +- src/router/index.js | 8 +- src/router/systemRouter.js | 11 +- .../personalCenter/components/editAccount.vue | 196 +++++++++++++++++- src/views/service/faq.vue | 153 +++++++++++++- src/views/setting/company/save.vue | 2 +- src/views/setting/user/review.vue | 40 ++-- src/views/setting/user/save.vue | 135 +++++++----- 8 files changed, 464 insertions(+), 97 deletions(-) diff --git a/.env.production b/.env.production index 6f8ae33..3198248 100644 --- a/.env.production +++ b/.env.production @@ -5,15 +5,15 @@ NODE_ENV = production VUE_APP_TITLE = 象纬云科 # 测试环境 - VUE_APP_API_BASEURL = https://dev.api.linkwing.com/api/v1 - VUE_APP_API_DEV = https://dev.api.linkwing.com/api/v1 - VUE_APP_WS_URL = wss://dev.api.linkwing.com/wss - VUE_APP_WSS_URL = wss://dev.api.linkwing.com/wss +# VUE_APP_API_BASEURL = https://dev.api.linkwing.com/api/v1 +# VUE_APP_API_DEV = https://dev.api.linkwing.com/api/v1 +# VUE_APP_WS_URL = wss://dev.api.linkwing.com/wss +# VUE_APP_WSS_URL = wss://dev.api.linkwing.com/wss # 线上环境 # 接口地址 # WS地址 -# VUE_APP_API_BASEURL = https://prod.api.linkwing.com/api/v1 -# VUE_APP_API_DEV = https://prod.api.linkwing.com/api/v1 -# VUE_APP_WS_URL = wss://prod.api.linkwing.com/wss -# VUE_APP_WSS_URL = wss://prod.api.linkwing.com/wss + VUE_APP_API_BASEURL = https://prod.api.linkwing.com/api/v1 + VUE_APP_API_DEV = https://prod.api.linkwing.com/api/v1 + VUE_APP_WS_URL = wss://prod.api.linkwing.com/wss + VUE_APP_WSS_URL = wss://prod.api.linkwing.com/wss diff --git a/src/router/index.js b/src/router/index.js index d5823d1..44e3f3d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -47,8 +47,14 @@ router.beforeEach(async (to, from, next) => { next(); return false; } - + // console.log(routes,to,6999) if(routes.findIndex(r => r.path === to.path) >= 0){ + // if(to.toShow && !token){ + // next({ + // path: '/login' + // }); + // return false; + // } next(); return false; } diff --git a/src/router/systemRouter.js b/src/router/systemRouter.js index 1ef92f7..dcf2e46 100644 --- a/src/router/systemRouter.js +++ b/src/router/systemRouter.js @@ -21,7 +21,7 @@ const routes = [ component:()=>import(/* webpackChunkName: "bindWechat" */ '@/views/login/bindWechat'), meta:{ title:'绑定微信' - } + }, }, { path:"/bind_dingtalk", @@ -56,21 +56,24 @@ const routes = [ component: () => import(/* webpackChunkName: "serveView" */ '@/views/serveView'), meta: { title: "信息服务" - } + }, + tokenShow:true }, { path: "/maintenance", component: () => import(/* webpackChunkName: "serveView" */ '@/views/maintenance'), meta: { title: "维保服务" - } + }, + tokenShow:true }, { path: "/personalCenter", component: () => import(/* webpackChunkName: "personalCenter" */ '@/views/personalCenter'), meta: { title: "个人中心" - } + }, + tokenShow:true }, ] diff --git a/src/views/personalCenter/components/editAccount.vue b/src/views/personalCenter/components/editAccount.vue index 7f5f9fd..3e5d580 100644 --- a/src/views/personalCenter/components/editAccount.vue +++ b/src/views/personalCenter/components/editAccount.vue @@ -26,8 +26,70 @@ 保 存 + +
+
账号绑定
+
+
+
+
+ +
+
+
绑定微信
+
{{wechat.nick_name==""?'-':wechat.nick_name}}
+
绑定微信,用于账号登录,客服咨询及其它消息提醒。
+
+
+
+ 绑 定 + 解 除 +
+
+
+
+
+
+ +
+
+
绑定钉钉
+
{{dingTalk.nick_name==""?'-':dingTalk.nick_name}}
+
绑定钉钉,用于账号登录。
+
+
+
+ 绑 定 + 解 除 +
+
+
+ + +
+
+ +
+

{{bind_wechat_error}},请先解绑原账号绑定

+

+ 请使用微信扫一扫绑定 +

+
+ +
+
+
diff --git a/src/views/setting/company/save.vue b/src/views/setting/company/save.vue index 55d8b04..e130be1 100644 --- a/src/views/setting/company/save.vue +++ b/src/views/setting/company/save.vue @@ -28,7 +28,7 @@ - + diff --git a/src/views/setting/user/review.vue b/src/views/setting/user/review.vue index 957c0a6..b3007f9 100644 --- a/src/views/setting/user/review.vue +++ b/src/views/setting/user/review.vue @@ -11,11 +11,11 @@
用户信息
- + - + @@ -29,9 +29,9 @@ - - - + + + @@ -61,7 +61,7 @@ export default { passLoading:false, isSave: false, - companyList:[], + companyList:[], //表单数据 form: { id:"", @@ -84,22 +84,22 @@ export default { } }, mounted() { - this.getCompanyList(); + this.getCompanyList(); }, methods: { - async getCompanyList() { - let params = { - field:"full_name", - id:{ - operator:"in", - value:[] - } - } - const res = await this.$API.system.user.userCompanyField.post(params); - if(res.code == 200){ - this.companyList = res.data; - } - }, + async getCompanyList() { + let params = { + field:"full_name", + id:{ + operator:"in", + value:[] + } + } + const res = await this.$API.system.user.userCompanyField.post(params); + if(res.code == 200){ + this.companyList = res.data; + } + }, //显示 open(mode='add'){ this.mode = mode; diff --git a/src/views/setting/user/save.vue b/src/views/setting/user/save.vue index ee0f7d8..beb8499 100644 --- a/src/views/setting/user/save.vue +++ b/src/views/setting/user/save.vue @@ -1,61 +1,68 @@