feedback-tab.hbs 2.7 KB
<ul id="nav-tab" class="nav-tab clearfix">
    <li class="comment-nav tap-hightlight">商品评价(<span class="comments-num">{{commentsNum}}</span>)</li>
    {{#if commonConsults}}
        <li class="consult-nav tap-hightlight">常见问题</li>
    {{^}}
        <li class="consult-nav tap-hightlight">购买咨询(<span class="consults-num">{{consultsNum}}</span>)</li>
    {{/if}}
</ul>
<div id="feedback-content" >
    <div class="comment-content content ">
        {{#if commentsNum}}
            <div class="comment-content-main content-main clearfix">
                {{# comments}}
                    <span class="user-name">
                        {{userName}}
                    </span>
                    <p class="goods-spec">
                        购买了{{desc}}
                    </>
                    <p class="detail-content">
                        {{content}}
                    </p>
            <span class="comment-time">
                {{time}}
            </span>
                {{/ comments}}
            </div>
            <a class="comment-content-footer tap-hightlight" href="{{commentsUrl}}" rel="nofollow">
                查看更多
                <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}}" rel="nofollow">
                查看更多
                <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>