index.wxml 607 B

1234567891011121314
  1. <!--index.wxml-->
  2. <view class="container">
  3. <view class="userinfo">
  4. <!-- <button wx:if="{{!hasUserInfo && canIUse}}" open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo"> 点击登录 </button> -->
  5. <button wx:if="{{!hasUserInfo && canIUse}}" bindtap='login'> 点击登录 </button>
  6. <block wx:else>
  7. <image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" mode="cover"></image>
  8. <text class="userinfo-nickname">{{userInfo.nickName}}</text>
  9. </block>
  10. </view>
  11. <view class="usermotto">
  12. <text class="user-motto">{{motto}}</text>
  13. </view>
  14. </view>