|
@@ -0,0 +1,48 @@
|
|
|
+{extend name="public/container"}
|
|
|
+{block name="head_top"}
|
|
|
+
|
|
|
+{/block}
|
|
|
+{block name="content"}
|
|
|
+<div class="layui-fluid" style="background: #fff;margin-top: -10px;">
|
|
|
+ <div class="layui-row layui-col-space15">
|
|
|
+ <div class="layui-col-md12">
|
|
|
+ <div class="layui-card">
|
|
|
+ <!-- <div class="layui-card-header">门店列表</div>-->
|
|
|
+ <div class="layui-card-body">
|
|
|
+ <table class="layui-hide" id="List" lay-filter="List"></table>
|
|
|
+
|
|
|
+ <script type="text/html" id="act">
|
|
|
+ <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" lay-event='edit'>
|
|
|
+ 编辑
|
|
|
+ </button>
|
|
|
+ </script>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+<script src="{__ADMIN_PATH}js/layuiList.js"></script>
|
|
|
+{/block}
|
|
|
+{block name="script"}
|
|
|
+<script>
|
|
|
+ layList.tableList('List', "{:Url('machineList',array('uid'=>$uid))}", function () {
|
|
|
+ return [
|
|
|
+ {field: 'id', title: 'ID', sort: true, event: 'id', width: '5%'},
|
|
|
+ {field: 'name', title: '矿机名称'},
|
|
|
+ {field: 'get_money', title: '收益币种', width: '10%'},
|
|
|
+ {field: 'user_service_ratio', title: '当前服务费(%)', width: '15%'},
|
|
|
+ {field: 'service_ratio', title: '矿机默认服务费(%)', width: '15%'},
|
|
|
+ {field: 'lower_service_ratio', title: '下级最低服务费(%)', width: '15%'},
|
|
|
+ {field: 'act', title: '操作', align: 'center', toolbar: '#act', width: '20%'},
|
|
|
+ ];
|
|
|
+ });
|
|
|
+
|
|
|
+ layList.tool(function (event, data, obj) {
|
|
|
+ switch (event) {
|
|
|
+ case 'edit':
|
|
|
+ $eb.createModalFrame(data.name + '-编辑', layList.U({a: 'edit_service', q: {id: data.id}}), {h: 250, w: 720});
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ })
|
|
|
+</script>
|
|
|
+{/block}
|