me.wxml 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.vip?options.vip.child_name:options.userInfo.nickName}}</view>
  11. <button class='section-text-login' wx:if='{{!options.userInfo}}' open-type="getUserInfo" bindgetuserinfo="getUserInfoCtl">授权登陆</button>
  12. <view data-url='parents/pages/library/library' data-zindex='3' bindtap='redirectTo'>
  13. <image class=''class='section-icon-address' src='../../../assets/position_black.png'></image>
  14. <text class='section-text-add' wx:if='{{options.library}}'>{{options.library.league_name}}</text>
  15. </view>
  16. </view>
  17. </view>
  18. <view>
  19. <view class='header-images' bindtap='{{options.vipList.length>0?"toggleSelectVipCtl":""}}'>
  20. <image class='header-icon' src='../../../assets/qie_huan.png' wx:if='{{options.vipList.length>0&&options.userInfo}}'></image>
  21. <image class='header-nologin-icon' src='{{options.userInfo?options.userInfo.avatarUrl:"../../../assets/default_headicon.png"}}' style='border:{{options.userInfo?"10rpx solid #00B7FF":""}};'></image>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="members-information" wx:if='{{options.vip&&options.userInfo}}'>
  26. <view class='information-flex'>
  27. <view class='section-text-members'>会员服务</view>
  28. <view class='section-text-card'wx:if='{{options.vip.detail}}'>{{options.vip.detail}}{{options.vip.species}}</view>
  29. <view class='section-text-card'wx:if='{{!options.vip.detail}}'>无服务</view>
  30. </view>
  31. <view class='information-two'>
  32. <view class='section-text-data'wx:if='{{options.vip.end_time}}'>{{options.vip.end_time}}到期</view>
  33. <image class=''class='section-queem_icon' wx:if='{{options.vip.end_time}}' src='../../../assets/queen.png'></image>
  34. <image class=''class='section-queem_icon' wx:if='{{!options.vip.end_time}}'src='../../../assets/queen-gary.png'></image>
  35. </view>
  36. </view>
  37. <view class='section'>
  38. <view class='section-list'>
  39. <view class='section-li' wx:for='{{routerTwo}}' wx:key='index' data-index='{{index}}' bindtap='selectRouteCtl'>
  40. <view>
  41. <image class='section-icon' src='{{item.icon}}'></image>
  42. <text class='section-text'>{{item.text}}</text>
  43. </view>
  44. <image class='section-arrow' src='../../../assets/arrow_gray.png'></image>
  45. </view>
  46. <view class='section-li' wx:if='{{roleList.length>1}}'>
  47. <view>
  48. <image class='section-icon' src='../../../assets/qie_huan_jue_se.png'></image>
  49. <text class='section-text'>身份切换</text>
  50. </view>
  51. <picker bindchange='pickerRoleCtl' value='{{0}}' range='{{roleList}}' class='li-picker'>
  52. <image class='section-arrow' src='../../../assets/arrow_gray.png'></image>
  53. </picker>
  54. </view>
  55. </view>
  56. </view>
  57. <view class='modal-container' wx:if='{{isShowVipModal}}' catchtouchmove='true' bindtap='toggleSelectVipCtl'>
  58. <view class='modal-wrapper'>
  59. <view class='modal-list'>
  60. <view class='modal-li' wx:for='{{vipList}}' wx:key='index' data-index='{{index}}' catchtap='selectVipCtl'>
  61. <view class='modal-row'>
  62. <image class='modal-image' src='{{item.img_url ? baseImgUrl + item.img_url : "../../../assets/default_headicon.png"}}'></image>
  63. <view class='modal-text'>{{item.child_name}}</view>
  64. </view>
  65. <image class='modal-icon' wx:if='{{index == options.vipIndex}}' src='../../../assets/true_blue.png'></image>
  66. </view>
  67. <view class='modal-text-addchild' bindtap='addchildPage'> + 添加孩子</view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <template is='footer' data='{{...footerData}}'></template>
  73. </view>