| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <!-- include 'admin-header' -->
- <div class="mainWrap">
- <!-- include 'admin-leftWrap' -->
- <div class="mainContent">
- <div class="page-header pageHeader">
- <h3>订单列表
- <div class="input-group fR" style="width:400px;">
- <input type="text" class="form-control" name="search" id="search" placeholder="请输入订单号/用户名/邮箱/手机/课程" value="<!-- if isset({{search}}) -->{{search}}<!-- endif -->">
- <div class="input-group-btn">
- <button class="btn btn-primary" type="button" onclick="backtourl();"><span class="glyphicon glyphicon-search"></span></button>
- </div>
- </div>
- </h3>
- </div>
- <div class="shopContent clearfix">
- <div class="fL">
- <select class="form-control" id="statuschange">
- <option value="0">交易状态</option>
- <option value="0">全部订单</option>
- <option value="1" <!-- if isset({{status}}) && {{status}} == 1 -->selected="selected"<!-- endif -->>交易成功</option>
- <option value="2" <!-- if isset({{status}}) && {{status}} == 2 -->selected="selected"<!-- endif -->>交易失败</option>
- </select>
- </div>
- </div>
- <div class="tableContent clearfix">
- <table class="table table-hover">
- <thead>
- <tr>
- <th>订单号</th>
- <th>用户名</th>
- <th>邮箱</th>
- <th>手机号</th>
- <th>课程</th>
- <th>价格(元)</th>
- <th>交易状态</th>
- <th>交易时间</th>
- </tr>
- </thead>
- <!-- if isset({{orderlist}}) && !empty({{orderlist}}) -->
- <!-- loop orderlist -->
- <tr>
- <td>{{orderlist' value.trade_sn}}</td>
- <td>{{orderlist' value.username}}</td>
- <td>{{orderlist' value.useremail}}</td>
- <td>{{orderlist' value.mobile}}</td>
- <td>{{orderlist' value.classname}}</td>
- <td>¥{{orderlist' value.price}}</td>
- <!-- if ({{orderlist' value.status}} == 1) -->
- <td class="text-success">交易成功</td>
- <!-- else -->
- <td class="text-danger">交易失败</td>
- <!-- endif -->
- <td>{{orderlist' value.createtime}}</td>
- </tr>
- <!-- endloop -->
- <!-- endif -->
- </table>
- </div>
- <nav style="padding-top: 10px;padding-left: 10px">
- {{pager}}
- </nav>
- </div>
- </div>
- <script>
- function backtourl(){
- if($('#search').val() == ''){
- alert('搜索框不能为空');
- }else{
- window.location.href = '{{rootUrl}}m/orderinfo/result/'+ $('#search').val();
- }
- }
- $(function(){
- $('#statuschange').change(function(){
- var search = $('#search').val();
- if($(this).val() == 0 && search != ''){
- window.location.href = '{{rootUrl}}m/orderinfo/result/'+ search;
- }else if($(this).val() == 0 && search == ''){
- window.location.href = '{{rootUrl}}m/orderlist';
- }else if($(this).val() != 0 && search == ''){
- window.location.href = '{{rootUrl}}m/orderlist/status/'+$(this).val();
- }else if($(this).val() != 0 && search != '') {
- window.location.href = '{{rootUrl}}m/orderinfo/status/' + $(this).val() + '/result/' + search;
- }
- })
- })
- </script>
- </body>
- </html>
|