1234567891011121314151617181920212223242526272829 |
- <view class="mine">
- <view class="mine-top">
- <view class="top-area"></view>
- </view>
- <view class="mine-user">
- <view class="mine-user-msg">
- <view>
- <view a:if="{{ !userInfo}}">
- <image class="mine-head" mode="scaleToFill" src="../../static/mine/avatar.png" />
- </view>
- <image
- a:if="{{userInfo}}"
- class="mine-head"
- src="../../static/mine/avatar_cur.png"
- mode="aspectFill"
- onTap="preview"
- data-src="{{userInfo.avatar}}"
- />
- <text class="mine-name">
- {{userInfo?userInfo.username:'请先登录'}}
- </text>
- </view>
- </view>
- <view class="mine-btn {{userInfo?'mine-bgc':''}}">
- <button onTap="{{userInfo?'loginOut':'goLogin'}}">
- {{userInfo?'退出登录':'登录'}}
- </button>
- </view>
- </view>
|