| | |
| | | <view class="user" @click="userDetail"> |
| | | <!-- 头像 --> |
| | | <view class="user-avatar"> |
| | | <img src="" alt=""> |
| | | <!-- <image src="" mode="aspectFit"></image> --> |
| | | <image src="../../static/image/user__easyico.png" mode="aspectFit"></image> |
| | | </view> |
| | | <!-- 信息 --> |
| | | <view class="user-info"> |
| | |
| | | let res = await user.getDetail() |
| | | if (res.code === 200) { |
| | | this.username = res.data.username |
| | | console.log(res); |
| | | console.log(res.data); |
| | | } else if (res.code === 403) { |
| | | this.backLogin(res) |
| | | } |
| | |
| | | grid-template-columns: 1fr 4fr 1fr; |
| | | } |
| | | .user-avatar { |
| | | height: 200rpx; |
| | | width: 200rpx; |
| | | height: 100rpx; |
| | | width: 100rpx; |
| | | padding: 50rpx; |
| | | /* background-color: aquamarine; */ |
| | | display: flex; |
| | | justify-content: center; |