index.wxml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <navigationBar></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}}">
  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="medalBox">
  30. <view class="header">
  31. <view class="title">我的勋章</view>
  32. <view class="jump" bindtap='jump' data-url="/pages/medalStore/index">查看全部
  33. <image src="/static/black.png" class='jumpIcon' />
  34. </view>
  35. </view>
  36. <view class="body">
  37. <image src="/static/concern.webp" class="medal" wx:for="{{5}}" wx:key="index" />
  38. </view>
  39. </view> -->
  40. <!-- 安卓 -->
  41. <view class="scrollViewBox" wx:if="{{vipTime!='1'&&!isIos}}">
  42. <scroll-view class="goodsList" scroll-x="true" enhanced show-scrollbar="{{false}}">
  43. <view wx:for="{{products}}" wx:key="id" class="payBox {{item.payType=='LIFELONG'?'pbbg2':item.payType=='YEAR'?'pbbg1':'pbbg3'}}" bindtap="toBuy" data-id="{{item.id}}">
  44. <view class="pay">
  45. {{isPreferential?'立即续费':'立即开通'}}
  46. </view>
  47. </view>
  48. </scroll-view>
  49. <view class="goodsTips">虚拟产品不支持退货</view>
  50. </view>
  51. <!-- ios -->
  52. <view class="longpressBox" wx:if="{{isIos}}">
  53. <image src="https://reader-wx.ai160.com/images/reader/v3/pay1.png" class="iosVip" />
  54. <image src="{{qrCode}}" class="qrCode" show-menu-by-longpress="{{true}}" />
  55. </view>
  56. <view class="menu">
  57. <view class="activation" bindtap="activationCode" wx:if="{{vipTime!='1'}}">
  58. <view class="tips">
  59. <image src="/static/activation.png" class="tipsImg" />学习卡激活
  60. </view>
  61. <image class='black' src='/static/black.png'></image>
  62. </view>
  63. <view class="activation" bindtap="toGzh">
  64. <view class="tips">
  65. <image src="/static/care.png" class="tipsImg" />关注公众号不迷路,更多福利等您!
  66. </view>
  67. <image class='black' src='/static/black.png'></image>
  68. </view>
  69. <view class="activation" bindtap="jump" data-url="/salesperson/pages/sale/index"
  70. wx:if="{{!userInfo.user.saleUserId}}">
  71. <view class="tips">
  72. <image src="/static/tjg.png" class="tipsImg" />成为推荐官
  73. </view>
  74. <image class='black' src='/static/black.png'></image>
  75. </view>
  76. <view class="activation" bindtap="jump" data-url="/salesperson/pages/saleOffice/index" wx:else>
  77. <view class="tips">
  78. <image src="/static/tjg.png" class="tipsImg" />推荐中心
  79. </view>
  80. <image class='black' src='/static/black.png'></image>
  81. </view>
  82. <view class="activation" bindtap="jump" data-url="/pages/rankIntro/index?img=https://reader-wx.ai160.com/images/reader/v3/jghz.jpg">
  83. <view class="tips">
  84. <image src="/static/fs.png" class="tipsImg" style="height: 34rpx;"/>机构合作
  85. </view>
  86. <image class='black' src='/static/black.png'></image>
  87. </view>
  88. <button class="resetBtn activation" open-type="contact" plain="true">
  89. <view class="tips">
  90. <image src="/static/contact.png" class="tipsImg" />联系我们
  91. </view>
  92. <image class='black' src='/static/black.png'></image>
  93. </button>
  94. <!-- <view class="activation" bindtap="jump" data-url="/pages/orderRecord/index">
  95. <view class="tips">
  96. <image src="/static/care.png" class="tipsImg" />购买记录
  97. </view>
  98. <image class='black' src='/static/black.png'></image>
  99. </view> -->
  100. </view>
  101. <!-- 弹窗 -->
  102. <view class="activationModal" wx:if="{{activationModal}}">
  103. <view class="box zoomIn">
  104. <image src="{{activationRes.code==200?'/static/lan.png':'/static/df.png'}}" class="sLcon" />
  105. <view class="tips1">{{activationRes.code==200?'恭喜您,激活成功':'很遗憾,激活失败'}}</view>
  106. <view class="tips2">{{activationRes.message}}</view>
  107. <image src="/static/lollipop.png" class="close" catchtap="closeModal" />
  108. </view>
  109. </view>
  110. <vipModal id="vipModal"></vipModal>
  111. <gzhModal id="gzh"></gzhModal>
  112. <canvas id='vip' type="2d"> </canvas>
  113. </view>