<wxs module="enumItem" src="../../../wxs/enumItem.wxs"></wxs>
<view>
  <view>
    <swiper indicator-dots="false" autoplay="true" interval="5000" duration="1000">
      <swiper-item>
        <image src="/assets/carousel/1.png" class="slide-image" />
      </swiper-item>
      <swiper-item>
        <image src="/assets/carousel/2.png" class="slide-image" />
      </swiper-item>
      <swiper-item>
        <image src="/assets/carousel/3.png" class="slide-image" />
      </swiper-item>
      <swiper-item>
        <image src="/assets/carousel/4.png" class="slide-image" />
      </swiper-item>
    </swiper>
  </view>

  <view wx:if="{{!userInfo.identify}}">
    <view style="text-align:center;margin:50rpx">
      <text> 您未开通在线练习业务 </text>
    </view>
    <view style="text-align:center;margin:50rpx">
      <text> 实名认证后，可获得试卷 </text>
    </view>

    <navigator class="mt50" url="/pages/user/identify/index" hover-class="navigator-hover" open-type="navigate">
      <button class="i-btn  i-btn-primary i-btn-square"> 实名认证 </button>
    </navigator>
  </view>

  <view  wx:else>
    <!-- 导航 -->
    <view class="cate-section">

      <navigator class="cate-item"  url="/pages/study/sign/index" >
        <i-icon type="flag" size="40" color="#e96900a0" />
        <text>学时证明</text>
      </navigator>

      <navigator class="cate-item"  url="/pages/study/market/index?type=岗前培训" >
        <i-icon type="shop_fill" size="40" color="#e96900a0" />
        <text>所有课程</text>
      </navigator>

    </view>

    <!-- 视频列表 -->
    <view class="guess-section">
      <block wx:for="{{courseList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
        <view class="guess-item">
          <view class="image-wrapper item-img">
            <image src="{{item.tb}}" mode="aspectFill"> </image>
            <view class="circle" bindtap="gotoCourse" data-id="{{item.courseId}}">
              <view class="circle_inner_play"></view>
            </view>
          </view>
          <text class="title clamp">
            【{{item.nd}}】 {{item.name}}
          </text>
          <view class="info">
            <text class="price">
              价格：{{"￥"+item.fee/100}}
            </text>
            <text class="xs">
              学时：{{item.totalXs/10}}
            </text>
          </view>
        </view>
      </block>
    </view>
  </view>

  <modal title="iOS端暂不支持虚拟支付业务" confirm-text="保存图片" hidden="{{!buyModel}}" no-cancel="true" bindconfirm="modalConfirm">
    <image src="{{info.code_url}}" mode="widthFix" style="width:100%"></image>
    <view style="color:red;text-align:center;">
      <text> IOS端暂不支持虚拟支付业务</text>
    </view>
  </modal>
</view>