|
@@ -0,0 +1,208 @@
|
|
|
|
|
+{extend name="public/container"}
|
|
|
|
|
+{block name="head_top"}
|
|
|
|
|
+
|
|
|
|
|
+{/block}
|
|
|
|
|
+{block name="content"}
|
|
|
|
|
+<style>
|
|
|
|
|
+ .btn-outline{
|
|
|
|
|
+ border:none;
|
|
|
|
|
+ }
|
|
|
|
|
+ .btn-outline:hover{
|
|
|
|
|
+ background-color: #0e9aef;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ }
|
|
|
|
|
+ .layui-form-item .layui-btn {
|
|
|
|
|
+ margin-top: 5px;
|
|
|
|
|
+ margin-right: 10px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .layui-btn-primary{
|
|
|
|
|
+ margin-right: 10px;
|
|
|
|
|
+ margin-left: 0!important;
|
|
|
|
|
+ }
|
|
|
|
|
+ label{
|
|
|
|
|
+ margin-bottom: 0!important;
|
|
|
|
|
+ margin-top: 4px;
|
|
|
|
|
+ }
|
|
|
|
|
+</style>
|
|
|
|
|
+<div class="layui-fluid">
|
|
|
|
|
+ <div class="layui-row layui-col-space15" id="app">
|
|
|
|
|
+ <!--搜索条件-->
|
|
|
|
|
+ <div class="layui-col-md12">
|
|
|
|
|
+ <div class="layui-card">
|
|
|
|
|
+ <div class="layui-card-header">搜索条件</div>
|
|
|
|
|
+ <div class="layui-card-body">
|
|
|
|
|
+ <div class="layui-carousel layadmin-carousel layadmin-shortcut" lay-anim="" lay-indicator="inside" lay-arrow="none" style="background:none">
|
|
|
|
|
+ <form class="layui-form layui-form-pane" action="">
|
|
|
|
|
+ <div class="layui-inline">
|
|
|
|
|
+ <label class="layui-form-label" style="top: -5.5px;">搜索条件</label>
|
|
|
|
|
+ <div class="layui-input-inline">
|
|
|
|
|
+ <input type="text" id="name" name="name" class="layui-input" placeholder="请输入用户编号">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="layui-inline">
|
|
|
|
|
+ <label class="layui-form-label" style="top: -4.5px">状态</label>
|
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
|
+ <select name="status">
|
|
|
|
|
+ <option value="">全部</option>
|
|
|
|
|
+ <option value="1">待发货</option>
|
|
|
|
|
+ <option value="2">待收货</option>
|
|
|
|
|
+ <option value="3">已收货</option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="layui-inline">
|
|
|
|
|
+ <label class="layui-form-label" style="top: -4.5px">状态</label>
|
|
|
|
|
+ <div class="layui-input-inline">
|
|
|
|
|
+ <input type="text" id="product" name="product" class="layui-input" placeholder="商品名称">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="layui-inline">
|
|
|
|
|
+ <div class="layui-input-inline">
|
|
|
|
|
+ <button class="layui-btn layui-btn-sm layui-btn-normal" lay-submit="search" lay-filter="search">
|
|
|
|
|
+ <i class="layui-icon layui-icon-search"></i>搜索</button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </form>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 中间详细信息-->
|
|
|
|
|
+ <div :class="item.col!=undefined ? 'layui-col-sm'+item.col+' '+'layui-col-md'+item.col:'layui-col-sm6 layui-col-md3'"
|
|
|
|
|
+ v-for="item in badge" v-cloak="" v-if="item.count > 0">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!--enb-->
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!--列表-->
|
|
|
|
|
+ <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="image">
|
|
|
|
|
+ <img style="cursor: pointer" lay-event="open_image" src="{{d.image}}">
|
|
|
|
|
+ </script>
|
|
|
|
|
+ <script type="text/html" id="status">
|
|
|
|
|
+ {{# if(d.status==0){ }}
|
|
|
|
|
+ <button class="btn btn-primary btn-xs" type="button">
|
|
|
|
|
+ 待发货
|
|
|
|
|
+ </button>
|
|
|
|
|
+ {{# }else if(d.status==1){ }}
|
|
|
|
|
+ <button class="btn btn-primary btn-xs" type="button">
|
|
|
|
|
+ 待收货
|
|
|
|
|
+ </button>
|
|
|
|
|
+ {{# }else if(d.status==2){ }}
|
|
|
|
|
+ <button class="btn btn-primary btn-xs" type="button">
|
|
|
|
|
+ 已收货
|
|
|
|
|
+ </button>
|
|
|
|
|
+ {{# }; }}
|
|
|
|
|
+ </script>
|
|
|
|
|
+ <script type="text/html" id="act">
|
|
|
|
|
+<!-- <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" onclick="$eb.createModalFrame('商品','{:Url('product')}?id={{d.id}}',{h:1500,w:1400})">-->
|
|
|
|
|
+<!-- 商品-->
|
|
|
|
|
+<!-- </button>-->
|
|
|
|
|
+ {{# if(d.status==0){ }}
|
|
|
|
|
+ <button class="btn btn-primary btn-xs" type="button"
|
|
|
|
|
+ onclick="$eb.createModalFrame('发送货','{:Url('order_goods')}?id={{d.id}}',{w:500,h:400})">
|
|
|
|
|
+ <i class="fa fa-cart-plus"></i> 发送货
|
|
|
|
|
+ </button>
|
|
|
|
|
+ {{# }else if(d.status > 0){ }}
|
|
|
|
|
+ <button class="btn btn-primary btn-xs" type="button"
|
|
|
|
|
+ onclick="$eb.createModalFrame('修改','{:Url('order_goods')}?id={{d.id}}',{w:500,h:400})">
|
|
|
|
|
+ <i class="fa fa-cart-plus"></i> 修改
|
|
|
|
|
+ </button>
|
|
|
|
|
+ {{# }; }}
|
|
|
|
|
+ <button class="btn btn-primary btn-xs" type="button"
|
|
|
|
|
+ onclick="$eb.createModalFrame('编辑','{:Url('edit')}?id={{d.id}}',{w:650,h:500})">
|
|
|
|
|
+ 收货地址
|
|
|
|
|
+ </button>
|
|
|
|
|
+<!-- <button type="button" class="layui-btn layui-btn-xs layui-btn-danger" lay-event='delete' id="">-->
|
|
|
|
|
+<!-- 删除-->
|
|
|
|
|
+<!-- </button>-->
|
|
|
|
|
+ </script>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!--end-->
|
|
|
|
|
+</div>
|
|
|
|
|
+<script src="{__ADMIN_PATH}js/layuiList.js"></script>
|
|
|
|
|
+{/block}
|
|
|
|
|
+{block name="script"}
|
|
|
|
|
+<script>
|
|
|
|
|
+ layList.form.render();
|
|
|
|
|
+ layList.tableList('List', "{:Url('list')}", function () {
|
|
|
|
|
+ return [
|
|
|
|
|
+ {type: 'checkbox'},
|
|
|
|
|
+ {field: 'id', title: 'ID', sort: true, event: 'id', width: '5%', templet: '#id'},
|
|
|
|
|
+ {field: 'nickname', title: '用户昵称', templet: '#nickname', align: 'center'},
|
|
|
|
|
+ {field: 'name', title: '商品名称', templet: '#name', align: 'center'},
|
|
|
|
|
+ {field: 'image', title: '商品图片', templet: '#image', align: 'center', width: '5%'},
|
|
|
|
|
+ {field: 'price', title: '商品价格', templet: '#hanging_price', align: 'center'},
|
|
|
|
|
+ {field: 'status', title: '状态', templet: '#status', align: 'center'},
|
|
|
|
|
+ {field: 'real_name', title: '收货姓名', templet: '#real_name', align: 'center'},
|
|
|
|
|
+ {field: 'user_phone', title: '收货手机号', templet: '#user_phone', align: 'center'},
|
|
|
|
|
+ {field: 'user_address', title: '收货地址', templet: '#user_address', align: 'center'},
|
|
|
|
|
+ {field: 'delivery_name', title: '快递名称', templet: '#delivery_name', align: 'center'},
|
|
|
|
|
+ {field: 'delivery_id', title: '快递单号', templet: '#delivery_id', align: 'center'},
|
|
|
|
|
+ {field: 'right', title: '操作', align: 'center', toolbar: '#act'},
|
|
|
|
|
+ ];
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ //查询
|
|
|
|
|
+ layList.search('search',function(where){
|
|
|
|
|
+ layList.reload(where,true);
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ //点击事件绑定
|
|
|
|
|
+ layList.tool(function (event,data,obj) {
|
|
|
|
|
+ switch (event) {
|
|
|
|
|
+ case 'delete':
|
|
|
|
|
+ var url=layList.U({c:'auction.auction',a:'delete',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 'open_image':
|
|
|
|
|
+ $eb.openImage(data.image);
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 'edit':
|
|
|
|
|
+ location.href = layList.U({a:'edit',q:{id:data.id}});
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ //改状态
|
|
|
|
|
+ layList.switch('status',function (odj,value) {
|
|
|
|
|
+ if(odj.elem.checked==true){
|
|
|
|
|
+ layList.baseGet(layList.Url({c:'auction.auction',a:'set_status',p:{status:1,id:value}}),function (res) {
|
|
|
|
|
+ layList.msg(res.msg, function () {
|
|
|
|
|
+ layList.reload();
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ }else{
|
|
|
|
|
+ layList.baseGet(layList.Url({c:'auction.auction',a:'set_status',p:{status:0,id:value}}),function (res) {
|
|
|
|
|
+ layList.msg(res.msg, function () {
|
|
|
|
|
+ layList.reload();
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+</script>
|
|
|
|
|
+{/block}
|