mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-05 05:19:21 +08:00
92 lines
5.2 KiB
HTML
92 lines
5.2 KiB
HTML
{{include file="public/header" /}}
|
|
|
|
<!-- right content start -->
|
|
<div class="content-right">
|
|
<div class="content">
|
|
{{if !isset($params['is_admin_index']) or $params['is_admin_index'] neq 1}}
|
|
<legend>
|
|
<span class="fs-16">会员等级</span>
|
|
<a href="{{:PluginsAdminUrl('membershiplevel', 'admin', 'index')}}" class="fr fs-14 m-t-5 am-icon-mail-reply"> 返回</a>
|
|
</legend>
|
|
{{/if}}
|
|
|
|
<div class="membershiplevel-content">
|
|
{{if !isset($params['is_admin_index']) or $params['is_admin_index'] neq 1}}
|
|
<!-- operation start -->
|
|
<div class="am-g m-t-15 m-b-10">
|
|
<a href="{{:PluginsAdminUrl('membershiplevel', 'level', 'saveinfo')}}" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> 新增</a>
|
|
</div>
|
|
<!-- operation end -->
|
|
{{/if}}
|
|
|
|
<!-- list start -->
|
|
<table class="am-table am-table-striped am-table-hover am-text-middle">
|
|
<thead>
|
|
<tr>
|
|
<th>名称</th>
|
|
<th>图标</th>
|
|
<th>规则值</th>
|
|
<th>优惠信息</th>
|
|
<th class="am-hide-sm-only">是否启用</th>
|
|
<th class="am-hide-sm-only">操作时间</th>
|
|
{{if !isset($params['is_admin_index']) or $params['is_admin_index'] neq 1}}
|
|
<th>操作</th>
|
|
{{/if}}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{if !empty($data_list)}}
|
|
{{foreach $data_list as $v}}
|
|
<tr id="data-list-{{$v.id}}" {{if isset($v['is_enable']) and $v['is_enable'] eq 0}}class="am-active"{{/if}}>
|
|
<td>{{$v.name}}</td>
|
|
<td {{if !empty($v['bg_color'])}}style="background-color:{{$v.bg_color}};"{{/if}}>
|
|
{{if !empty($v['images_url'])}}
|
|
<a href="{{$v['images_url']}}" target="_blank">
|
|
<img src="{{$v['images_url']}}" class="am-radius" width="100" />
|
|
</a>
|
|
{{else /}}
|
|
<span class="cr-ccc">暂无图片</span>
|
|
{{/if}}
|
|
</td>
|
|
<td>{{$v.rules_min}}~{{$v.rules_max}}</td>
|
|
<td>
|
|
满减:{{if $v['order_price'] gt 0 and $v['full_reduction_price'] gt 0}}
|
|
满{{$v.order_price}}元 减{{$v.full_reduction_price}}元
|
|
{{else /}}
|
|
<span class="cr-ccc">无满减</span>
|
|
{{/if}}
|
|
<br />
|
|
折扣:{{if $v['discount_rate']}}
|
|
{{$v.discount_rate}}折
|
|
{{else /}}
|
|
<span class="cr-ccc">无折扣</span>
|
|
{{/if}}
|
|
</td>
|
|
<td class="am-hide-sm-only">
|
|
<a href="javascript:;" class="am-icon-btn am-icon-check submit-state {{if isset($v['is_enable']) and $v['is_enable'] eq 1}}am-success{{else /}}am-default{{/if}}" data-url="{{:PluginsAdminUrl('membershiplevel', 'level', 'statusupdate')}}" data-id="{{$v.id}}" data-state="{{if isset($v['is_enable'])}}{{$v['is_enable']}}{{/if}}" data-field="is_enable" data-is-update-status="1"></a>
|
|
</td>
|
|
<td class="am-hide-sm-only">{{$v.operation_time_time}}</td>
|
|
{{if !isset($params['is_admin_index']) or $params['is_admin_index'] neq 1}}
|
|
<td class="view-operation">
|
|
<a href="{{:PluginsAdminUrl('membershiplevel', 'level', 'saveinfo', ['id'=>$v['id']])}}">
|
|
<button class="am-btn am-btn-secondary am-btn-xs am-radius am-icon-edit"> 编辑</button>
|
|
</a>
|
|
<button class="am-btn am-btn-danger am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:PluginsAdminUrl('membershiplevel', 'level', 'delete')}}" data-id="{{$v.id}}"> 删除</button>
|
|
</td>
|
|
{{/if}}
|
|
</tr>
|
|
{{/foreach}}
|
|
{{else /}}
|
|
<tr><td colspan="5" class="table-no">没有相关数据</td></tr>
|
|
{{/if}}
|
|
</tbody>
|
|
</table>
|
|
<!-- list end -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- right content end -->
|
|
|
|
<!-- footer start -->
|
|
{{include file="public/footer" /}}
|
|
<!-- footer end --> |