index.wxml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <view class="classBox">
  2. <scroll-view class="classify" scroll-x="true" enhanced show-scrollbar="{{false}}" wx:if="{{type=='class'}}">
  3. <view class="name {{currentClass==index?'currentClass':''}}" wx:for="{{6}}" wx:key="index" data-id="{{index}}"
  4. bindtap="setClass">
  5. 书香美文
  6. </view>
  7. </scroll-view>
  8. <view class="searchBox" wx:else>
  9. <input class="input" placeholder="请输入搜索内容" bindblur="setSearch" />
  10. <view class="searchBtn" catchtap="search">
  11. <image src="/static/search.png" class="img" />
  12. </view>
  13. </view>
  14. <!-- 内容区域 -->
  15. <scroll-view class="worksList" scroll-y="true" enhanced show-scrollbar="{{false}}" scroll-top="{{scrollTop}}"
  16. bindscrolltolower='bindscrolltolower'>
  17. <view class="worksBox" wx:for="{{16}}" wx:key="index">
  18. <view class="left">
  19. <image src="https://yfklxt-image.ai160.com/reader/20211012/1634004843742426.jpg" class="cover" />
  20. <view class="work">
  21. <view class="title">狼来了</view>
  22. <view class="statistics">
  23. <view class="statistic">
  24. <image src="/static/play.png" class="playImg" mode="" />
  25. <view class="num">1234</view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="goRead" data-id="{{index}}" bindtap="goRead">去朗读</view>
  31. </view>
  32. </scroll-view>
  33. </view>