me.wxml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!--parents/pages/me/me.wxml-->
  2. <import src="../../../templates/footer/footer.wxml" />
  3. <import src="../../../templates/loading/loading.wxml" />
  4. <view class='container'>
  5. <template is='loading' wx:if='{{!isLoaded}}'></template>
  6. <view class='wrapper' wx:else>
  7. <view class='header'>
  8. <view class='header-flex'>
  9. <view>
  10. <view class='section-text-black'wx:if='{{options.userInfo}}'>{{options.userInfo.nickName}}</view>
  11. <!-- <view class='section-text-title'>校长助理</view>
  12. <view class='section-text-title'>学习导师</view> -->
  13. <view>
  14. <text class='section-text' wx:if='{{options.list}}'>{{options.list[0].libName}}</text>
  15. <image class='head-month-img' src='../../../assets/selecticon.png'></image>
  16. </view>
  17. </view>
  18. </view>
  19. <view>
  20. <view class='header-images'>
  21. <image class='header-nologin-icon' src='{{options.userInfo?options.userInfo.avatarUrl:"../../../assets/default_headicon.png"}}'></image>
  22. </view>
  23. </view>
  24. </view>
  25. <view class='section'>
  26. <view class='section-list'>
  27. <view class='section-li' wx:for='{{routerTwo}}' wx:key='index' data-index='{{index}}' bindtap='selectRouteCtl'>
  28. <view>
  29. <image class='section-icon' src='{{item.icon}}'></image>
  30. <text class='section-text'>{{item.text}}</text>
  31. </view>
  32. <image class='section-arrow' src='../../../assets/arrow_gray.png'></image>
  33. </view>
  34. <view class='section-li'>
  35. <picker bindchange='pickerpositionCtl' value='{{positionIndex}}' range='{{positionArray}}'>
  36. <image class='section-icon' src='../../../assets/qiehuan_icon.png'></image>
  37. <text class='section-text'>身份切换</text>
  38. <view class='li-picker'>{{vip.position == 1 ? '馆长' : vip.position == 2 ? '家长' : ''}}</view>
  39. <image class='section-arrow' src='../../../assets/arrow_gray.png'></image>
  40. </picker>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <template is='footer' data='{{...footerData}}'></template>
  46. </view>