Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
闫晓茹 2023-10-24 17:16:04 +08:00
commit e744e27638

View File

@ -3,7 +3,7 @@
<!-- 家医 -->
<view class="Familydoctor" v-if="status=='1'">
<view class="Familybody">
<view class="myorder titles">
<view class="myorder titles" @tap="personlinfo()">
<view class="title">
个人信息
</view>
@ -11,7 +11,7 @@
<image src="../../static/huijiantou.png" mode=""></image>
</view>
</view>
<view class="myorder titles">
<view class="myorder titles" @tap="gophone">
<view class="title">
修改手机号
</view>
@ -19,7 +19,7 @@
<image src="../../static/huijiantou.png" mode=""></image>
</view>
</view>
<view class="myorder titles">
<view class="myorder titles" @tap="gopassword">
<view class="title">
修改密码
</view>
@ -43,6 +43,14 @@
<image src="../../static/huijiantou.png" mode=""></image>
</view>
</view>
<view class="myorder titles" @tap="remove()">
<view class="title">
退出账号
</view>
<view class="righttitle">
<image src="../../static/huijiantou.png" mode=""></image>
</view>
</view>
</view>
</view>
@ -82,9 +90,18 @@
<image src="../../static/huijiantou.png" mode=""></image>
</view>
</view>
<view class="myorder titles" @tap="remove()">
<view class="title">
退出账号
</view>
<view class="righttitle">
<image src="../../static/huijiantou.png" mode=""></image>
</view>
</view>
</view>
</view>
<u-toast ref="uToast" />
</view>
</template>
@ -141,6 +158,30 @@
url: '/pages/ServiceSchedule/ServiceSchedule'
})
},
// 退
remove() {
let that = this
uni.showModal({
title: '提示',
content: '确认要退出此账号吗',
success: function(res) {
if (res.confirm) {
uni.clearStorageSync();
that.$refs.uToast.show({
title: '退出账号成功',
type: 'success',
duration: '1000'
})
setTimeout(e => {
uni.reLaunch({
url: '/pages/login/login'
})
}, 1000)
}
}
});
},
@ -367,4 +408,4 @@
}
}
}
</style>
</style>