Blame view

apps/product/views/partial/detail/feedback-tab.hbs 2.67 KB
1 2
<ul id="nav-tab" class="nav-tab clearfix">
    <li class="comment-nav tap-hightlight">商品评价(<span class="comments-num">{{commentsNum}}</span>)</li>
3 4 5 6 7
    {{#if commonConsults}}
        <li class="consult-nav tap-hightlight">常见问题</li>
    {{^}}
        <li class="consult-nav tap-hightlight">购买咨询(<span class="consults-num">{{consultsNum}}</span>)</li>
    {{/if}}
8 9 10 11
</ul>
<div id="feedback-content" >
    <div class="comment-content content ">
        {{#if commentsNum}}
zhangxiaoru authored
12
            <div class="comment-content-main content-main clearfix">
13 14 15 16
                {{# comments}}
                    <span class="user-name">
                        {{userName}}
                    </span>
zhangxiaoru authored
17 18 19
                    <p class="goods-spec">
                        购买了{{desc}}
                    </>
20 21 22
                    <p class="detail-content">
                        {{content}}
                    </p>
23 24 25
            <span class="comment-time">
                {{time}}
            </span>
26 27 28
                {{/ comments}}
            </div>
            <a class="comment-content-footer tap-hightlight" href="{{commentsUrl}}">
29 30
                查看更多
                <span class="iconfont">&#xe604;</span>
31
            </a>
32
        {{^}}
33 34 35
            <div class="comment-content-main content-main no-item">
                <span class="iconfont">&#xe63d;</span>暂无评论
            </div>
36 37 38 39 40
        {{/if}}
    </div>

    <div class="consult-content content hide ">
        {{#if consultsNum}}
41 42 43 44 45 46 47 48 49
            <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>
50
51 52 53 54 55
                    <div class="answer">
                        <span class="iconfont">&#xe642;</span>
                        <p>{{answer}}</p>
                    </div>
                {{/ consults}}
56
            </div>
57 58 59 60
            <a class="consult-content-footer tap-hightlight" href="{{consultsUrl}}">
                查看更多
                <span class="iconfont">&#xe604;</span>
            </a>
61
        {{else}}
62 63 64
            <div class="consult-content-main content-main no-item">
                <span class="iconfont">&#xe63f;</span>暂无咨询
            </div>
65
66 67 68 69 70
            <div class="consult-content-footer tap-hightlight">
                <a href="{{consultsUrl}}">
                    我要咨询
                    <span class="iconfont">&#xe604;</span></a>
            </div>
71 72 73
        {{/if}}
    </div>
</div>