feedback-tab.phtml 2.3 KB
<ul id="nav-tab" class="nav-tab clearfix">
    <li class="comment-nav tap-hightlight">商品评价(<span class="comments-num">{{commentsNum}}</span>)</li>
    <li class="consult-nav tap-hightlight">购买咨询(<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>
        <a class="comment-content-footer tap-hightlight" href="{{commentsUrl}}">
                查看更多
                <span class="iconfont">&#xe604;</span>
        </a>
        {{^}}
        <div class="comment-content-main content-main no-item">
            <span class="iconfont">&#xe63d;</span>暂无评论
        </div>
        {{/if}}
    </div>

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

            <div class="answer">
                <span class="iconfont">&#xe642;</span>
                <p>{{answer}}</p>
            </div>
            {{/ consults}}
        </div>
        <a class="consult-content-footer tap-hightlight" href="{{consultsUrl}}">
            查看更多
            <span class="iconfont">&#xe604;</span>
        </a>
        {{else}}
        <div class="consult-content-main content-main no-item">
            <span class="iconfont">&#xe63f;</span>暂无咨询
        </div>

        <div class="consult-content-footer tap-hightlight">
            <a href="{{consultsUrl}}">
                我要咨询
                <span class="iconfont">&#xe604;</span></a>
        </div>
        {{/if}}
    </div>
</div>