|
|
@@ -2,10 +2,15 @@
|
|
|
<image style="width:100%;height:15vh;" mode="scaleToFill" src="../images/my_bg.png"></image>
|
|
|
<view class="info">
|
|
|
<view class='avatar'>
|
|
|
- <open-data type="userAvatarUrl"></open-data>
|
|
|
+ <open-data wx:if='{{!userinfo.avatar}}' type="userAvatarUrl">
|
|
|
+ </open-data>
|
|
|
+ <image style="width:100%;height:100%;" wx:else src="{{userinfo.avatar}}"></image>
|
|
|
</view>
|
|
|
<view class="name">
|
|
|
- <open-data type="userNickName"></open-data>
|
|
|
+ <open-data wx:if='{{!userinfo.username}}' type="userNickName">
|
|
|
+ </open-data>
|
|
|
+ <view wx:else>{{userinfo.username}}</view>
|
|
|
+
|
|
|
<view wx:if='{{userInfo.id}}'>代码:{{usercode}}</view>
|
|
|
<view wx:else style="margin-top:20rpx;">欢迎来到湖南顽主杯实盘大赛</view>
|
|
|
</view>
|