index.wxml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <custom style="height:{{config.bar.custom}}px;">
  2. <bar class="fixed gradual-pink" style="height:{{config.bar.custom}}px;padding-top:{{config.bar.status}}px;">
  3. <navigator class='action' open-type="navigateBack" delta="1" hover-class="none">
  4. <icon class='icon-back' /> 卡片
  5. </navigator>
  6. <view class='action'>
  7. <load class="load-icon {{loading ? 'loading':'over'}}"></load>
  8. </view>
  9. </bar>
  10. </custom>
  11. <swiper class="card-swiper round-dot" indicator-dots="true" circular="true" autoplay="true" interval="5000" duration="500" indicator-color="#8799a3" indicator-active-color="#0081ff">
  12. <swiper-item wx:for="{{focus}}" wx:for-item="v" wx:for-index="k" wx:key class="{{cardCur==k?'cur':''}}">
  13. <view class='bg-img shadow-blur' style="background-image:url({{v.pic}})"></view>
  14. </swiper-item>
  15. </swiper>
  16. <bar class="solid-bottom">
  17. <view class='action'>
  18. <icon class='icon-titles text-orange ' /> 最新
  19. </view>
  20. <view class='action'>
  21. <switch class='sm' checked='{{isCard}}' bindchange='isCard'></switch>
  22. </view>
  23. </bar>
  24. <card class="case">
  25. <item wx:for="{{news}}" wx:for-item="v" wx:for-index="k" wx:key class="shadow">
  26. <view class='image'>
  27. <image src="{{v.pic_cover}}" mode="widthFix"></image>
  28. <tag class="bg-blue">{{v.cate_name}}</tag>
  29. <bar class='bg-shadeBottom'>{{v.name}}</bar>
  30. </view>
  31. <list class="menu menu-avatar">
  32. <item>
  33. <avatar class="round lg" style="background-image:url(https://image.weilanwl.com/img/square-4.jpg);"></avatar>
  34. <view class='content flex-sub'>
  35. <view class='text-grey'>猪皮蛋</view>
  36. <view class='text-gray text-sm flex justify-between'>
  37. {{v.pdate}}
  38. <view class="text-gray text-sm">
  39. <icon class="icon-attentionfill" /> {{v.num_view}}
  40. <icon class="icon-appreciatefill" /> {{v.num_up}}
  41. <icon class="icon-messagefill" /> {{v.num_comment}}
  42. </view>
  43. </view>
  44. </view>
  45. </item>
  46. </list>
  47. </item>
  48. </card>