index.wxml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <navigationBar bind:reload='setUserInfo'></navigationBar>
  3. <view class="container">
  4. <!-- 用户信息 -->
  5. <view class="userBox">
  6. <view class="above" bindtap="jump" data-url="/pages/editUser/index">
  7. <view class="identity">
  8. <image class='avatar' src='{{ userInfo.user.avatar}}'></image>
  9. <view class="identityText">{{ userInfo.user.profession}}</view>
  10. </view>
  11. <view class="userRight">
  12. <view class="uRtop">
  13. <view class="uRtopleft">
  14. <view class="nickName textOver">{{userInfo.user.nickName||'请输入昵称' }}</view>
  15. <view class="gradeText textOver" catchtap="clipboar">学号:{{userInfo.user.eid}}</view>
  16. <view class="validity" wx:if="{{isPreferential&&!isIos}}">
  17. {{vipTime=='1'?'会员使用至:终身使用':!vipTime?'会员已过期':'会员使用至:'+filters.formatDate(vipTime,5)}}
  18. </view>
  19. </view>
  20. <view class="uRtopRight">
  21. <image class="edit" src="/static/edit_new.png" mode="" />
  22. <text>编辑</text>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. <!-- 安卓 -->
  29. <view class="scrollViewBox" wx:if="{{vipTime!='1'&&!isIos}}">
  30. <scroll-view class="goodsList" scroll-x="true" enhanced show-scrollbar="{{false}}">
  31. <view wx:for="{{products}}" wx:key="id"
  32. class="payBox {{item.payType=='LIFELONG'?'pbbg2':item.payType=='YEAR'?'pbbg1':'pbbg3'}}"
  33. bindtap="openDonutBuy" data-product="{{item}}">
  34. <view class="pay">
  35. {{isPreferential?'立即续费':'立即开通'}}
  36. </view>
  37. </view>
  38. </scroll-view>
  39. <view class="goodsTips">虚拟产品不支持退货</view>
  40. </view>
  41. <!-- ios -->
  42. <!-- <view class="longpressBox" wx:if="{{isIos}}">
  43. <image src="https://reader-wx.ai160.com/images/reader/v3/pay1.png" class="iosVip" />
  44. <image src="{{qrCode}}" class="qrCode" show-menu-by-longpress="{{true}}" />
  45. </view> -->
  46. <view class="menu">
  47. <view class="activation" bindtap="activationCode" wx:if="{{vipTime!='1'}}">
  48. <view class="tips">
  49. <image src="/static/activation.png" class="tipsImg" />学习卡激活
  50. </view>
  51. <image class='black' src='/static/black.png'></image>
  52. </view>
  53. <!-- #if MP -->
  54. <view class="activation" bindtap="toGzh">
  55. <view class="tips">
  56. <image src="/static/care.png" class="tipsImg" />关注公众号不迷路,更多福利等您!
  57. </view>
  58. <image class='black' src='/static/black.png'></image>
  59. </view>
  60. <!-- #endif -->
  61. <view class="activation" bindtap="jump" data-url="/salesperson/pages/sale/index"
  62. wx:if="{{!userInfo.user.saleUserId}}">
  63. <view class="tips">
  64. <image src="/static/tjg.png" class="tipsImg" />成为推荐官
  65. </view>
  66. <image class='black' src='/static/black.png'></image>
  67. </view>
  68. <view class="activation" bindtap="jump" data-url="/salesperson/pages/saleOffice/index" wx:else>
  69. <view class="tips">
  70. <image src="/static/tjg.png" class="tipsImg" />推荐中心
  71. </view>
  72. <image class='black' src='/static/black.png'></image>
  73. </view>
  74. <view class="activation" bindtap="jump"
  75. data-url="/pages/rankIntro/index?img=https://reader-wx.ai160.com/images/reader/v3/jghz.jpg">
  76. <view class="tips">
  77. <image src="/static/fs.png" class="tipsImg" style="height: 34rpx;" />机构合作
  78. </view>
  79. <image class='black' src='/static/black.png'></image>
  80. </view>
  81. <!-- #if MP -->
  82. <button class="resetBtn activation" open-type="contact" plain="true">
  83. <view class="tips">
  84. <image src="/static/contact.png" class="tipsImg" />联系我们
  85. </view>
  86. <image class='black' src='/static/black.png'></image>
  87. </button>
  88. <!-- #endif -->
  89. <!-- <view class="activation" bindtap="jump" data-url="/pages/orderRecord/index">
  90. <view class="tips">
  91. <image src="/static/care.png" class="tipsImg" />购买记录
  92. </view>
  93. <image class='black' src='/static/black.png'></image>
  94. </view> -->
  95. </view>
  96. <!-- 弹窗 -->
  97. <view class="activationModal" wx:if="{{activationModal}}">
  98. <view class="box zoomIn">
  99. <image src="{{activationRes.code==200?'/static/lan.png':'/static/df.png'}}" class="sLcon" />
  100. <view class="tips1">{{activationRes.code==200?'恭喜您,激活成功':'很遗憾,激活失败'}}</view>
  101. <view class="tips2">{{activationRes.message}}</view>
  102. <image src="/static/lollipop.png" class="close" catchtap="closeModal" />
  103. </view>
  104. </view>
  105. <donutBuy id="donutBuy" bind:reload='paySuccess'></donutBuy>
  106. <vipModal id="vipModal"></vipModal>
  107. <gzhModal id="gzh"></gzhModal>
  108. <canvas id='vip' type="2d"> </canvas>
  109. </view>