修改
This commit is contained in:
parent
021551d3b6
commit
552b923d2c
@ -46,6 +46,7 @@
|
||||
uni.setStorageSync("nursePersonId", res.data.nurseStationPersonId)
|
||||
}
|
||||
uni.setStorageSync("personRoleLoginFlag", res.data.personRoleLoginFlag)
|
||||
uni.setStorageSync("phone", res.data.phone)
|
||||
this.$refs.uToast.show({
|
||||
title: '登录成功',
|
||||
type: 'success',
|
||||
|
||||
@ -2,7 +2,8 @@
|
||||
<view class="app">
|
||||
<image class="circular" :src="beijingurl" mode=""></image>
|
||||
<view class="user" v-if="Personallist&&personRoleLoginFlag == 'nursePersonRole'">
|
||||
<image class="img" :src="baseurl+Personallist.avatar" mode=""></image>
|
||||
<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">
|
||||
{{Personallist.nursePersonName}}
|
||||
</view>
|
||||
@ -19,12 +20,12 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="user" v-if="personRoleLoginFlag == 'stationRole'">
|
||||
<view class="phone">
|
||||
暂无
|
||||
<view class="nickname" style="top:245rpx" v-if="phone">
|
||||
{{phone}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="user" v-if="!Personallist&&!personRoleLoginFlag">
|
||||
<image class="img" src="../../static/user.png" mode=""></image>
|
||||
<image class="img" src="../../static/users.png" mode=""></image>
|
||||
<view class="login" @tap='gologin'>
|
||||
登录
|
||||
</view>
|
||||
@ -91,6 +92,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
phone: null,
|
||||
beijingurl: null, //背景
|
||||
nursePersonId: null, //护理员id
|
||||
baseurl: null, //url
|
||||
@ -109,7 +111,11 @@
|
||||
that.nursePersonId = value
|
||||
that.myInfo()
|
||||
} else {}
|
||||
} else if (this.personRoleLoginFlag == 'stationRole') {}
|
||||
}
|
||||
const phone = uni.getStorageSync('phone');
|
||||
if (phone) {
|
||||
that.phone = phone
|
||||
} else {}
|
||||
},
|
||||
onLoad(options) {},
|
||||
methods: {
|
||||
@ -293,7 +299,7 @@
|
||||
position: absolute;
|
||||
top: 170rpx;
|
||||
left: 8%;
|
||||
border: 4px solid #6DD8FC;
|
||||
border: 2rpx solid #6DD8FC;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -37,7 +37,6 @@ const store = new Vuex.Store({
|
||||
integralsubscribesuccess(state) {
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: [
|
||||
'-3YtSqNtujio6XeJ3Ax95wmWSZL6k7ozp9eSk5ZUM30',
|
||||
'fmZMOW9dq4kKBH-BEpcVIltbG0C9-aiQUVG3USVfgR8',
|
||||
'foVV7Gke-8JdzgzHQ7QQrDV5lK1L5xLkuUyZurQC8L4',
|
||||
],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user