consults.phtml 2.64 KB
{{> layout/header}}
<div class="goods-consults-page yoho-page">
            <div class="goto-consult tap-hightlight" id="goto-consult" data-href="{{link}}">
                    <i class="iconfont consult-logo">&#xe643;</i>
                    <span>我要咨询</span>
                    <a href="{{link}}" class="iconfont enter-consult-page">&#xe604;</a>
            </div>
         {{# consults}}
        <div class="goods-consults customer-consults" id="goods-consults">
            {{#list}}
            <div class="consult-item" data-id="{{id}}">
               <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>

               <ul class="operation">
                   <li class="fav {{#if isLike}}highlight{{/if}}">
                       <i class="iconfont ">&#xe601;</i>
                       
                       <i class="count">{{#if like}}{{like}}{{/if}}</i>
                       <span class="animate-count">+1</span>
                   </li>

                   <li class="useful {{#if isUseful}}highlight{{/if}}">
                       <i class="iconfont ">&#xe605;</i>
                       有用
                       <i class="count">{{#if useful}}{{useful}}{{/if}}</i>
                       <span class="animate-count">+1</span>
                   </li>
               </ul>

            </div>
            {{/list}}
        </div>
        {{/ consults}}

        {{#showReadMore}}
        <a href="javascript:;" id="readmore" class="readmore tap-hightlight" >查看更多 <i class="iconfont">&#xe604;</i></a>
        {{/showReadMore}}

        {{#faq}}
        <h1 class="faq-title">
          常见问题
        </h1>
        {{/faq}}

         {{#faq}}
         <div class="goods-consults" style="margin-top:0">
          {{#commonConsults}}
          <div class="faq-item">
              <div class="question">
                            <span class="iconfont">&#xe644;</span>
                            <p>
                                {{question}}
                            </p>
                    </div>

                    <div class="answer">
                            <span class="iconfont">&#xe642;</span>
                            <p>{{answer}}</p>
                    </div>
          </div>
          {{/commonConsults}}
        </div>
        {{/faq}}

</div>
{{> layout/footer}}