index.wxml 1.4 KB

1234567891011121314151617181920212223242526
  1. <scroll-view scroll-y class="DrawerPage ">
  2. <view class="header bg-blue" style="background-image: url({{waveimg}});">
  3. <view class="user">
  4. <view class="cu-avatar xl round margin-bottom" style="background-image:url({{login.imgurl}});"></view>
  5. <view class="text-center text-xl text-bold">
  6. <text>{{login.name}}</text>
  7. <text class="{{login.state=='未登录' ? 'text-red' : 'padding'}}">{{login.state}}</text>
  8. <text wx:if="!login.usertype" class="text-black">{{login.usertype}}</text>
  9. </view>
  10. <view wx:if="{{login.state !='未登录'}}" class="text-center">
  11. <button bindtap="updateFunc" class="cu-btn round bg-olive marign shadow }">
  12. <text wx:if="{{update_lock}}" class="cuIcon-loading2 iconfont-spin"> </text>更新资料</button>
  13. <button bindtap="subscriberFunc" class="cu-btn round bg-olive margin shadow">
  14. <text wx:if="{{subscriber_lock}}" class="cuIcon-loading2 iconfont-spin"></text>订阅消息</button>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="cu-list menu margin-bottom-xl shadow-lg radius">
  19. <view wx:for="{{items}}" wx:key="index" class="cu-item arrow">
  20. <view class="content" bindtap="CopyLink" data-link="https://github.com/weilanwl/ColorUI">
  21. <text class="cuIcon-{{item.imgurl}} text-blue"></text>
  22. <text class="text-black">{{item.title}}</text>
  23. </view>
  24. </view>
  25. </view>
  26. </scroll-view>