From 552b923d2cb64a593394246c9a7e3bc7fde9532b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Mon, 10 Apr 2023 16:40:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/login.vue | 1 + pages/personal/personal.vue | 18 ++++++++++++------ store/index.js | 1 - 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/pages/login/login.vue b/pages/login/login.vue index 4fc8386..4028bfa 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -46,6 +46,7 @@ uni.setStorageSync("nursePersonId", res.data.nurseStationPersonId) } uni.setStorageSync("personRoleLoginFlag", res.data.personRoleLoginFlag) + uni.setStorageSync("phone", res.data.phone) this.$refs.uToast.show({ title: '登录成功', type: 'success', diff --git a/pages/personal/personal.vue b/pages/personal/personal.vue index b2ac405..0ba8711 100644 --- a/pages/personal/personal.vue +++ b/pages/personal/personal.vue @@ -2,7 +2,8 @@ - + + {{Personallist.nursePersonName}} @@ -19,12 +20,12 @@ - - 暂无 + + {{phone}} - + @@ -91,6 +92,7 @@ export default { data() { return { + phone: null, beijingurl: null, //背景 nursePersonId: null, //护理员id baseurl: null, //url @@ -109,7 +111,11 @@ that.nursePersonId = value that.myInfo() } else {} - } else if (this.personRoleLoginFlag == 'stationRole') {} + } + const phone = uni.getStorageSync('phone'); + if (phone) { + that.phone = phone + } else {} }, onLoad(options) {}, methods: { @@ -293,7 +299,7 @@ position: absolute; top: 170rpx; left: 8%; - border: 4px solid #6DD8FC; + border: 2rpx solid #6DD8FC; } } diff --git a/store/index.js b/store/index.js index 4dcfd5e..0ad3ce2 100644 --- a/store/index.js +++ b/store/index.js @@ -37,7 +37,6 @@ const store = new Vuex.Store({ integralsubscribesuccess(state) { wx.requestSubscribeMessage({ tmplIds: [ - '-3YtSqNtujio6XeJ3Ax95wmWSZL6k7ozp9eSk5ZUM30', 'fmZMOW9dq4kKBH-BEpcVIltbG0C9-aiQUVG3USVfgR8', 'foVV7Gke-8JdzgzHQ7QQrDV5lK1L5xLkuUyZurQC8L4', ],