index.wxml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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>
  15. </view>
  16. <!-- <ad unit-id="adunit-21433e65243fe5ff"></ad> -->
  17. <view wx:if="{{!userInfo.identify}}" >
  18. <view style="text-align:center;margin:50rpx">
  19. <text> 您未开通在线练习业务 </text>
  20. </view>
  21. <view style="text-align:center;margin:50rpx">
  22. <text> 实名认证后,可获得试卷 </text>
  23. </view>
  24. <navigator class="mt50" url="/pages/user/identify/index" hover-class="navigator-hover" open-type="navigate" >
  25. <button class="i-btn i-btn-primary i-btn-square" > 实名认证 </button>
  26. </navigator>
  27. </view>
  28. <view wx:else>
  29. <i-panel>
  30. <view class="cate-section">
  31. <view wx:for="{{groups}}" wx:key="groupId" class="cate-item cate-item-3">
  32. <button class="cate-item" wx:if="{{item.isBuy}}" bindtap="gotoExam" data-item="{{item}}">
  33. <i-icon type="browse" size="40" color="#7595f1a0" />
  34. <text>{{item.title}}</text>
  35. </button>
  36. <!-- <button class="cate-item" wx:else bindtap="startWxpay" data-id="{{item.groupId}}">
  37. <i-icon type="lock" size="40" color="#e96900a0" />
  38. <text>{{item.title}}</text>
  39. </button> -->
  40. <button class="cate-item" wx:else open-type="contact" session-from="weapp">
  41. <i-icon type="lock" size="40" color="#e96900a0" />
  42. <text>{{item.title}}</text>
  43. </button>
  44. </view>
  45. </view>
  46. </i-panel>
  47. </view>
  48. <modal title="iOS端暂不支持虚拟支付业务" confirm-text="保存图片" hidden="{{!buyModel}}" no-cancel="true" bindconfirm="downloadFile">
  49. <image src="{{info.code_url}}" mode="widthFix" style="width:100%"></image>
  50. <view style="color:red;text-align:center;">
  51. <text> IOS端暂不支持虚拟支付业务</text>
  52. </view>
  53. </modal>
  54. </view>