修改
This commit is contained in:
parent
515302a24d
commit
3ad72a8592
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="app">
|
||||
<image class="circular" :src="beijingurl" mode=""></image>
|
||||
<view class="user" v-if="Personallist">
|
||||
<view class="user" v-if="Personallist&&personRoleLoginFlag != 'stationRole'">
|
||||
<image class="img" :src="baseurl+Personallist.avatar" mode="" v-if="Personallist.avatar"></image>
|
||||
<image class="img" src="../../static/users.png" mode="" v-else></image>
|
||||
<view class="phone" v-if="Personallist.nursePersonName">
|
||||
@ -19,13 +19,13 @@
|
||||
修改信息
|
||||
</view>
|
||||
</view>
|
||||
<view class="user" v-if="personRoleLoginFlag == 'stationRole'">
|
||||
<view class="user" v-if="personRoleLoginFlag == 'stationRole'&&!Personallist">
|
||||
<image class="img" src="../../static/users.png" mode=""></image>
|
||||
<view class="phone" style="top:245rpx" v-if="phone">
|
||||
{{phone}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="user" v-if="!personRoleLoginFlag">
|
||||
<view class="user" v-if="!personRoleLoginFlag&&!Personallist">
|
||||
<image class="img" src="../../static/users.png" mode=""></image>
|
||||
<view class="login" @tap='gologin'>
|
||||
登录
|
||||
@ -188,6 +188,7 @@
|
||||
uni.removeStorageSync('nursePersonId');
|
||||
uni.removeStorageSync('personRoleLoginFlag');
|
||||
uni.removeStorageSync('phone');
|
||||
that.Personallist = null
|
||||
that.$refs.uToast.show({
|
||||
title: '退出账号成功',
|
||||
type: 'success',
|
||||
@ -196,11 +197,11 @@
|
||||
if (that.timer) {
|
||||
clearTimeout(that.timer)
|
||||
}
|
||||
that.timer = setTimeout(e => {
|
||||
uni.switchTab({
|
||||
url: '/pages/homepage/homepage'
|
||||
})
|
||||
}, 1000)
|
||||
// that.timer = setTimeout(e => {
|
||||
// uni.switchTab({
|
||||
// url: '/pages/homepage/homepage'
|
||||
// })
|
||||
// }, 1000)
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@ -81,7 +81,11 @@ const store = new Vuex.Store({
|
||||
withSubscriptions: true,
|
||||
success(res) {
|
||||
if (res.authSetting['scope.subscribeMessage']) {} else {
|
||||
contxt.commit('integralsubscribesuccess')
|
||||
if (personRoleLoginFlag == 'wholeRole') {
|
||||
contxt.commit('subscribesuccesssome')
|
||||
} else {
|
||||
contxt.commit('integralsubscribesuccess')
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
@ -93,11 +97,7 @@ const store = new Vuex.Store({
|
||||
withSubscriptions: true,
|
||||
success(res) {
|
||||
if (res.authSetting['scope.subscribeMessage']) {} else {
|
||||
if (personRoleLoginFlag == 'wholeRole') {
|
||||
contxt.commit('subscribesuccesssome')
|
||||
} else {
|
||||
contxt.commit('subscribesuccess')
|
||||
}
|
||||
contxt.commit('subscribesuccess')
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user