index.wxml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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' /> {{info.name}}
  5. </navigator>
  6. <view class='action'>
  7. <load class="load-icon {{loading ? 'loading':'over'}}"></load>
  8. </view>
  9. </bar>
  10. </custom>
  11. <card class="dynamic">
  12. <item wx:for="1" wx:key class="shadow">
  13. <list class="menu menu-avatar">
  14. <item>
  15. <avatar class="round lg" style="background-image:url({{info.author.avatar}});"></avatar>
  16. <view class='content flex-sub'>
  17. <view>{{info.author.name}}</view>
  18. <view class='text-gray text-sm flex justify-between'>
  19. {{info.pdate_str}}
  20. </view>
  21. </view>
  22. </item>
  23. </list>
  24. <view class='text-content' style="max-height:100%;">
  25. <import src="/dever/package/wxParse/wxParse.wxml"/>
  26. <template is="wxParse" data="{{wxParseData:html.nodes}}"/>
  27. </view>
  28. <view class='text-gray text-sm text-right padding'>
  29. <icon class="icon-attentionfill" /> {{info.num_view}}
  30. <icon class="icon-appreciatefill" bindtap="up" data-type="{{type}}" data-id="{{info.id}}"/> {{info.num_up}}
  31. <icon class="icon-messagefill" /> {{info.num_comment}}
  32. </view>
  33. <list class="menu menu-avatar comment solids-top">
  34. <item wx:for="{{2}}" wx:key>
  35. <avatar class="round" style="background-image:url(https://image.weilanwl.com/img/square-1.jpg);"></avatar>
  36. <view class='content'>
  37. <view class='text-grey'>猪皮蛋</view>
  38. <view class='text-gray text-content text-df'>
  39. 我家铲屎官不舔毛,还抠脚!
  40. </view>
  41. <view class='bg-grey padding-sm radius margin-top-sm text-sm' wx:if="{{index==1}}">
  42. <view class="flex {{index!=0?'margin-top-sm':'' }}" wx:for="{{2}}" wx:key>
  43. <view>我:</view>
  44. <view class='flex-sub'>我家的铲屎官也不舔毛!</view>
  45. </view>
  46. </view>
  47. <view class='margin-top-sm flex justify-between'>
  48. <view class='text-gray text-df'>2018年12月4日</view>
  49. <view>
  50. <icon class="icon-appreciate{{!isZan?'fill':''}} text-{{!isZan?'red':'gray'}}" />
  51. <icon class="icon-messagefill text-gray margin-left-sm" />
  52. </view>
  53. </view>
  54. </view>
  55. </item>
  56. </list>
  57. </item>
  58. </card>