topicDetail.wxml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <scroll-view class="container">
  2. <scroll-view class="content">
  3. <import src="../../lib/wxParse/wxParse.wxml"/>
  4. <template is="wxParse" data="{{wxParseData:topicDetail.nodes}}"/>
  5. </scroll-view>
  6. <view class="topic-goods">
  7. </view>
  8. <scroll-view class="comments">
  9. <view class="h">
  10. <text class="t">精选留言</text>
  11. <image bindtap="postComment" class="i" src="http://nos.netease.com/mailpub/hxm/yanxuan-wap/p/20150730/style/img/icon-normal/comment-add-2aca147c3f.png"></image>
  12. </view>
  13. <view class="has-comments" wx:if="{{commentList.length > 0 }}">
  14. <view class="b">
  15. <view class="item" wx:for="{{commentList}}" wx:key="{{item.id}}">
  16. <view class="info">
  17. <view class="user">
  18. <image class="avatar" src="{{item.user_info.avatar}}"></image>
  19. <text class="nickname">{{item.user_info.nickname}}</text>
  20. </view>
  21. <view class="time">{{item.add_time}}</view>
  22. </view>
  23. <view class="comment">
  24. {{item.content}}
  25. </view>
  26. </view>
  27. </view>
  28. <view class="load" wx:if="{{commentCount > 5}}">
  29. <navigator url="/pages/topicComment/topicComment?valueId={{topic.id}}&typeId=1">查看更多</navigator>
  30. </view>
  31. </view>
  32. <view class="no-comments" wx:if="{{commentList.length <= 0}}">
  33. <view class="b">
  34. <image class="icon" src="http://yanxuan.nosdn.127.net/hxm/yanxuan-wap/p/20161201/style/img/icon-normal/no-comment-560f87660a.png"></image>
  35. <text class="txt">等你来留言</text>
  36. </view>
  37. </view>
  38. </scroll-view>
  39. <scroll-view class="rec-box">
  40. <view class="h">
  41. <text class="txt">专题推荐</text>
  42. </view>
  43. <view class="b">
  44. <navigator class="item" wx:for="{{topicList}}" url="../topicDetail/topicDetail?id={{item.id}}">
  45. <image class="img" src="{{item.scene_pic_url}}"></image>
  46. <text class="title">{{item.title}}</text>
  47. </navigator>
  48. </view>
  49. </scroll-view>
  50. </scroll-view>