media.wxml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <view class="wrapper">
  2. <view class="app_page-header-search">
  3. <view class="app_page-header-search-warp app_width-690">
  4. <label for="header-search">
  5. <image src="../../image/common/search@2x.png"></image>
  6. </label>
  7. <input
  8. placeholder-class="app_header-search-placeholder"
  9. value="{{searchForm.key_words}}"
  10. placeholder="搜索信息"
  11. data-formkey="key_words"
  12. bind:input="handleKeyWords"></input>
  13. </view>
  14. </view>
  15. <view class="page-section">
  16. <swiper
  17. indicator-color="rgba(145, 179, 121, 0.6)"
  18. indicator-active-color="rgba(145, 179, 121, 1)"
  19. interval="{{2000}}"
  20. autoplay="{{false}}"
  21. bind:change="handleSwiperChange">
  22. <block
  23. wx:for="{{lunboList}}"
  24. wx:key="*this">
  25. <swiper-item
  26. class="swiper-item-wrap">
  27. <view class="swiper-item">
  28. <image class="photo" src="{{item.video_cover_url}}"></image>
  29. <view class="info">
  30. <view class="label-wrap">
  31. <image class="icon" src="../../image/common/video.png"></image>
  32. <text class="label">频道:</text>
  33. </view>
  34. <view class="value-wrap">
  35. <view class="name">村长说农货</view>
  36. <view class="address">{{item.video_name}}</view>
  37. </view>
  38. </view>
  39. </view>
  40. </swiper-item>
  41. </block>
  42. </swiper>
  43. <view class="swiper-dots">
  44. <view
  45. class="{{swiperActiveDot === index ? 'active' : ''}}"
  46. wx:for="{{lunboList}}"
  47. wx:key="index"></view>
  48. </view>
  49. </view>
  50. <customer-tab
  51. nav="{{nav}}"
  52. active="{{searchForm.type}}"
  53. bind:change="handleNav"/>
  54. <view class="main">
  55. <view
  56. class="list"
  57. wx:for="{{listData}}"
  58. wx:key="id"
  59. data-item="{{item}}"
  60. bind:tap="jumpMediaDetail">
  61. <video-item-normal item="{{item}}"/>
  62. </view>
  63. </view>
  64. </view>