pocketlesson.wxml 3.7 KB
<view class="box">
  <!-- <view class="head"> -->

  <view class="search" bindtap="search">
    <view class="iconfont icon-sousuo"></view>
    <view class="enterword">
      <!-- <input placeholder='搜索' class="searchword"></input> -->

      <input bindinput="bindKeyInput" value="搜索" disabled='true' />
    </view>
  </view>

  <view class="swiper_image">
    <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" class="swiper_item_img" bindchange="swiperChange">
      <block wx:for="{{imgUrls}}" wx:key="doct">
        <swiper-item style="border-radius:10px;">
          <image src="{{item}}" data-index='{{index}}' class="slide-image" bindtap='viewImg' width="355" height="150" />
        </swiper-item>
      </block>
    </swiper>

    <view class="dots">
      <block wx:for="{{imgUrls}}" wx:key="">
        <view class="dot{{index == currentSwiper ? ' active' : ''}}"></view>
      </block>
    </view>

  </view>

  <!-- </view> -->

  <view class="title" style="margin-top:30rpx;">
    <view class="kindimg">
      <image src="http://bronet.wangshuwen.com/hgkjtyurur@2x.png"></image>
    </view>

    <view class="guesslike">猜你喜欢</view>

    <view class="kindimg">
      <image src="http://bronet.wangshuwen.com/hgkjtyurur@2x.png"></image>
    </view>

  </view>

  <view class="nodata" wx:if="{{homelist.guess_you_like.length==0}}">暂无数据</view>
  <view class="projectlist" wx:else>
    <view class="projectitem" bindtap="detail" data-id="{{item.id}}" wx:for="{{homelist.guess_you_like}}" wx:key="" data-free="{{item.goods_price}}">
      <view class="projectitemtitle">{{item.goods_name}}</view>
      <view class="projectitemimg">
        <image src="{{item.thumbnail}}" mode="widthFix"></image>
      </view>

      <view class="projectsee">
        <view class="projectnum">浏览{{item.hit_num}}</view>

        <view wx:if="{{state==1}}">

          <view class="projectmoney ccc" wx:if="{{item.goods_price==''}}">视频</view>
          <view class="projectmoney {{item.goods_price!='免费'?'moneynum':''}}" wx:else>{{item.goods_price}}</view>
        </view>



      </view>
    </view>


  </view>

  <!--热门推荐-->
  <view class="title" style="margin-top:53rpx;">
    <!-- <view class="across">
        <view class="acrossone hotacrossone"></view>
        <view class="acrosstwo hotacrosstwo"></view>
    </view> -->

    <view class="kindimg">
      <image src="http://bronet.wangshuwen.com/hgkjtyurur@2x.png"></image>
    </view>


    <view class="guesslike ">热门推荐</view>

    <!-- <view class="across hotrecommend">
        <view class="acrossone hotacrossone"></view>
        <view class="acrosstwo hotacrosstwo"></view>
    </view> -->

    <view class="kindimg">
      <image src="http://bronet.wangshuwen.com/hgkjtyurur@2x.png"></image>
    </view>


  </view>

  <view class="nodata" wx:if="{{homelist.hot_recommend.length==0}}">暂无数据</view>
  <view class="projectlist" wx:else>
    <view class="projectitem" bindtap="detail" wx:for="{{homelist.hot_recommend}}" wx:key="" data-id="{{item.id}}" data-free="{{item.goods_price}}">
      <view class="projectitemtitle">{{item.goods_name}}</view>
      <view class="projectitemimg">
        <image src="{{item.thumbnail}}"></image>
      </view>

      <view class="projectsee">
        <view class="projectnum">浏览{{item.hit_num}}</view>
        <view wx:if="{{state==1}}">
          <view class="projectmoney ccc" wx:if="{{item.goods_price==''}}">视频</view>
          <view class="projectmoney {{item.goods_price!='免费'?'moneynum':''}}" wx:else>{{item.goods_price}}</view>
        </view>

      </view>
    </view>


  </view>

  <view class="searchall" bindtap="seemore">查看全部教案</view>

</view>