index.wxml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <view>
  2. <!-- 录播图 -->
  3. <swiper class="lunbo" autoplay indicator-dots circular interval="3000" indicator-color="#fff" indicator-active-color="#2E8B57">
  4. <swiper-item wx:for="{{imgs}}" wx:key="*this">
  5. <image src="{{item}}" mode="aspectFill" />
  6. </swiper-item>
  7. </swiper>
  8. <view style="padding: 10px">
  9. <!-- 热播国剧 -->
  10. <view class="guoju">
  11. <template is="cate" data="{{title: '近期热播国剧'}}" />
  12. <scroll-view scroll-x="true" class="box">
  13. <view class="item" wx:for="{{guoju}}" wx:key="id">
  14. <image src="{{item.pic.normal}}" mode="" />
  15. <view class="item-name">
  16. {{item.title}}
  17. </view>
  18. <view class="item-rate">
  19. <rate val="{{item.rating}}"></rate>
  20. </view>
  21. </view>
  22. </scroll-view>
  23. </view>
  24. <!-- 热门综艺 -->
  25. <view>
  26. <template is="cate" data="{{title: '近期热门综艺'}}" />
  27. <scroll-view scroll-x="true" class="box">
  28. <view class="item" wx:for="{{zongyi}}" wx:key="id">
  29. <image src="{{item.pic.normal}}" mode="" />
  30. <view class="item-name">
  31. {{item.title}}
  32. </view>
  33. <view class="item-rate">
  34. <rate val="{{item.rating}}"></rate>
  35. </view>
  36. </view>
  37. </scroll-view>
  38. </view>
  39. <!-- 热播美剧 -->
  40. <view>
  41. <template is="cate" data="{{title: '近期热播美剧'}}" />
  42. <scroll-view scroll-x="true" class="box">
  43. <view class="item" wx:for="{{meiju}}" wx:key="id">
  44. <image src="{{item.pic.normal}}" mode="" />
  45. <view class="item-name">
  46. {{item.title}}
  47. </view>
  48. <view class="item-rate">
  49. <rate val="{{item.rating}}"></rate>
  50. </view>
  51. </view>
  52. </scroll-view>
  53. </view>
  54. </view>
  55. </view>
  56. <template name="cate">
  57. <view class="cate">
  58. <text class="cate-title">{{title}}</text>
  59. <view style="display: inline-flex; align-items: center;">
  60. <text class="cate-more">{{moreText || '更多'}}</text>
  61. <view class="more">
  62. </view>
  63. </view>
  64. </view>
  65. </template>