From e70033fd804d699968ac85eafef0c17a884aac20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AD=A3=E6=98=93?= Date: Fri, 20 Sep 2024 16:28:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../preparationByPlan/addTask/addTask.vue | 2 +- .../preparationByPlan/index.vue | 23 +- pages/mine/about/index.vue | 125 +++++---- pages/mine/help/index.vue | 199 ++++++++------- pages/mine/index.vue | 21 +- pages/mine/info/edit.vue | 237 +++++++++--------- pages/mine/info/index.vue | 70 +++--- store/modules/user.js | 12 +- 8 files changed, 361 insertions(+), 328 deletions(-) diff --git a/pages/materialManagement/preparationByPlan/addTask/addTask.vue b/pages/materialManagement/preparationByPlan/addTask/addTask.vue index 2dea440..6dd5ed5 100644 --- a/pages/materialManagement/preparationByPlan/addTask/addTask.vue +++ b/pages/materialManagement/preparationByPlan/addTask/addTask.vue @@ -155,7 +155,7 @@ export default { diff --git a/pages/materialManagement/preparationByPlan/index.vue b/pages/materialManagement/preparationByPlan/index.vue index 8235825..1815283 100644 --- a/pages/materialManagement/preparationByPlan/index.vue +++ b/pages/materialManagement/preparationByPlan/index.vue @@ -9,14 +9,22 @@ - + - - - + + + + + - + @@ -141,5 +149,8 @@ export default { .card-box { width: 100%; } - +.scroll-view { + height: 760rpx; + padding-bottom: 40rpx; +} diff --git a/pages/mine/about/index.vue b/pages/mine/about/index.vue index d3f6255..a16a4ad 100644 --- a/pages/mine/about/index.vue +++ b/pages/mine/about/index.vue @@ -1,75 +1,74 @@ +.header-section { + display: flex; + padding: 30rpx 0 0; + flex-direction: column; + align-items: center; +} + \ No newline at end of file diff --git a/pages/mine/help/index.vue b/pages/mine/help/index.vue index d2e4374..6fe4bdc 100644 --- a/pages/mine/help/index.vue +++ b/pages/mine/help/index.vue @@ -1,112 +1,117 @@ +.question { + color: #606266; + font-size: 28rpx; +} + \ No newline at end of file diff --git a/pages/mine/index.vue b/pages/mine/index.vue index b46bc47..ff57abc 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -22,21 +22,21 @@ - - - 交流群 + + + 同事 - 在线客服 + 客服 - 反馈社区 + 反馈 - - 点赞我们 + + 分享 @@ -74,6 +74,11 @@ import storage from '@/utils/storage'; export default { + onShow() { + // this.$store.dispatch('GetInfo').then((res) => { + // // this.$tab.reLaunch('/pages/index'); + // }); + }, data() { return { name: this.$store.state.user.name, @@ -118,7 +123,7 @@ export default { this.$tab.navigateTo('/pages/mine/about/index'); }, handleJiaoLiuQun() { - this.$modal.showToast('QQ群:①133713780、②146013835'); + this.$modal.showToast('模块建设中~'); }, handleBuilding() { this.$modal.showToast('模块建设中~'); diff --git a/pages/mine/info/edit.vue b/pages/mine/info/edit.vue index 519540a..f1bd3d9 100644 --- a/pages/mine/info/edit.vue +++ b/pages/mine/info/edit.vue @@ -1,127 +1,138 @@ diff --git a/pages/mine/info/index.vue b/pages/mine/info/index.vue index 65c861a..52f89ce 100644 --- a/pages/mine/info/index.vue +++ b/pages/mine/info/index.vue @@ -1,44 +1,44 @@ diff --git a/store/modules/user.js b/store/modules/user.js index 168d9e2..d5f7566 100644 --- a/store/modules/user.js +++ b/store/modules/user.js @@ -56,7 +56,6 @@ const user = { const uuid = userInfo.uuid return new Promise((resolve, reject) => { login(username, password, code, uuid).then(res => { - console.log(res) setToken(res.data) commit('SET_TOKEN', res.data) resolve() @@ -73,17 +72,20 @@ const user = { }) { return new Promise((resolve, reject) => { getInfo().then(res => { - const user = res.user + console.log(res); + const user = res.data.user + const avatar = (user == null || user.avatar == "" || user.avatar == null) ? require("@/static/images/profile.jpg") : baseUrl + user.avatar const username = (user == null || user.userName == "" || user.userName == null) ? "" : user.userName - if (res.roles && res.roles.length > 0) { - commit('SET_ROLES', res.roles) - commit('SET_PERMISSIONS', res.permissions) + if (res.data.roles && res.data.roles.length > 0) { + commit('SET_ROLES', res.data.roles) + commit('SET_PERMISSIONS', res.data.permissions) } else { commit('SET_ROLES', ['ROLE_DEFAULT']) } + console.log(username,avatar,res.data.roles); commit('SET_NAME', username) commit('SET_AVATAR', avatar) resolve(res)