| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- {extend name="layout:home" /}
- {block name="container"}
- <div class="layui-tab layui-tab-card">
- <div class="layui-tab-content page-tab-content">
- <!-- 搜索框开始 -->
- <div class="search-form">
- <div class="layui-form-item">
- <div class="layui-inline">
- <input type="text" class="layui-input" name="timeRang" id="timeRang" placeholder="选择时间段"
- style="width: 170px;">
- </div>
- <div class="layui-inline">
- <select name="type" id="type" lay-verify="" class="layui-select layui-unselect layui-form-select">
- <option value="">全部</option>
- <option value="1">支付宝支付</option>
- <option value="2">微信支付</option>
- <option value="2">银行转账</option>
- </select>
- </div>
- <div class="layui-inline">
- <button type="submit" class="layui-btn search-subBtn" onclick="showCurrent()">搜索</button>
- </div>
- </div>
- </div>
- <table class="layui-table lay-even">
- <colgroup>
- <col width="150">
- <col width="200">
- <col>
- </colgroup>
- <thead>
- <tr>
- <th>订单编号</th>
- <th>交易类型</th>
- <th>金额</th>
- <th>交易时间</th>
- <th>余额</th>
- <th>审核状态</th>
- </tr>
- </thead>
- <tbody>
- {if count($allRecharge)}
- {volist name="allRecharge" id="recharge"}
- <tr>
- <td>{$recharge.recharge_identity}</td>
- <td>{$recharge.recharge_type == 2 ? '微信支付' : ($recharge.recharge_type == 3 ? '银行转账' : '支付宝支付')}</td>
- <td>{$recharge.recharge_money}</td>
- <td>{$recharge.recharge_time}</td>
- <td>{$recharge.user_money}</td>
- <td>{$recharge.recharge_status == 1 ? '已审核' : '未审核'}</td>
- </tr>
- {/volist}
- {else}
- <td colspan="7" style="text-align: center">无数据</td>
- {/if}
- </tbody>
- </table>
- {$show_page}
- </div>
- </div>
- <script>
- const myHost = "http://" + window.location.host;
- function showCurrent() {
- let timeRang = $("#timeRang").val();
- let type = $("#type").val();
- window.location.href = myHost + "/User/cost/transaction.html?timeRang=" + timeRang + "&type=" + type;
- }
- layui.use('laydate', function(){
- var laydate = layui.laydate;
- //执行一个laydate实例
- laydate.render({
- elem: '#creatTime' //指定元素
- });
- laydate.render({
- elem:'#timeRang',
- range:true,
- format: 'yyyy/MM/dd',
- done: function(value, date){
- /* 时间选择完成后的回调 */
- }
- })
- });
- </script>
- {/block}
|