| | |
| | | <view class="m-top"> |
| | | <view class="my-user-info"> |
| | | <view class="user-name-id"> |
| | | <view class="user-name">{{userName}}</view> |
| | | <view class="user-id">ID: 4120552252</view> |
| | | <view class="user-name">{{name}}</view> |
| | | <view class="user-id">ID: {{id}}</view> |
| | | </view> |
| | | <view class="userImg"> |
| | | <img class="img" :src="useimg" @click="ChooseImage"> |
| | |
| | | </view> |
| | | <view class="my-dept-info"> |
| | | <view class="dept-info"> |
| | | <view class="dept-name">所属组织: **派出所--**警务站</view> |
| | | <view class="dept-name">所属组织: {{tenantName}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | }, |
| | | |
| | | ], |
| | | tabbar:this.$store.state.tabbar |
| | | tabbar:this.$store.state.tabbar, |
| | | name:'', |
| | | id:'', |
| | | tenantName:'' |
| | | } |
| | | }, |
| | | components: { |
| | |
| | | } |
| | | }, |
| | | onLoad() { |
| | | if(this.$store.state.puserID){ |
| | | //获取个人信息 |
| | | this.getOneselfInFo(); |
| | | } |
| | | if(this.$store.state.avatar!=null && this.$store.state.avatar!=''){ |
| | | this.useimg = this.$store.state.avatar; |
| | | } |
| | |
| | | animationType: 'slide-in-top', |
| | | animationDuration: 20000 |
| | | }); |
| | | }, |
| | | //登录成功后,获取个人信息 |
| | | getOneselfInFo(){ |
| | | var that = this; |
| | | //保安信息查询 |
| | | uni.request({ |
| | | url:'http://s16s652780.51mypc.cn/api/blade-user/details?id='+this.$store.state.puserID, |
| | | method:'POST', |
| | | success(resdata) { |
| | | that.name = resdata.data.data.realName; |
| | | that.id = resdata.data.data.id; |
| | | that.tenantName = resdata.data.data.tenantName; |
| | | } |
| | | }) |
| | | }, |
| | | operation(e) { |
| | | let that = this; |
| | |
| | | font-weight: 550; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |