me.wxml 4.4 KB

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