index.wxml 1.2 KB

12345678910111213141516171819202122
  1. <scroll-view scroll-y class="DrawerPage ">
  2. <view class="header bg-blue" style="background-image: url({{waveimg}});">
  3. <view bindtap="{{login.state=='未登录' ? 'loginFunc' : ''}}" 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>
  11. </view>
  12. <view class="cu-list menu margin-bottom-xl shadow-lg radius">
  13. <view bindtap="onClickFunc" data-index="{{index}}" wx:for="{{items}}" wx:key="index" class="cu-item arrow">
  14. <view class="content" bindtap="CopyLink" data-link="https://github.com/weilanwl/ColorUI">
  15. <text class="cuIcon-{{item.imgurl}} text-blue"></text>
  16. <text class="text-black">{{item.title}}</text>
  17. </view>
  18. </view>
  19. </view>
  20. </scroll-view>
  21. <van-action-sheet show="{{ show }}" bind:getphonenumber="getphonenumber" actions="{{ actions }}" bind:close="onClose"
  22. bind:select="onSelect" />