product-table.phtml 2.64 KB
<ul>
    {{# goods}}
        <li class="fav-good fav-row" data-id="{{skn}}">
            <div class="checkbox">
                <input type="checkbox">
            </div>

            <a class="thumb" href="{{url}}"  target="_blank">
                <img src="{{img}}">
            </a>

            <div class="text-info">
                <a class="name" href="{{url}}"  target="_blank">
                    {{name}}
                </a>
                {{#if buyAgain}}
                    <span class="has-bought">已购</span>
                {{/if}}
                {{# activites}}
                    <span class="has-activity">商品可参加的活动({{count}})</span>

                    <div class="activites hide">
                        <ul>
                            {{# list}}
                                <li>
                                    <span class="type">{{type}}</span>
                                    <span class="activity-name">【{{name}}】</span>
                                    {{desc}}
                                </li>
                            {{/ list}}
                        </ul>
                        <div class="arrow"></div>
                    </div>

                {{/ activites}}
            </div>

            <div class="price">
                <em>{{price}}</em>
                {{#if priceDown}}
                    <span class="price-down">
                        比收藏时降了
                        <em>
                            {{priceDown}}
                            <i class="iconfont">&#xe62e;</i>
                        </em>
                    </span>
                {{/if}}
            </div>
            <div class="options">

                {{#if soldOut}}
                    <span class="sold-out">已售罄</span>
                {{^}}
                    {{#if buyNow}}
                        <a class="buy-now" href="{{buyNow}}" target="_blank">立即购买</a>
                    {{/if}}

                    {{#if buyAgain}}
                        <a class="buy-again" href="{{buyAgain}}" target="_blank">再次购买</a>
                    {{/if}}
                    <span class="price-down-clock{{#if hadNoticed}} noticed{{/if}}">
                        {{#if hadNoticed}}
                            [ 取消通知 ]
                        {{^}}
                            [ 降价通知 ]
                        {{/if}}
                    </span>
                {{/if}}
                
                <a class="del-favorite">[ 删除 ]</a>
            </div>
        </li>
    {{/ goods}}
</ul>