card.wxml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <custom style="height:{{CustomBar}}px;">
  2. <bar class="fixed gradual-pink" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}px;">
  3. <navigator class='action' open-type="navigateBack" delta="1" hover-class="none">
  4. <text class='icon-back'></text> 卡片
  5. </navigator>
  6. </bar>
  7. </custom>
  8. <bar class="solid-bottom">
  9. <view class='action'>
  10. <text class='icon-titles text-orange '></text> 案例类卡片
  11. </view>
  12. <view class='action'>
  13. <switch class='sm' checked='{{isCard}}' bindchange='isCard'></switch>
  14. </view>
  15. </bar>
  16. <card class="case {{isCard?'no-card':''}}">
  17. <item wx:for="{{1}}" wx:key class="shadow">
  18. <view class='image'>
  19. <image src="https://image.weilanwl.com/img/4x3-1.jpg" mode="widthFix"></image>
  20. <tag class="bg-blue">福利</tag>
  21. <bar class='bg-shadeBottom'>我和制服不得不说的那些事!</bar>
  22. </view>
  23. <list class="menu menu-avatar">
  24. <item>
  25. <avatar class="round lg" style="background-image:url(https://image.weilanwl.com/img/square-4.jpg);"></avatar>
  26. <view class='content flex-sub'>
  27. <view class='text-grey'>猪皮蛋</view>
  28. <view class='text-gray text-sm flex justify-between'>
  29. 十天前
  30. <view class="text-gray text-sm">
  31. <text class="icon-attentionfill"></text> 10
  32. <text class="icon-appreciatefill"></text> 20
  33. <text class="icon-messagefill"></text> 30
  34. </view>
  35. </view>
  36. </view>
  37. </item>
  38. </list>
  39. </item>
  40. </card>
  41. <bar class="solid-bottom {{isCard?'margin-top':''}}">
  42. <view class='action'>
  43. <text class='icon-titles text-orange '></text> 动态类卡片
  44. </view>
  45. <view class='action'>
  46. <switch class='sm' checked='{{isCard}}' bindchange='isCard'></switch>
  47. </view>
  48. </bar>
  49. <card class="dynamic {{isCard?'no-card':''}}">
  50. <item wx:for="1" wx:key class="shadow">
  51. <list class="menu menu-avatar">
  52. <item>
  53. <avatar class="round lg" style="background-image:url(https://image.weilanwl.com/img/square-1.jpg);"></avatar>
  54. <view class='content flex-sub'>
  55. <view>晓晓萌</view>
  56. <view class='text-gray text-sm flex justify-between'>
  57. 2018年12月3日
  58. </view>
  59. </view>
  60. </item>
  61. </list>
  62. <view class='text-content'>
  63. 你们的铲屎官是不是经常突然对手机傻笑?我家铲屎官常常坐沙发上笑的发抖!(暗中观察.jpg)
  64. </view>
  65. <view class="grid {{isCard?'col-3 grid-square':'col-1'}} flex-sub padding-lr">
  66. <view class="bg-img {{isCard?'':'only-img'}}" style="background-image:url(https://image.weilanwl.com/img/square-1.jpg);" wx:for="{{isCard?9:1}}" wx:key>
  67. </view>
  68. </view>
  69. <view class='text-gray text-sm text-right padding'>
  70. <text class="icon-attentionfill"></text> 10
  71. <text class="icon-appreciatefill"></text> 20
  72. <text class="icon-messagefill"></text> 30
  73. </view>
  74. <list class="menu menu-avatar comment solids-top">
  75. <item wx:for="{{2}}" wx:key>
  76. <avatar class="round" style="background-image:url(https://image.weilanwl.com/img/square-1.jpg);"></avatar>
  77. <view class='content'>
  78. <view class='text-grey'>猪皮蛋</view>
  79. <view class='text-gray text-content text-df'>
  80. 我家铲屎官不舔毛,还抠脚!
  81. </view>
  82. <view class='bg-grey padding-sm radius margin-top-sm text-sm' wx:if="{{index==1}}">
  83. <view class="flex {{index!=0?'margin-top-sm':'' }}" wx:for="{{2}}" wx:key>
  84. <view>我:</view>
  85. <view class='flex-sub'>我家的铲屎官也不舔毛!</view>
  86. </view>
  87. </view>
  88. <view class='margin-top-sm flex justify-between'>
  89. <view class='text-gray text-df'>2018年12月4日</view>
  90. <view>
  91. <text class="icon-appreciate{{!isZan?'fill':''}} text-{{!isZan?'red':'gray'}}"></text>
  92. <text class="icon-messagefill text-gray margin-left-sm"></text>
  93. </view>
  94. </view>
  95. </view>
  96. </item>
  97. </list>
  98. </item>
  99. </card>
  100. <bar class="solid-bottom margin-top">
  101. <view class='action'>
  102. <text class='icon-titles text-orange '></text> 文章类卡片
  103. </view>
  104. <view class='action'>
  105. <switch class='sm' checked='{{isCard}}' bindchange='isCard'></switch>
  106. </view>
  107. </bar>
  108. <card class="article {{isCard?'no-card':''}}">
  109. <item wx:for="1" wx:key class="shadow">
  110. <view class="title">这里有个戏精铲屎官,主子了解一下?</view>
  111. <view class="content">
  112. <image src="https://image.weilanwl.com/img/4x3-3.jpg" mode="aspectFill"></image>
  113. <view class="desc">
  114. <view class='text-content'> 这是一个伪铲屎官为了给自己的程序凑字数瞎几把乱写的一堆文字,了解一下就OK!ヾ(=・ω・=)o</view>
  115. <view>
  116. <tag class='bg-red light sm round'>假装有猫系列</tag>
  117. <tag class='bg-green light sm round'>戏精系列</tag>
  118. </view>
  119. </view>
  120. </view>
  121. </item>
  122. </card>