修改
This commit is contained in:
parent
f6ee498b48
commit
ba0d799367
@ -138,7 +138,8 @@
|
||||
// return data => data?.nurseStationSysUserVOList?. [0]?.nurseStationName || ''
|
||||
// },
|
||||
},
|
||||
onShow() {
|
||||
onShow() {},
|
||||
onLoad(options) {
|
||||
this.image = false
|
||||
this.baseurl = baseurl;
|
||||
let that = this
|
||||
@ -148,7 +149,6 @@
|
||||
that.myInfo()
|
||||
} else {}
|
||||
},
|
||||
onLoad(options) {},
|
||||
methods: {
|
||||
//删除证书图片
|
||||
delimg(item) {
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
{{phone}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="user" v-if="!Personallist&&!personRoleLoginFlag">
|
||||
<view class="user" v-if="!personRoleLoginFlag">
|
||||
<image class="img" src="../../static/users.png" mode=""></image>
|
||||
<view class="login" @tap='gologin'>
|
||||
登录
|
||||
@ -73,17 +73,16 @@
|
||||
我的考试
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottomitem" @tap='gostudy'>
|
||||
<view class="bottomitem" @tap='goremove'>
|
||||
<image src="../../static/shezhi.png" mode=""></image>
|
||||
<view class="">
|
||||
设置
|
||||
退出账号
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-toast ref="uToast" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
nurseAppletPersonCenter,
|
||||
@ -183,6 +182,42 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
//退出账号
|
||||
goremove() {
|
||||
let that = this
|
||||
const value = uni.getStorageSync('nursePersonId');
|
||||
if (value) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确认要退出此账号吗',
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
uni.removeStorageSync('nursePersonId');
|
||||
uni.removeStorageSync('personRoleLoginFlag');
|
||||
that.$refs.uToast.show({
|
||||
title: '退出账号成功',
|
||||
type: 'success',
|
||||
duration: '1000'
|
||||
})
|
||||
if (that.timer) {
|
||||
clearTimeout(that.timer)
|
||||
}
|
||||
that.timer = setTimeout(e => {
|
||||
uni.switchTab({
|
||||
url: '/pages/homepage/homepage'
|
||||
})
|
||||
}, 1000)
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
that.$refs.uToast.show({
|
||||
title: '您未登录',
|
||||
type: 'error',
|
||||
duration: '1000'
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user