1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| <template>
| <view class="user-row-compontent">登录者:{{username}}</view>
| </template>
|
| <script>
| export default {
| name:'userRowCompontent',
| computed:{
| username(){
| let res = uni.getStorageSync('_username');
| if (!res) res=''
| return res;
| }
| }
| }
| </script>
|
| <style lang="scss" scoped>
| .user-row-compontent{
| background-color: #f2f2f2;
| color: #999999;
| width: 100%;
| height: 60rpx;
| display: flex;
| justify-content: flex-end;
| align-items: center;
| box-sizing: border-box;
| padding: 0 16rpx;
| }
| </style>
|
|