index.wxml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <wxs module="enumItem" src="../../../wxs/enumItem.wxs"></wxs>
  2. <view>
  3. <view wx:if="{{!userInfo.identify}}">
  4. <view style="text-align:center;margin:50rpx">
  5. <text> 您未开通在线练习业务 </text>
  6. </view>
  7. <view style="text-align:center;margin:50rpx">
  8. <text> 实名认证后,可获得试卷 </text>
  9. </view>
  10. <navigator class="mt50" url="/pages/user/identify/index" hover-class="navigator-hover" open-type="navigate">
  11. <button class="i-btn i-btn-primary i-btn-square"> 实名认证 </button>
  12. </navigator>
  13. </view>
  14. <view wx:else>
  15. <!-- 视频列表 -->
  16. <view class="guess-section">
  17. <block wx:for="{{courseList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
  18. <view class="guess-item">
  19. <view class="image-wrapper item-img">
  20. <image src="{{item.tb}}" mode="aspectFill"> </image>
  21. <view class="circle" bindtap="gotoCourse" data-id="{{item.courseId}}" wx:if="{{item.isPay}}">
  22. <view class="circle_inner_play"></view>
  23. </view>
  24. <view class="circle" bindtap="startWxpay" data-id="{{item.courseId}}" wx:else>
  25. <i-icon type="lock" size="50" color="red" />
  26. </view>
  27. </view>
  28. <text class="title clamp">
  29. 【{{item.nd}}】 {{item.name}}
  30. </text>
  31. <view class="info">
  32. <text class="price" wx:if="{{item.canBuy}}">
  33. 价格:{{"¥"+item.fee/100}}
  34. </text>
  35. <text class="xs">
  36. 学时:{{item.totalXs/10}}
  37. </text>
  38. <button class="contact" open-type="contact" session-from="weapp" wx:if="{{!item.canBuy}}">
  39. 联系我们
  40. </button>
  41. </view>
  42. </view>
  43. </block>
  44. </view>
  45. <view wx:if="{{from==-1}}" class="m20">
  46. <view class="padding tc">没有更多了</view>
  47. </view>
  48. </view>
  49. <modal title="iOS端暂不支持虚拟支付业务" confirm-text="保存图片" hidden="{{!buyModel}}" no-cancel="true" bindconfirm="downloadFile">
  50. <image src="{{info.code_url}}" mode="widthFix" style="width:100%"></image>
  51. <view style="color:red;text-align:center;">
  52. <text> IOS端暂不支持虚拟支付业务</text>
  53. </view>
  54. </modal>
  55. </view>