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 @@
-
+
{{item.patientName}}
- {{}}
+ {{item.signNo==null ?"未签约":'已签约'}}
@@ -77,9 +77,10 @@
},
- gofamilymemberdetail() {
+ gofamilymemberdetail(item) {
+ console.log((item))
uni.navigateTo({
- url: `/pagesB/familymemberdetail/familymemberdetail`
+ url: `/pagesB/familymemberdetail/familymemberdetail?patientCode=${item.patientCode}`
})
}
},