article.wxml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <view class='swiper-top-container'>
  2. <view class="swiper-tab">
  3. <view class="swiper-tab-item {{ item.tab == selectedTab ? 'active' : '' }}" data-current="{{ item.tab }}" bindtap="clickTab" wx:for="{{ tabList }}">{{ item.title }}</view>
  4. </view>
  5. </view>
  6. <swiper current-item-id="{{ selectedTab }}" duration="300" bindchange="swiperTab" class='sg-swiper'>
  7. <swiper-item item-id="video" classs="swiper-item">
  8. <view class="after-navber">
  9. <view class="info">
  10. <view class="info-list">
  11. <view class="info-content" wx:for="{{ video_list }}">
  12. <view class="info-bg" wx:if="{{ item.type == 3 }}">
  13. <view class="info-video">
  14. <image bindtap="play" class="bg" src="{{item.pic_url}}" data-url="{{ item.url }}" data-title="{{ item.title }}"></image>
  15. <image bindtap="play" class="play" src="/images/video-play.png" data-url="{{ item.url }}" data-title="{{ item.title }}"></image>
  16. </view>
  17. <view class="info-label">{{item.title||'未命名'}}</view>
  18. <!-- <view class="content {{item.show!=-1?'':'more'}}">{{item.content||'暂无信息'}}</view> -->
  19. <!-- <view class="flex-y-center flex-x-center" style="position:relative;height:80rpx;font-size:9pt;color:#afafaf">
  20. <text class="flex-y-center left">{{item.time}}</text>
  21. <view capture-bind:tap="more" class="right flex-y-center" data-index="{{index}}">
  22. <image animation="{{animationData}}" src="{{item.show!=-1?'/images/icon-up.png':'/images/icon-down.png'}}"></image>
  23. <text data-index="{{index}}">展开</text>
  24. </view>
  25. </view> -->
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </swiper-item>
  32. <swiper-item item-id="article">
  33. <view class="after-navber">
  34. <view class="info">
  35. <view class="info-list">
  36. <view class="info-content" wx:for="{{ article_list }}">
  37. <view class='info-bg' catchtap='redirectToArticle' data-id='{{ item.id }}'>
  38. <view class="info-label">{{ item.title||'未命名' }}</view>
  39. <view class="info-date">{{ item.publish_date }}</view>
  40. <view class="info-image" wx:if="{{ item.pic_url }}">
  41. <image src='{{ item.pic_url }}'></image>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </swiper-item>
  49. </swiper>