|
@@ -0,0 +1,108 @@
|
|
|
|
|
+{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="address">
|
|
|
|
|
+ {{d.province}} {{d.city}} {{d.area}},{{d.detail_address}}
|
|
|
|
|
+ </script>
|
|
|
|
|
+ <script type="text/html" id="logo">
|
|
|
|
|
+ <p lay-event="open_image">
|
|
|
|
|
+ <img class="avatar open_image" style="cursor: pointer" data-image="{{d.logo}}"
|
|
|
|
|
+ src="{{d.logo}}">
|
|
|
|
|
+ </p>
|
|
|
|
|
+ </script>
|
|
|
|
|
+ <script type="text/html" id="job">
|
|
|
|
|
+
|
|
|
|
|
+ </script>
|
|
|
|
|
+ <script type="text/html" id="act">
|
|
|
|
|
+ {{# if(d.status == 0){ }}
|
|
|
|
|
+ <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" lay-event='pass'>
|
|
|
|
|
+ 通过
|
|
|
|
|
+ </button>
|
|
|
|
|
+ <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" lay-event='cancel'>
|
|
|
|
|
+ 驳回
|
|
|
|
|
+ </button>
|
|
|
|
|
+ {{# } }}
|
|
|
|
|
+ {{# if(d.status == 1){ }}
|
|
|
|
|
+ <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" lay-event='see'>
|
|
|
|
|
+ 查看证书
|
|
|
|
|
+ </button>
|
|
|
|
|
+ {{# } }}
|
|
|
|
|
+ </script>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</div>
|
|
|
|
|
+<script src="{__ADMIN_PATH}js/layuiList.js"></script>
|
|
|
|
|
+{/block}
|
|
|
|
|
+{block name="script"}
|
|
|
|
|
+<script>
|
|
|
|
|
+ layList.tableList('List', "{:Url('groupList')}", function () {
|
|
|
|
|
+ return [
|
|
|
|
|
+ {field: 'id', title: 'ID', sort: true, event: 'id', width: '5%'},
|
|
|
|
|
+ {field: 'name', title: '姓名/企业名', width: '10%'},
|
|
|
|
|
+ {field: 'logo', toolbar: '#logo', title: '半身照/LOGO', width: '8%'},
|
|
|
|
|
+ {field: '_type', title: '类型', width: '8%'},
|
|
|
|
|
+ {field: 'idcard', title: '身份证号/企业统一代码', width: '12%'},
|
|
|
|
|
+ {field: 'phone', title: '联系方式', width: '8%'},
|
|
|
|
|
+ {field: 'address', toolbar: '#address', title: '地址', width: '15%'},
|
|
|
|
|
+ {field: 'job', toolbar: '#job', title: '职业/主营业务', width: '12%'},
|
|
|
|
|
+ {field: 'grade_name', title: '申请类型', width: '8%'},
|
|
|
|
|
+ {field: 'pay_money', title: '支付金额', width: '5%'},
|
|
|
|
|
+ {field: 'status_txt', title: '状态', width: '5%'},
|
|
|
|
|
+ {field: 'right', title: '操作', align: 'center', toolbar: '#act'},
|
|
|
|
|
+ ];
|
|
|
|
|
+ });
|
|
|
|
|
+ //点击事件绑定
|
|
|
|
|
+ layList.tool(function (event, data, obj) {
|
|
|
|
|
+ switch (event) {
|
|
|
|
|
+ case 'pass':
|
|
|
|
|
+ var url = layList.U({c: 'user.user', a: 'pass', q: {id: data.id}});
|
|
|
|
|
+ var code = {title: "操作提示", text: "确定通过该申请?", type: 'info', confirm: '是的,通过'};
|
|
|
|
|
+ $eb.$swal('delete', function () {
|
|
|
|
|
+ $eb.axios.get(url).then(function (res) {
|
|
|
|
|
+ if (res.status == 200 && res.data.code == 200) {
|
|
|
|
|
+ $eb.$swal('success', res.data.msg);
|
|
|
|
|
+ obj.del();
|
|
|
|
|
+ location.reload();
|
|
|
|
|
+ } else
|
|
|
|
|
+ return Promise.reject(res.data.msg || '通过失败')
|
|
|
|
|
+ }).catch(function (err) {
|
|
|
|
|
+ $eb.$swal('error', err);
|
|
|
|
|
+ });
|
|
|
|
|
+ }, code)
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 'cancel':
|
|
|
|
|
+ var url = layList.U({c: 'user.user', a: 'cancel', q: {id: data.id}});
|
|
|
|
|
+ var code = {title: "操作提示", text: "确定驳回该申请?", type: 'info', confirm: '是的,驳回'};
|
|
|
|
|
+ $eb.$swal('delete', function () {
|
|
|
|
|
+ $eb.axios.get(url).then(function (res) {
|
|
|
|
|
+ if (res.status == 200 && res.data.code == 200) {
|
|
|
|
|
+ $eb.$swal('success', res.data.msg);
|
|
|
|
|
+ obj.del();
|
|
|
|
|
+ location.reload();
|
|
|
|
|
+ } else
|
|
|
|
|
+ return Promise.reject(res.data.msg || '驳回失败')
|
|
|
|
|
+ }).catch(function (err) {
|
|
|
|
|
+ $eb.$swal('error', err);
|
|
|
|
|
+ });
|
|
|
|
|
+ }, code)
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 'see':
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 'open_image':
|
|
|
|
|
+ $eb.openImage(data.image);
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+</script>
|
|
|
|
|
+{/block}
|