No Description

index.swan 500B

12345678910111213
  1. <!-- index.swan -->
  2. <view class="container">
  3. <view class="logo">
  4. </view>
  5. <view class="userinfo">
  6. <button class="userinfo-login-btn" s-if="{{!hasUserInfo && canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 获取头像昵称 </button>
  7. <view s-else class="userinfo-message">
  8. <image class="userinfo-avatar" src="{{userInfo.avatarUrl}}"></image>
  9. <text class="userinfo-nickname">{{userInfo.nickName}}</text>
  10. </view>
  11. </view>
  12. </view>