feedback-tab.phtml 2.25 KB
<ul id="nav-tab" class="nav-tab clearfix">
    <li class="comment-nav">商品评价(<span class="comments-num">{{commentsNum}}</span>)</li>
    <li class="consult-nav">购买咨询(<span class="consults-num">{{consultsNum}}</span>)</li>
</ul>
<div id="feedback-content" >
    <div class="comment-content content ">
        {{#if commentsNum}}
        <div class="comment-content-main content-main">
            {{# comments}}
            <span class="user-name">
                {{userName}}
            </span>
            <span class="goods-spec">
                购买了{{desc}}
            </span>
            <p class="detail-content">
                {{content}}
            </p>
            <span class="comment-time">
                {{time}}
            </span>
            {{/ comments}}
        </div>
        {{^}}
        <div class="comment-content-main content-main no-item">
            <span class="iconfont">&#xe63c;</span>暂无评论
        </div>
        {{/if}}
        <div class="comment-content-footer">
            <a href="{{link}}">查看更多 <span class="iconfont">&#xe604;</span></a> 
        </div>
    </div>

    <div class="consult-content content hide ">
        {{#if consultsNum}}
        <div class="consult-content-main content-main">
            {{# consults}}
            <div class="question">
                <span class="iconfont">&#xe639;</span>
                <p>
                    {{question}}<br>
                    <span class="time">{{time}}</span>
                </p>
            </div>

            <div class="answer">
                <span class="iconfont">&#xe63d;</span>
                <p>{{answer}}</p>
            </div>
            {{/ consults}}
        </div>
        <div class="consult-content-footer">
            <a href="{{link}}">
                查看更多 
                <span class="iconfont">&#xe604;</span></a> 
        </div>
        {{else}}
        <div class="consult-content-main content-main no-item">
            <span class="iconfont">&#xe63d;</span>暂无咨询
        </div>
        <div class="consult-content-footer">
            <a href="/product/detail/consultform">
                我要咨询 
                <span class="iconfont">&#xe604;</span></a> 
        </div>
        {{/if}}
    </div>
</div>