index.wxml 827 B

1234567891011121314151617181920
  1. <custom style="height:{{CustomBar}}px;">
  2. <bar class="fixed gradual-blue" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}px;">
  3. <view class='content'>ColorUI 空白模板</view>
  4. </bar>
  5. </custom>
  6. <view class="margin-xl padding-xl bg-white radius shadow-lg">
  7. <view class="flex justify-center">
  8. <button wx:if="{{!hasUserInfo && canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo" class='round bg-green shadow'> 获取头像昵称 </button>
  9. <block wx:else>
  10. <view class='text-center'>
  11. <avatar class="xl round solids" style="background-image:url({{userInfo.avatarUrl}})"></avatar>
  12. <view class="padding">{{userInfo.nickName}}</view>
  13. </view>
  14. </block>
  15. </view>
  16. </view>
  17. <view class="text-center margin-top">
  18. <text class="text-grey text-xl">{{motto}}</text>
  19. </view>