|
|
@@ -86,6 +86,16 @@
|
|
|
<script type="text/html" id="is_show">
|
|
|
<input type='checkbox' name='id' lay-skin='switch' value="{{d.id}}" lay-filter='is_show' lay-text='开启|关闭' {{ d.status == 1 ? 'checked' : '' }}>
|
|
|
</script>
|
|
|
+
|
|
|
+ <script type="text/html" id="type">
|
|
|
+ {{# if(d.type==1){ }}
|
|
|
+ 时效卡
|
|
|
+ {{# } }}
|
|
|
+ {{# if(d.type==2){ }}
|
|
|
+ 次数卡
|
|
|
+ {{# } }}
|
|
|
+
|
|
|
+ </script>
|
|
|
<script type="text/html" id="act">
|
|
|
<button type="button" class="layui-btn layui-btn-xs layui-btn-normal" onclick="$eb.createModalFrame('编辑','{:Url('card.card_project/index')}?id={{d.id}}',{h:1100,w:1100})">
|
|
|
绑定
|
|
|
@@ -115,8 +125,10 @@
|
|
|
{type: 'checkbox'},
|
|
|
{field: 'id', title: 'ID', sort: true, event: 'id', width: '5%', templet: '#id'},
|
|
|
{field: 'name', title: '名称', templet: '#name', align: 'center'},
|
|
|
- {field: 'time', title: '天数', templet: '#name', align: 'center'},
|
|
|
- {field: 'price', title: '金额', templet: '#name', align: 'center'},
|
|
|
+ {field: 'time', title: '天数', align: 'center'},
|
|
|
+ {field: 'price', title: '金额', align: 'center'},
|
|
|
+ {field: 'type', title: '类型', templet: '#type', align: 'center'},
|
|
|
+ {field: 'number', title: '次数', align: 'center'},
|
|
|
{field: 'status', title: '状态', templet: '#is_show', align: 'center'},
|
|
|
{field: 'create_time', title: '时间', align: 'center', width: '8%'},
|
|
|
{field: 'right', title: '操作', align: 'center', toolbar: '#act',width: '15%'},
|