退出登录+解绑家庭成员
This commit is contained in:
parent
7e62289957
commit
732f11e3f4
@ -1,3 +1,10 @@
|
|||||||
// var baseurl = "https://quanyidaojia.xinelu.cn";
|
// var baseurl = "https://quanyidaojia.xinelu.cn";
|
||||||
var baseurl = "http://192.168.16.48:8081";
|
// 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
|
export default baseurl
|
||||||
@ -86,8 +86,11 @@
|
|||||||
onShow() {
|
onShow() {
|
||||||
uni.setStorageSync("region", 1)
|
uni.setStorageSync("region", 1)
|
||||||
this.userinfo = uni.getStorageSync('userinfo');
|
this.userinfo = uni.getStorageSync('userinfo');
|
||||||
this.patientName = this.userinfo.patientName
|
|
||||||
|
|
||||||
if (this.userinfo) {
|
if (this.userinfo) {
|
||||||
|
this.patientName = this.userinfo.patientName
|
||||||
|
console.log(this.patientName,'000')
|
||||||
checkSignApply(this.userinfo.cardNo).then(res => {
|
checkSignApply(this.userinfo.cardNo).then(res => {
|
||||||
if (res.data.code != 0) {
|
if (res.data.code != 0) {
|
||||||
this.checkSign = true
|
this.checkSign = true
|
||||||
@ -95,6 +98,9 @@
|
|||||||
this.checkSign = false
|
this.checkSign = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
this.patientName=''
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@ -142,7 +142,7 @@
|
|||||||
<image src="../../static/huijiantou.png" mode=""></image>
|
<image src="../../static/huijiantou.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="myorder titles">
|
<view class="myorder titles" @tap="remove()">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
退出登录
|
退出登录
|
||||||
</view>
|
</view>
|
||||||
@ -229,6 +229,38 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
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(){
|
getpersnoal(){
|
||||||
getCurrentUser(this.valueopenid).then(res => {
|
getCurrentUser(this.valueopenid).then(res => {
|
||||||
|
|||||||
@ -4,44 +4,85 @@
|
|||||||
<view class="title">
|
<view class="title">
|
||||||
签约时出示二维码
|
签约时出示二维码
|
||||||
</view>
|
</view>
|
||||||
<!-- <image src="../../static/pagesB/fuli.png" mode=""></image> -->
|
<image src="../../static/pagesB/ma2x.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view class="lefttext">
|
<view class="lefttext">
|
||||||
姓名:
|
姓名:
|
||||||
</view>
|
</view>
|
||||||
<view class="righttext">
|
<view class="righttext">
|
||||||
张三
|
{{currentInfo.patientName}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view class="lefttext">
|
<view class="lefttext">
|
||||||
手机号:
|
手机号:
|
||||||
</view>
|
</view>
|
||||||
<view class="righttext">
|
<view class="righttext" v-if="currentInfo.phone">
|
||||||
178****3647
|
{{currentInfo.phone.substring(0,3)}}****{{currentInfo.phone.substring(7,11)}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view class="lefttext">
|
<view class="lefttext">
|
||||||
身份证号:
|
身份证号:
|
||||||
</view>
|
</view>
|
||||||
<view class="righttext">
|
<view class="righttext" v-if="currentInfo.cardNo">
|
||||||
3703************76
|
{{currentInfo.cardNo.substring(0,4)}}************{{currentInfo.cardNo.substring(16,18)}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn">
|
<view class="btn" @tap="show = true">
|
||||||
解除绑定家庭成员
|
解除绑定家庭成员
|
||||||
</view>
|
</view>
|
||||||
|
<u-modal v-model="show" :title="title" closeOnClickOverlay :content='content' showCancelButton @confirm='confirmbtn' @close='closebtn'
|
||||||
|
@cancel='cancelbtn'></u-modal>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {getInfo,delFamilyItem} from '@/api/pagesB/familymemberdetail/familymemberdetail.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
currentInfo: '',
|
||||||
|
show: false,
|
||||||
|
title: '提示',
|
||||||
|
content: '确定要解除绑定吗?'
|
||||||
|
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
onLoad(options) {
|
||||||
|
console.log(options)
|
||||||
|
var patientCode=options.patientCode
|
||||||
|
getInfo(patientCode).then(res => {
|
||||||
|
this.currentInfo=res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
closebtn() {
|
||||||
|
this.show = false;
|
||||||
|
},
|
||||||
|
confirmbtn() {
|
||||||
|
delFamilyItem(this.currentInfo.patientCode).then(res => {
|
||||||
|
if(res.code == 200) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '解除成功',
|
||||||
|
duration: 1000
|
||||||
|
});
|
||||||
|
setTimeout(function() {
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 1
|
||||||
|
})
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.show = false;
|
||||||
|
},
|
||||||
|
cancelbtn() {
|
||||||
|
this.show = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="app">
|
<view class="app">
|
||||||
<view class="forlist">
|
<view class="forlist">
|
||||||
<view class="item" @tap='gofamilymemberdetail' v-for="item in familyList">
|
<view class="item" @tap='gofamilymemberdetail(item)' v-for="item in familyList">
|
||||||
<view class="namesigning">
|
<view class="namesigning">
|
||||||
<span class="name">
|
<span class="name">
|
||||||
{{item.patientName}}
|
{{item.patientName}}
|
||||||
</span>
|
</span>
|
||||||
<view class="signing">
|
<view class="signing">
|
||||||
{{}}
|
{{item.signNo==null ?"未签约":'已签约'}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="card">
|
<view class="card">
|
||||||
@ -77,9 +77,10 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
gofamilymemberdetail() {
|
gofamilymemberdetail(item) {
|
||||||
|
console.log((item))
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pagesB/familymemberdetail/familymemberdetail`
|
url: `/pagesB/familymemberdetail/familymemberdetail?patientCode=${item.patientCode}`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user