Commit f1307c7c by 杨树贤

修复兑换设置类型显示问题

parent 39c4c89a
...@@ -33,7 +33,7 @@ layui.use(['table', 'form', 'laydate', 'layer'], function () { ...@@ -33,7 +33,7 @@ layui.use(['table', 'form', 'laydate', 'layer'], function () {
{type: 'checkbox'} {type: 'checkbox'}
, {field: 'id', title: '序号'} , {field: 'id', title: '序号'}
, {field: 'name', title: '商品名称'} , {field: 'name', title: '商品名称'}
, {field: 'type', title: '商品类型'} , {field: 'type', title: '商品类型', templet: '#type'}
, {field: 'amount', title: '兑换所需金额'} , {field: 'amount', title: '兑换所需金额'}
, {field: 'status', title: '配置状态', templet: '#status'} , {field: 'status', title: '配置状态', templet: '#status'}
, {field: 'update_time', title: '配置更新时间', templet: '#update_time'} , {field: 'update_time', title: '配置更新时间', templet: '#update_time'}
......
...@@ -59,6 +59,18 @@ ...@@ -59,6 +59,18 @@
@{{d.status}} @{{d.status}}
</script> </script>
<script type="text/html" id="type">
@{{# if(d.type == 1){ }}
话费充值
@{{# } }}
@{{# if(d.type == 2){ }}
微信兑换
@{{# } }}
@{{# if(d.type == 0){ }}
@{{# } }}
</script>
<script type="text/html" id="toolbarLeft"> <script type="text/html" id="toolbarLeft">
<div class="layui-btn-container"> <div class="layui-btn-container">
<button class="layui-btn layui-btn-danger layui-btn-sm" lay-event="batchDisableStatus">禁用所选中行</button> <button class="layui-btn layui-btn-danger layui-btn-sm" lay-event="batchDisableStatus">禁用所选中行</button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment