153 lines
6.0 KiB
HTML
Executable File
153 lines
6.0 KiB
HTML
Executable File
{{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/Coupon/User', ['coupon_id'=>I('request.coupon_id')])}}" method="POST">
|
|
<div class="am-g">
|
|
<input type="text" class="am-radius form-keyword" placeholder="用户昵称/姓名/手机号码" name="keyword" <present name="param['keyword']"> value="{{$param.keyword}}"{{/if}} />
|
|
<button type="submit" class="am-btn am-btn-secondary am-btn-sm am-radius form-submit">查询</button>
|
|
<label class="fs-12 m-l-5 c-p fw-100 more-submit">
|
|
更多筛选
|
|
<input type="checkbox" name="is_more" value="1" id="is_more" {{if isset($param['is_more']) and $param['is_more'] eq 1)}}checked{{/if}} />
|
|
<i class="am-icon-angle-down"></i>
|
|
</label>
|
|
|
|
<div class="more-where {{if !isset($param['is_more']) or $param['is_more'] neq 1)}}none{{/if}}">
|
|
<select name="status" class="am-radius c-p m-t-10 m-l-5 param-where">
|
|
<option value="-1)}}优惠券状态</option>
|
|
<foreach name="common_user_coupon_status" item="v">
|
|
<option value="{{$v.id}}" {{if isset($param['status']) and $param['status'] eq $v['id']">selected{{/if}}>{{$v.name}}</option>
|
|
{{/foreach}}
|
|
</select>
|
|
<div class="param-date param-where m-l-5)}}
|
|
<input type="text" name="time_start" class="Wdate am-radius m-t-10" placeholder="有效时间" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" {{if isset($param['time_start'])}}value="{{$param.time_start}}"{{/if}}/>
|
|
<span>~</span>
|
|
<input type="text" class="Wdate am-radius m-t-10" placeholder="有效时间" name="time_end" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" {{if isset($param['time_end'])}}value="{{$param.time_end}}"{{/if}}/>
|
|
</div>
|
|
</div>
|
|
<a href="{{:url('Admin/Coupon/Index')}}" class="fr fs-14 am-icon-mail-reply"> 优惠券列表</a>
|
|
</div>
|
|
</form>
|
|
<!-- form end -->
|
|
|
|
<!-- list start -->
|
|
<table class="am-table am-table-striped am-table-hover am-text-middle m-t-1)}}
|
|
<thead>
|
|
<tr>
|
|
<th>用户姓名</th>
|
|
<th>用户昵称</th>
|
|
<th>金额(元)</th>
|
|
<th>使用条件金额(元)</th>
|
|
<th class="am-hide-sm-only">有效时间</th>
|
|
<th class="am-hide-sm-only">优惠券状态</th>
|
|
<th>更多</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{if !empty($list)}}
|
|
<foreach name="list" item="v">
|
|
<tr id="data-list-{{$v.id}}">
|
|
<td>
|
|
{{if empty($v['username'])}}<span class="cr-ddd">未填写</span>{{else /}}{{$v.username}}{{/if}}
|
|
</td>
|
|
<td>
|
|
{{if empty($v['nickname'])}}<span class="cr-ddd">未填写</span>{{else /}}{{$v.nickname}}{{/if}}
|
|
</td>
|
|
<td>{{$v.price}}</td>
|
|
<td>
|
|
{{if empty($v['use_where_price'])}}
|
|
<span class="cr-ddd">不限</span>
|
|
{{else /}}
|
|
{{$v.use_where_price}}
|
|
{{/if}}
|
|
</td>
|
|
<td class="am-hide-sm-only">
|
|
{{if !empty($v['valid_start_time_text'])}}
|
|
{{$v.valid_start_time_text}}<br />
|
|
{{/if}}
|
|
{{if !empty($v['valid_end_time_text'])}}
|
|
{{$v.valid_end_time_text}}
|
|
{{/if}}
|
|
{{if empty($v['valid_start_time_text']) and empty($v['valid_end_time_text'])}}
|
|
<span class="cr-ccc">不限</span>
|
|
{{/if}}
|
|
</td>
|
|
<td>{{$v.status_text}}</td>
|
|
<td>
|
|
<span class="am-icon-caret-down c-p" data-am-modal="{target: '#my-popup{{$v.id}}'}"> 查看更多</span>
|
|
<div class="am-popup am-radius" id="my-popup{{$v.id}}">
|
|
<div class="am-popup-inner">
|
|
<div class="am-popup-hd">
|
|
<h4 class="am-popup-title">详情内容</h4>
|
|
<span data-am-modal-close
|
|
class="am-close">×</span>
|
|
</div>
|
|
<div class="am-popup-bd">
|
|
<dl class="dl-content">
|
|
<dt>用户姓名</dt>
|
|
<dd>{{if empty($v['username'])}}<span class="cr-ddd">未填写</span>{{else /}}{{$v.username}}{{/if}}</dd>
|
|
|
|
<dt>用户昵称</dt>
|
|
<dd>{{if empty($v['nickname'])}}<span class="cr-ddd">未填写</span>{{else /}}{{$v.nickname}}{{/if}}</dd>
|
|
|
|
<dt>金额(元)</dt>
|
|
<dd>{{if empty($v['price'])}}<span class="cr-ddd">未填写</span>{{else /}}{{$v.price}}{{/if}}</dd>
|
|
|
|
<dt>使用条件金额(元)</dt>
|
|
<dd>{{if empty($v['use_where_price'])}}<span class="cr-ddd">不限</span>{{else /}}{{$v.use_where_price}}{{/if}}</dd>
|
|
|
|
<dt>有效时间</dt>
|
|
<dd>
|
|
{{if !empty($v['valid_start_time_text'])}}
|
|
{{$v.valid_start_time_text}}<br />
|
|
{{/if}}
|
|
{{if !empty($v['valid_end_time_text'])}}
|
|
{{$v.valid_end_time_text}}
|
|
{{/if}}
|
|
{{if empty($v['valid_start_time_text']) and empty($v['valid_end_time_text'])}}
|
|
<span class="cr-ccc">未填写</span>
|
|
{{/if}}
|
|
</dd>
|
|
|
|
<dt>优惠券状态</dt>
|
|
<dd>{{if empty($v['status_text'])}}<span class="cr-ddd">未填写</span>{{else /}}{{$v.status_text}}{{/if}}</dd>
|
|
|
|
<dt>创建时间</dt>
|
|
<dd>{{$v.add_time_text}}</dd>
|
|
|
|
<dt>更新时间</dt>
|
|
<dd>{{$v.upd_time_text}}</dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td class="view-operation">
|
|
{{if $v['status'] neq 1)}}
|
|
<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:url('Admin/Coupon/Delete')}}" data-id="{{$v.id}}"> 删除</button>
|
|
{{/if}}
|
|
</td>
|
|
</tr>
|
|
{{/foreach}}
|
|
{{else /}}
|
|
<tr><td colspan="20" class="table-no">没有相关数据</td></tr>
|
|
{{/if}}
|
|
</tbody>
|
|
</table>
|
|
<!-- list end -->
|
|
|
|
<!-- page start -->
|
|
{{if !empty($list)}}
|
|
{{$page_html}}
|
|
{{/if}}
|
|
<!-- page end -->
|
|
</div>
|
|
</div>
|
|
<!-- right content end -->
|
|
|
|
<!-- footer start -->
|
|
{{include file="public/footer" /}}
|
|
<!-- footer end --> |