index.wxml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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.jpg" class="slide-image" />
  7. </swiper-item>
  8. <swiper-item>
  9. <image src="/assets/carousel/2.jpg" class="slide-image" />
  10. </swiper-item>
  11. <swiper-item>
  12. <image src="/assets/carousel/3.jpg" class="slide-image" />
  13. </swiper-item>
  14. <swiper-item>
  15. <image src="/assets/carousel/4.jpg" 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="xs">
  60. 学时:{{item.totalXs/10}}
  61. </text>
  62. </view>
  63. </view>
  64. </block>
  65. </view>
  66. </view>
  67. <modal title="iOS端暂不支持虚拟支付业务" confirm-text="保存图片" hidden="{{!buyModel}}" no-cancel="true" bindconfirm="modalConfirm">
  68. <image src="{{info.code_url}}" mode="widthFix" style="width:100%"></image>
  69. <view style="color:red;text-align:center;">
  70. <text> IOS端暂不支持虚拟支付业务</text>
  71. </view>
  72. </modal>
  73. </view>