index.html 4.3 KB
Newer Older
G
gongfuxiang 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
{{include file="public/header" /}}

<!-- header top nav -->
{{include file="public/header_top_nav" /}}

<!-- search -->
{{include file="public/nav_search" /}}

<!-- header nav -->
{{include file="public/header_nav" /}}

<!-- goods category -->
{{include file="public/goods_category" /}}

<!-- content -->
<div class="am-container user-main">

    <!-- user menu start -->
    {{include file="public/user_menu" /}}
    <!-- user menu end -->

    <!-- content start -->
    <div class="user-content">
        <div class="user-content-body">
D
devil_gong 已提交
25
            <form class="am-form form-validation" method="post" action="{{:MyUrl('index/usergoodsbrowse/index')}}" request-type="form">
G
gongfuxiang 已提交
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
                <div class="thin">
                    <div class="am-input-group am-input-group-sm am-fl so">
                        <input type="text" autocomplete="off" name="keywords" class="am-radius" placeholder="其实搜索很简单 ^_^!" value="{{if !empty($params.keywords)}}{{$params.keywords}}{{/if}}" />
                        <span class="am-input-group-btn">
                            <button class="am-btn am-btn-default am-radius" type="submit" data-am-loading="{spinner:'circle-o-notch', loadingText:'搜索中...'}">搜索</button>
                        </span>
                    </div>
                </div>
            </form>

            <!-- 商品列表 -->
            <div class="data-list">
                <table class="am-table">
                    <thead>
                        <tr>
                            <th class="base">商品信息</th>
                            <th class="price">价格</th>
                            <th class="operate">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        {{if !empty($data_list)}}
                            {{foreach $data_list as $v}}
                                <tr id="data-list-{{$v.id}}">
                                    <td>
                                        <div class="goods-detail">
                                            <a href="{{$v.goods_url}}" target="_blank">
                                                <img src="{{$v.images}}">
                                            </a>
                                            <div class="goods-base">
                                                <a href="{{$v.goods_url}}" target="_blank" class="goods-title">{{$v.title}}</a>
                                            </div>
                                        </div>
                                    </td>
                                    <td>
                                        {{if $v['original_price'] gt 0}}
                                            <p class="original-price">¥{{$v.original_price}}</p>
                                        {{/if}}
                                        <p class="line-price">¥{{$v.price}}</p>
                                    </td>
                                    <td>
D
devil_gong 已提交
67
                                        <button type="button" class="am-btn am-btn-danger am-btn-xs am-radius am-btn-block submit-delete" data-url="{{:MyUrl('index/usergoodsbrowse/delete')}}" data-id="{{$v.id}}" data-view="delete">删除</button>
G
gongfuxiang 已提交
68 69 70 71 72 73 74
                                    </td>
                                </tr>
                            {{/foreach}}
                        {{/if}}
                        {{if empty($data_list)}}
                            <tr>
                                <td colspan="3">
D
devil_gong 已提交
75
                                    <div class="table-no"><i class="am-icon-warning"></i> 没有相关数据</div>
G
gongfuxiang 已提交
76 77 78 79 80 81 82 83
                                </td>
                            </tr>
                        {{/if}}
                    </tbody>
                </table>
            </div>

            {{if !empty($data_list)}}
D
devil_gong 已提交
84
                <a href="javascript:;" class="am-btn am-btn-warning am-radius am-btn-sm submit-ajax" data-url="{{:MyUrl('index/usergoodsbrowse/delete')}}" data-id="{{$ids}}" data-view="reload" data-msg="清空后不可恢复、确认操作吗?">清空</a>
G
gongfuxiang 已提交
85 86 87 88 89 90 91 92 93 94 95 96

                <!-- 分页 -->
                {{$page_html|raw}}
            {{/if}}
        </div>
    </div>
    <!-- content end -->
</div>

<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end -->