|
@@ -0,0 +1,117 @@
|
|
|
+{extend name="layout/sub"/}
|
|
|
+{block name='css'}
|
|
|
+<link rel="stylesheet" href="__SUB__/css/news.css" media="all" />
|
|
|
+{/block}
|
|
|
+{block name='body'}
|
|
|
+<blockquote class="layui-elem-quote news_search">
|
|
|
+ <form method="get" action="">
|
|
|
+ <div class="layui-inline">
|
|
|
+ <label>修改人</label>
|
|
|
+ <div class="layui-input-inline">
|
|
|
+ <input type="text" name="nickname" class="layui-input" value="{:input('nickname')}"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-inline">
|
|
|
+ <label>时间</label>
|
|
|
+ <div class="layui-input-inline">
|
|
|
+ <input type="text" id="time" name="time" class="layui-input" value="{:input('time')}" onclick="layui.laydate({elem:this})" lay-verify="datetime"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-inline">
|
|
|
+ <button class="layui-btn search_btn">查询</button>
|
|
|
+ <button class="layui-btn reset-btn" type="button">重置</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+</blockquote>
|
|
|
+<div class="layui-form news_list">
|
|
|
+ <table class="layui-table">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th width="20">ID</th>
|
|
|
+ <th width="250">手机号</th>
|
|
|
+ <th width="250">修改人</th>
|
|
|
+ <th>原价</th>
|
|
|
+ <th>修改后价格</th>
|
|
|
+ <th>创建时间</th>
|
|
|
+ <th>更新时间</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody class="news_content">
|
|
|
+ {foreach name="list" item="a"}
|
|
|
+ <tr>
|
|
|
+ <td>{$a.id}</td>
|
|
|
+ <td>
|
|
|
+ {$a.no}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ {notempty name='a.admin'}
|
|
|
+ {$a.admin.nickname}
|
|
|
+ {/notempty}
|
|
|
+ {notempty name='a.user'}
|
|
|
+ {$a.user.nickname}
|
|
|
+ {/notempty}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ {$a.before_price}
|
|
|
+ </td>
|
|
|
+ <td>{$a.after_price}</td>
|
|
|
+ <td>{$a.create_time|date='Y-m-d H:i:s',###}</td>
|
|
|
+ <td>{$a.update_time|date='Y-m-d H:i:s',###}</td>
|
|
|
+ </tr>
|
|
|
+ {/foreach}
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+</div>
|
|
|
+<div id="page">
|
|
|
+ <span style="float: left">共 {$list->total()} 条记录</span>
|
|
|
+ {$list->render()}
|
|
|
+</div>
|
|
|
+{/block}
|
|
|
+{block name='js'}
|
|
|
+
|
|
|
+<script>
|
|
|
+ layui.config({
|
|
|
+ base : "__SUB__/js/"
|
|
|
+ }).use(['form','layer','jquery','laypage','laydate'],function(){
|
|
|
+ var form = layui.form(),
|
|
|
+ layer = parent.layer === undefined ? layui.layer : parent.layer,
|
|
|
+ laypage = layui.laypage,
|
|
|
+ laydate = layui.laydate,
|
|
|
+ $ = layui.jquery;
|
|
|
+
|
|
|
+ //查询
|
|
|
+ $(".search_btn").click(function(){
|
|
|
+ var newArray = [];
|
|
|
+ })
|
|
|
+
|
|
|
+ //操作
|
|
|
+ $("body").on("click",".news_edit",function(){ //编辑
|
|
|
+ let id=$(this).data('id')
|
|
|
+ let index = layui.layer.open({
|
|
|
+ title : "退款",
|
|
|
+ type : 2,
|
|
|
+ area:['800px','500px'],
|
|
|
+ content : '{:url("order/refund")}?id='+id,
|
|
|
+ success : function(layero, index){
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ $('.refund_log').click(function () {
|
|
|
+ let id=$(this).data('id')
|
|
|
+ let index = layui.layer.open({
|
|
|
+ title : "退款记录",
|
|
|
+ type : 2,
|
|
|
+ area:['1000px','100%'],
|
|
|
+ content : '{:url("order/refund_log")}?id='+id,
|
|
|
+ success : function(layero, index){
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ $('.reset-btn').click(function (){
|
|
|
+ location.replace(location.pathname)
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+</script>
|
|
|
+{/block}
|