<scroll-view class="container">
  <scroll-view class="content">
    <import src="../../lib/wxParse/wxParse.wxml"/> 
    <template is="wxParse" data="{{wxParseData:topicDetail.nodes}}"/>
  </scroll-view>
  <view class="topic-goods">
  </view>
  <scroll-view class="comments">
    <view class="h">
      <text class="t">精选留言</text>
      <image bindtap="postComment" class="i" src="http://image.meiping123.com/upload/20180104/11281577b1393.png"></image>
    </view>
     <view class="has-comments" wx:if="{{commentList.length > 0 }}">
      <view class="b">
        <view class="item" wx:for="{{commentList}}" wx:key="{{item.id}}">
          <view class="info">
            <view class="user">
              <image class="avatar" src="{{item.user_info.avatar}}"></image>
              <text class="nickname">{{item.user_info.nickname}}</text>
            </view>
            <view class="time">{{item.add_time}}</view>
          </view>
          <view class="comment">
            {{item.content}}
          </view>
        </view>
      </view>
      <view class="load" wx:if="{{commentCount > 5}}">
        <navigator url="/pages/topicComment/topicComment?valueId={{topic.id}}&typeId=1">查看更多</navigator>
      </view>
    </view> 
    <view class="no-comments" wx:if="{{commentList.length <= 0}}">
        <view class="b">    
            <image class="icon" src="http://image.meiping123.com/upload/20180104/112851677b0117.png"></image>
            <text class="txt">等你来留言</text>
        </view>
    </view>
  </scroll-view>
  <scroll-view class="rec-box">
    <view class="h">
      <text class="txt">专题推荐</text>
    </view>
    <view class="b">
      <navigator class="item" wx:for="{{topicList}}" url="../topicDetail/topicDetail?id={{item.id}}">
        <image class="img" src="{{item.scene_pic_url}}"></image>
        <text class="title">{{item.title}}</text>
      </navigator>
    </view>
  </scroll-view>
</scroll-view>