index.wxml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <wxs module="enumItem" src="../../../wxs/enumItem.wxs"></wxs>
  2. <view>
  3. <view>
  4. <swiper indicator-dots="false" autoplay="true" interval="5000" duration="1000">
  5. <swiper-item>
  6. <image src="/assets/carousel/1.png" class="slide-image" />
  7. </swiper-item>
  8. <swiper-item>
  9. <image src="/assets/carousel/2.png" class="slide-image" />
  10. </swiper-item>
  11. <swiper-item>
  12. <image src="/assets/carousel/3.png" class="slide-image" />
  13. </swiper-item>
  14. <swiper-item>
  15. <image src="/assets/carousel/4.png" class="slide-image" />
  16. </swiper-item>
  17. </swiper>
  18. </view>
  19. <view wx:if="{{!userInfo.identify}}">
  20. <view style="text-align:center;margin:50rpx">
  21. <text> 您未开通在线练习业务 </text>
  22. </view>
  23. <view style="text-align:center;margin:50rpx">
  24. <text> 实名认证后,可获得试卷 </text>
  25. </view>
  26. <navigator class="mt50" url="/pages/user/identify/index" hover-class="navigator-hover" open-type="navigate">
  27. <button class="i-btn i-btn-primary i-btn-square"> 实名认证 </button>
  28. </navigator>
  29. </view>
  30. <view wx:else>
  31. <!-- 导航 -->
  32. <view class="cate-section">
  33. <navigator class="cate-item" url="/pages/study/sign/index" >
  34. <i-icon type="flag" size="40" color="#e96900a0" />
  35. <text>学时证明</text>
  36. </navigator>
  37. <navigator class="cate-item" url="/pages/study/market/index?type=岗前培训" >
  38. <i-icon type="shop_fill" size="40" color="#e96900a0" />
  39. <text>所有课程</text>
  40. </navigator>
  41. </view>
  42. <!-- 视频列表 -->
  43. <view class="guess-section">
  44. <block wx:for="{{courseList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
  45. <view class="guess-item">
  46. <view class="image-wrapper item-img">
  47. <image src="{{item.tb}}" mode="aspectFill"> </image>
  48. <view class="circle" bindtap="gotoCourse" data-id="{{item.courseId}}">
  49. <view class="circle_inner_play"></view>
  50. </view>
  51. </view>
  52. <text class="title clamp">
  53. 【{{item.nd}}】 {{item.name}}
  54. </text>
  55. <view class="info">
  56. <text class="price" wx:if="{{item.canBuy}}">
  57. 价格:{{"¥"+item.fee/100}}
  58. </text>
  59. <text class="price" wx:else>
  60. 获得:{{item.getXs/10}} 时
  61. </text>
  62. <text class="xs">
  63. 学时:{{item.totalXs/10}} 时
  64. </text>
  65. </view>
  66. </view>
  67. </block>
  68. </view>
  69. </view>
  70. <modal title="iOS端暂不支持虚拟支付业务" confirm-text="保存图片" hidden="{{!buyModel}}" no-cancel="true" bindconfirm="modalConfirm">
  71. <image src="{{info.code_url}}" mode="widthFix" style="width:100%"></image>
  72. <view style="color:red;text-align:center;">
  73. <text> IOS端暂不支持虚拟支付业务</text>
  74. </view>
  75. </modal>
  76. </view>