comment.phtml 4.92 KB
{{> layout/header}}
<div class="comment-me-page me-page yoho-page clearfix">
    {{# comment}}
        {{> home/path}}

        {{> home/navigation}}

        <div class="me-main">
            <div class="comment block">
                <h2 class="title"></h2>

                {{# comment}}
                    <div class="me-comment">
                        <div class="main-tip">
                            {{#if isComment}}
                                您己对<span id="goodsNum">{{goodsNum}}</span>件商品发表评论,感谢您优质的评论和分享!
                                <select class="right" onchange="javascript:location.href='/home/comment?isComment='+this.value;">
                                    <option value="N">未发表评论的商品</option>
                                    <option value="Y" selected="">己发表评论的商品</option>
                                </select>
                            {{^}}
                                您还有<span id="goodsNum">{{goodsNum}}</span>件商品未发表评论,欢迎您发表原创、与商品质量相关、对其他用户有参考价值的商品评论。
                                <select class="right" onchange="javascript:location.href='/home/comment?isComment='+this.value;">
                                    <option value="N" selected="">未发表评论的商品</option>
                                    <option value="Y">己发表评论的商品</option>
                                </select>
                            {{/if}}
                        </div>
                        <p class="comment-table-header table-header clearfix">
                            <span class="info">商品信息</span>
                            <span class="time">评论</span>
                            <span class="type">状态/操作</span>
                        </p>

                        {{#if orders.empty}}
                            {{#with orders}}
                                {{> home/empty}}
                            {{/with}}
                        {{^}}
                            <table class="comment-table">
                                {{# orders}}
                                    <tr>
                                        <th colspan="4">
                                            订单编号:{{orderNum}}
                                            <span class="right">下单时间:{{orderTime}}</span>
                                        </th>
                                    </tr>
                                    {{# goods}}
                                        <tr>
                                            <td width="115">
                                                <a href="{{href}}"><img src="{{thumb}}"></a>
                                            </td>
                                            <td>
                                                <a href="{{href}}">{{name}}</a>
                                            </td>
                                            {{#if remark}}
                                                <td class="remark-content">{{remark}}</td>
                                                <td width="90"><span class="remarked">已评论!</span></td>
                                            {{^}}
                                                <td class="remark-content">您还没对这个商品进行评论!</td>
                                                <td width="90">
                                                    <button class="remark-btn">我要评论</button>
                                                    <div data-orderid="{{../orderId}}" data-productskn="{{productSkn}}" data-productid="{{productId}}" data-goodsid="{{goodsId}}" data-erpskuid="{{erpSkuId}}"></div>
                                                </td>
                                            {{/if}}
                                        </tr>
                                    {{/ goods}}
                                {{/ orders}}
                            </table>
                        {{/if}}
                    </div>
                {{/ comment}}
                {{> home/pager}}
            </div>

            {{> home/help-us}}
        </div>
    {{/ comment}}
    <div id="comment-dialog-widget" class="hide">
        <div class="dialog-titlebar">
            <span class="dialog-close-btn"></span>
        </div>
        <div class="dialog-content">
            <dl>
                <dd>商品评论:</dd>
                <dd>
                    <textarea id="comment-content"></textarea>
                </dd>
            </dl>
        </div>
        <div class="dialog-buttons">
            <button class="dialog-close-btn">取消</button>
            <button class="dialog-save-btn">提交评论</button>
        </div>
    </div>
</div>
{{> layout/footer}}