index.html 7.4 KB
Newer Older
G
gongfuxiang 已提交
1 2 3 4 5 6 7 8
{{include file="public/header" /}}

<!-- right content start  -->
<div class="content-right">
	<div class="content">
		<!-- form start -->
		<form class="am-form view-list" action="{{:url('admin/goods/index')}}" method="POST">
			<div class="am-g">
D
语言  
devil_gong 已提交
9
				<input type="text" autocomplete="off" class="am-radius form-keyword" placeholder="标题/型号" name="keywords" {{if !empty($params['keywords'])}} value="{{$params.keywords}}"{{/if}} />
D
devil_gong 已提交
10
				<button type="submit" class="am-btn am-btn-secondary am-btn-sm am-radius form-submit">查询</button>
G
gongfuxiang 已提交
11
				<label class="fs-12 m-l-5 c-p fw-100 more-submit">
D
devil_gong 已提交
12
					更多筛选
G
gongfuxiang 已提交
13 14 15 16 17 18
					<input type="checkbox" name="is_more" value="1" id="is_more" {{if isset($params['is_more']) and $params['is_more'] eq 1}}checked{{/if}} />
					<i class="am-icon-angle-down"></i>
				</label>

				<div class="more-where {{if !isset($params['is_more']) or $params['is_more'] neq 1}}none{{/if}}">
					<select name="is_shelves" class="am-radius c-p m-t-10 m-l-5 param-where">
D
语言  
devil_gong 已提交
19
						<option value="-1">上下架</option>
G
gongfuxiang 已提交
20 21 22 23 24
						{{foreach $common_goods_is_shelves_list as $v}}
							<option value="{{$v.id}}" {{if isset($params['is_shelves']) and $params['is_shelves'] eq $v['id']}}selected{{/if}}>{{$v.name}}</option>
						{{/foreach}}
					</select>
					<select name="is_home_recommended" class="am-radius c-p m-t-10 m-l-5 param-where">
D
语言  
devil_gong 已提交
25
						<option value="-1">首页推荐</option>
G
gongfuxiang 已提交
26 27 28 29 30
						{{foreach $common_is_text_list as $v}}
							<option value="{{$v.id}}" {{if isset($params['is_home_recommended']) and $params['is_home_recommended'] eq $v['id']}}selected{{/if}}>{{$v.name}}</option>
						{{/foreach}}
					</select>
					<div class="param-date param-where m-l-5">
D
devil_gong 已提交
31
						<input type="text" autocomplete="off" name="time_start" class="Wdate am-radius m-t-10" placeholder="起始时间" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" {{if isset($params['time_start'])}}value="{{$params.time_start}}"{{/if}}/>
G
gongfuxiang 已提交
32
						<span>~</span>
D
devil_gong 已提交
33
						<input type="text" autocomplete="off" class="Wdate am-radius m-t-10" placeholder="结束时间" name="time_end" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" {{if isset($params['time_end'])}}value="{{$params.time_end}}"{{/if}}/>
G
gongfuxiang 已提交
34 35 36 37 38 39 40 41
					</div>
				</div>
			</div>
        </form>
        <!-- form end -->

        <!-- operation start -->
        <div class="am-g m-t-15">
D
devil_gong 已提交
42
            <a href="{{:url('admin/goods/saveinfo')}}" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> 新增</a>
G
gongfuxiang 已提交
43 44 45 46 47 48 49
        </div>
        <!-- operation end -->

		<!-- list start -->
		<table class="am-table am-table-striped am-table-hover am-text-middle m-t-10 goods-list">
			<thead>
				<tr>
D
语言  
devil_gong 已提交
50 51 52 53 54 55 56
					<th>标题名称</th>
					<th>销售价格(元)</th>
					<th>上下架</th>
					<th class="am-hide-sm-only">首页推荐</th>
					<th class="am-hide-sm-only">库存数量</th>
					<th class="am-hide-sm-only">商品型号</th>
					<th class="am-hide-sm-only">品牌</th>
D
devil_gong 已提交
57 58
					<th>更多</th>
					<th>操作</th>
G
gongfuxiang 已提交
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
				</tr>
			</thead>
			<tbody>
				{{if !empty($data)}}
					{{foreach $data as $v}}
						<tr id="data-list-{{$v.id}}" {{if $v['is_shelves'] eq 0}}class="am-active"{{/if}}>
							<td>
								<a href="{{$v.goods_url}}" target="_blank" title="{{$v.title}}">
									<img src="{{$v['images']}}" class="am-img-thumbnail am-radius goods-images am-hide-sm-only" />
								</a>
								<a href="{{$v.goods_url}}" target="_blank" title="{{$v.title}}" {{if !empty($v['title_color'])}} style="color:{{$v.title_color}};" {{/if}} >{{$v.title}}</a>
							</td>
							<td>
								{{$v.price}}
								{{if !empty($v['original_price']) and $v['original_price'] gt 0}}
D
语言  
devil_gong 已提交
74
									<br /><span class="am-badge am-radius">原价 {{$v.original_price}}</span>
G
gongfuxiang 已提交
75 76 77 78 79 80 81 82 83 84 85 86
								{{/if}}
							</td>
							<td>
								<a href="javascript:;" class="am-icon-btn am-icon-check submit-state {{if $v['is_shelves'] eq 1}}am-success{{else /}}am-default{{/if}}" data-url="{{:url('admin/goods/statusshelves')}}" data-id="{{$v.id}}" data-state="{{$v['is_shelves']}}"  data-is-update-status="1"></a>
							</td>
							<td class="am-hide-sm-only">
								<a href="javascript:;" class="am-icon-btn am-icon-check submit-state {{if $v['is_home_recommended'] eq 1}}am-success{{else /}}am-default{{/if}}" data-url="{{:url('admin/goods/statushomerecommended')}}" data-id="{{$v.id}}" data-state="{{$v['is_home_recommended']}}" data-is-update-status="0"></a>
							</td>
							<td class="am-hide-sm-only">{{$v.inventory}} {{$v.inventory_unit}}</td>
							<td class="am-hide-sm-only">{{$v.model}}</td>
							<td class="am-hide-sm-only">{{$v.brand_name}}</td>
							<td>
D
devil_gong 已提交
87
								<span class="am-icon-caret-down c-p" data-am-modal="{target: '#my-popup{{$v.id}}'}"> 查看更多</span>
G
gongfuxiang 已提交
88 89 90
								<div class="am-popup am-radius" id="my-popup{{$v.id}}">
									<div class="am-popup-inner">
										<div class="am-popup-hd">
D
devil_gong 已提交
91
											<h4 class="am-popup-title">详情内容</h4>
G
gongfuxiang 已提交
92 93 94 95 96
											<span data-am-modal-close
											class="am-close">&times;</span>
										</div>
										<div class="am-popup-bd">
											<dl class="dl-content">
D
语言  
devil_gong 已提交
97
												<dt>标题名称</dt>
G
gongfuxiang 已提交
98 99
												<dd>{{$v.title}}</dd>

D
语言  
devil_gong 已提交
100
												<dt>销售价格(元)</dt>
G
gongfuxiang 已提交
101 102 103
												<dd>
													{{$v.price}}
													{{if !empty($v['original_price']) and $v['original_price'] gt 0}}
D
语言  
devil_gong 已提交
104
														<br /><span class="am-badge am-radius">原价 {{$v.original_price}}</span>
G
gongfuxiang 已提交
105 106 107
													{{/if}}
												</dd>

D
语言  
devil_gong 已提交
108
												<dt>上下架</dt>
G
gongfuxiang 已提交
109 110
												<dd>{{:lang('common_goods_is_shelves_list')[$v['is_shelves']]['name']}}</dd>

D
语言  
devil_gong 已提交
111
												<dt>库存数量</dt>
G
gongfuxiang 已提交
112 113
												<dd>{{$v.inventory}} {{$v.inventory_unit}}</dd>

D
语言  
devil_gong 已提交
114
												<dt>最低起购数量</dt>
G
gongfuxiang 已提交
115 116
												<dd>{{$v.buy_min_number}} {{$v.inventory_unit}}</dd>

D
语言  
devil_gong 已提交
117
												<dt>单次最大购买数量</dt>
D
devil_gong 已提交
118
												<dd>{{if $v['buy_max_number'] eq 0}}<span class="cr-ddd">不限</span>{{else /}}{{$v.buy_max_number}} {{$v.inventory_unit}}{{/if}}</dd>
G
gongfuxiang 已提交
119

D
语言  
devil_gong 已提交
120
												<dt>商品型号</dt>
G
gongfuxiang 已提交
121 122
												<dd>{{$v.model}}</dd>

D
语言  
devil_gong 已提交
123
												<dt>品牌</dt>
G
gongfuxiang 已提交
124 125
												<dd>{{$v.brand_name}}</dd>

D
语言  
devil_gong 已提交
126
												<dt>生产地</dt>
G
gongfuxiang 已提交
127 128
												<dd>{{$v.place_origin_name}}</dd>

D
语言  
devil_gong 已提交
129
												<dt>商品分类</dt>
G
gongfuxiang 已提交
130 131
												<dd>{{$v.category_text}}</dd>

D
语言  
devil_gong 已提交
132
												<dt>购买赠送积分</dt>
G
gongfuxiang 已提交
133 134
												<dd>{{$v.give_integral}}</dd>

D
语言  
devil_gong 已提交
135
												<dt>扣减库存</dt>
G
gongfuxiang 已提交
136 137
												<dd>{{:lang('common_is_text_list')[$v['is_deduction_inventory']]['name']}}</dd>

D
devil_gong 已提交
138
												<dt>访问次数</dt>
G
gongfuxiang 已提交
139 140
												<dd>{{$v.access_count}}</dd>

D
devil_gong 已提交
141
												<dt>创建时间</dt>
G
gongfuxiang 已提交
142 143
												<dd>{{$v.add_time}}</dd>

D
devil_gong 已提交
144
												<dt>更新时间</dt>
G
gongfuxiang 已提交
145 146 147 148 149 150 151
												<dd>{{$v.upd_time}}</dd>
											</dl>
										</div>
									</div>
								</div>
							</td>
							<td class="view-operation">
D
devil_gong 已提交
152
								<a href="{{:url('admin/goods/saveinfo', array_merge($params, ['id'=>$v['id']]))}}">
G
gongfuxiang 已提交
153 154 155 156 157 158 159
									<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-edit"></button>
								</a>
								<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:url('admin/goods/delete')}}" data-id="{{$v.id}}"></button>
							</td>
						</tr>
					{{/foreach}}
				{{else /}}
D
devil_gong 已提交
160
					<tr><td colspan="10" class="table-no">没有相关数据</td></tr>
G
gongfuxiang 已提交
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
				{{/if}}
			</tbody>
		</table>
		<!-- list end -->

		<!-- page start -->
		{{if !empty($data)}}
			{{$page_html|raw}}
		{{/if}}
		<!-- page end -->
	</div>
</div>
<!-- right content end  -->
		
<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end -->