From 732f11e3f48eb3133637c1fc9cfa3b963f8f0a96 Mon Sep 17 00:00:00 2001 From: shidongli Date: Wed, 18 Oct 2023 10:56:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95+=E8=A7=A3?= =?UTF-8?q?=E7=BB=91=E5=AE=B6=E5=BA=AD=E6=88=90=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/baseurl.js | 11 +++- pages/homepage/homepage.vue | 8 ++- pages/myinformation/myinformation.vue | 34 +++++++++++- .../familymemberdetail/familymemberdetail.vue | 55 ++++++++++++++++--- pagesB/managefamily/managefamily.vue | 9 +-- 5 files changed, 102 insertions(+), 15 deletions(-) diff --git a/api/baseurl.js b/api/baseurl.js index c31d2c3..bc9a067 100644 --- a/api/baseurl.js +++ b/api/baseurl.js @@ -1,3 +1,10 @@ // var baseurl = "https://quanyidaojia.xinelu.cn"; -var baseurl = "http://192.168.16.48:8081"; -export default baseurl \ No newline at end of file +// var baseurl = "http://192.168.16.48:8088"; +// 蒙 +var baseurl = "http://8.131.93.145:54088"; +// 郝 +// var baseurl = "http://8.131.93.145:54010"; + +// var baseurl = "http://192.168.16.35:8088"; + +export default baseurl diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue index 4ee2242..bcb5034 100644 --- a/pages/homepage/homepage.vue +++ b/pages/homepage/homepage.vue @@ -86,8 +86,11 @@ onShow() { uni.setStorageSync("region", 1) this.userinfo = uni.getStorageSync('userinfo'); - this.patientName = this.userinfo.patientName + + if (this.userinfo) { + this.patientName = this.userinfo.patientName + console.log(this.patientName,'000') checkSignApply(this.userinfo.cardNo).then(res => { if (res.data.code != 0) { this.checkSign = true @@ -95,6 +98,9 @@ this.checkSign = false } }) + }else{ + this.patientName='' + } }, methods: { diff --git a/pages/myinformation/myinformation.vue b/pages/myinformation/myinformation.vue index 5533f3c..1fc8fb8 100644 --- a/pages/myinformation/myinformation.vue +++ b/pages/myinformation/myinformation.vue @@ -142,7 +142,7 @@ - + 退出登录 @@ -229,6 +229,38 @@ }, methods: { + // 退出登录 + remove() { + let that = this + const value = uni.getStorageSync('patientId'); + if (value) { + uni.showModal({ + title: '提示', + content: '确认要退出此账号吗', + success: function(res) { + if (res.confirm) { + uni.clearStorageSync(); + that.$refs.uToast.show({ + title: '退出账号成功', + type: 'success', + duration: '1000' + }) + setTimeout(e => { + uni.switchTab({ + url: '/pages/homepage/homepage' + }) + }, 1000) + } + } + }); + } else { + that.$refs.uToast.show({ + title: '您未登录,请先登录', + type: 'error', + duration: '1000' + }) + } + }, // 获取成员 getpersnoal(){ getCurrentUser(this.valueopenid).then(res => { diff --git a/pagesB/familymemberdetail/familymemberdetail.vue b/pagesB/familymemberdetail/familymemberdetail.vue index 0a157e6..fc0dd3f 100644 --- a/pagesB/familymemberdetail/familymemberdetail.vue +++ b/pagesB/familymemberdetail/familymemberdetail.vue @@ -4,44 +4,85 @@ 签约时出示二维码 - + 姓名: - 张三 + {{currentInfo.patientName}} 手机号: - - 178****3647 + + {{currentInfo.phone.substring(0,3)}}****{{currentInfo.phone.substring(7,11)}} 身份证号: - - 3703************76 + + {{currentInfo.cardNo.substring(0,4)}}************{{currentInfo.cardNo.substring(16,18)}} - + 解除绑定家庭成员 + diff --git a/pagesB/managefamily/managefamily.vue b/pagesB/managefamily/managefamily.vue index d0ca01b..42a1f47 100644 --- a/pagesB/managefamily/managefamily.vue +++ b/pagesB/managefamily/managefamily.vue @@ -1,13 +1,13 @@