{{if !empty($data)}}
    {{foreach $data as $v}}
        <li data-gid="{{$v.id}}" data-url="{{$v.goods_url}}" data-title="{{$v.title}}" data-img="{{$v.images}}" data-add-html='<a href="javascript:;" class="am-icon-btn am-icon-plus am-success goods-add-submit" data-type="add"></a>' data-del-html='<a href="javascript:;" class="am-icon-btn am-icon-remove am-danger goods-del-submit" data-type="del"></a>'>
            <div class="am-gallery-item am-radius">
                <a href="{{$v.goods_url}}" target="_blank" title="{{$v.title}}">
                    <img src="{{$v.images}}" alt="{{$v.title}}" />
                </a>
                <h3 class="am-gallery-title">{{$v.title}}</h3>
                <div class="icon-submit-container">
                    {{if isset($v['is_exist']) and $v['is_exist'] eq 1}}
                        <a href="javascript:;" class="am-icon-btn am-icon-remove am-danger goods-del-submit" data-type="del"></a>
                    {{else /}}
                        <a href="javascript:;" class="am-icon-btn am-icon-plus am-success goods-add-submit" data-type="add"></a>
                    {{/if}}
                </div>
            </div>
        </li>
    {{/foreach}}
{{else /}}
    <div class="table-no"><i class="am-icon-warning"></i> 没有相关商品</div>
{{/if}}