123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311 |
- {include file="public/layout" /}
-
- <body class="bodystyle" style="cursor: default; -moz-user-select: inherit;">
- <div id="append_parent"></div>
- <div id="ajaxwaitid"></div>
- {include file="order/left" /}
- <div class="page" style="min-width:auto;margin-left:100px;padding-bottom: 0;">
- <div class="flexigrid flexigrid-xin">
- <div class="header-bar">
- <div class="more">
- <div class="search">
- <div class="content">
- <form id="postForm" action="{:url('Member/article_index')}" method="get" onsubmit="layer_loading('正在处理');" style="display: unset;">
- {$searchform.hidden|default=''}
- <div class="ey-form-item"><label class="users-form-item-label">订单状态:</label>
- <div class="users-form-item-content">
- <div class="users-select">
- <div tabindex="0" class="users-select-selection">
- <div class="">
- <select name="order_status">
- <option value="1" {eq name="$Request.param.order_status" value="1"}selected{/eq}>已付款</option>
- <option value="9" {eq name="$Request.param.order_status" value="9"}selected{/eq}>未付款</option>
- <option value="" {if condition="!$Request.param.order_status"}selected{/if}>全部</option>
- </select>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <div class="ey-form-item"><label class="users-form-item-label">关键词:</label>
- <div class="users-form-item-content">
- <div class="users-select">
- <div tabindex="0" class="users-select-selection">
- <div class="sDiv2">
- <input type="text" size="50" name="keywords" value="{$Request.param.keywords}" class="qsbox" style="width: 170px;" placeholder="订单号或用户名">
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <div class="ey-form-item"><label class="users-form-item-label">支付方式:</label>
- <div class="users-form-item-content">
- <div class="users-select">
- <div tabindex="0" class="users-select-selection">
- <div class="">
- <select name="pay_name" id="pay_name">
- <option value="" {if condition="!$Request.param.pay_name"}selected{/if}>全部</option>
- <option value="balance" {eq name="$Request.param.pay_name" value="balance"}selected{/eq}>余额支付</option>
- <option value="wechat" {eq name="$Request.param.pay_name" value="wechat"}selected{/eq}>微信支付</option>
- <option value="alipay" {eq name="$Request.param.pay_name" value="alipay"}selected{/eq}>支付宝支付</option>
- </select>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <div class="ey-form-item"><label class="users-form-item-label">下单时间:</label>
- <div class="users-form-item-content">
- <div class="users-select">
- <div tabindex="0" class="users-select-selection">
- <div class="sDiv2">
- <input type="text" name="add_time_begin" id="add_time_begin" autocomplete="off" value="{$Request.param.add_time_begin}" class="qsbox" placeholder="起始日期">
- </div>
- 至
- <div class="sDiv2">
- <input type="text" name="add_time_end" id="add_time_end" autocomplete="off" value="{$Request.param.add_time_end}" class="qsbox" placeholder="结束日期">
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <div class="ey-form-item">
- <div class="users-form-item-content">
- <span class="bt-xin" onclick="OrderQuery();">查询</span>
- <span class="bt-xin-no" onclick="OrderQuery('reset');">重置</span>
- <div class="fbutton">
- <a href="javascript:void(0);" onclick="OrderExcelExport(this);" data-url="{:url('Order/ajax_order_excel_export')}" class="bt-xin-xia"><i class="iconfont e-xiazai"></i>导出</a>
- </div>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
-
-
- <div class="page" style="min-width:auto;margin-left:100px;">
- <div class="flexigrid flexigrid-xin">
- <div class="tableDiv " style="height: auto;">
- <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
- <table cellspacing="0" cellpadding="0" style="width: 100%">
- <thead>
- <tr>
- <th abbr="article_title" axis="col3" class="w200">
- <div class="">订单号</div>
- </th>
- <th abbr="article_time" axis="col6" class="">
- <div class="">文章名称</div>
- </th>
- <th abbr="article_time" axis="col6" class="w160">
- <div class="">订单金额</div>
- </th>
- <th abbr="article_time" axis="col6" class="w160">
- <div class="">用户</div>
- </th>
- <th abbr="article_time" axis="col6" class="w160">
- <div class="tc">下单时间</div>
- </th>
-
- <th abbr="article_time" axis="col6" class="w100">
- <div class="tc">订单状态</div>
- </th>
- <th axis="col1" class="w100">
- <div class="tc">操作</div>
- </th>
- </tr>
- </thead>
- <tbody class="no-border">
- {empty name="list"}
- <tr>
- <td class="no-data" align="center" axis="col0" colspan="50">
- <div class="">
- <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
- </div>
- </td>
- </tr>
- {else/}
- {volist name="list" id="vo"}
- <tr>
- <td >
- <div class="">
- <!-- 此处判断余额支付,微信支付,支付宝支付 -->
- {if condition='$vo.pay_name == "wechat"'}
- <i class="iconfont e-weixinzhifu zhifu"></i>
- {elseif condition='$vo.pay_name == "alipay"'/}
- <i class="iconfont e-zhifubaozhifu zhifu"></i>
- {else /}
- <i class="iconfont e-yuezhifu zhifu"></i>
- {/if}
- {$vo.order_code}
- </div>
- </td>
-
- <td> <div class=""> <a href="{:url('Ajax/toHomeView', ['aid'=>$vo['product_id']])}" target="_blank">{$vo.product_name}</a> </div> </td>
-
- <td> <div class="red"> ¥{$vo.order_amount} </div> </td>
-
- <td class="sort">
- <div class="d-flex" style=" padding-left: 10px;">
- <img id="img_head_pic" style="margin-right: 5px;float: unset;border: 1px solid #e9edef;width: 24px;height: 24px;border-radius: 50%;" src="{$vo.head_pic|get_head_pic=###,false,$vo['sex']}" />
- <a href="javascript:void(0);" data-href="{:url('Member/users_edit',array('id'=>$vo['users_id'],'iframe'=>1))}" onclick="openFullframe(this, '会员资料','100%','100%');" class="l-height-24">{$vo.username}</a>
- </div>
- </td>
-
- <td> <div class="tc"> {$vo.add_time|MyDate='Y-m-d H:i:s',###} </div> </td>
-
- <td> <div class="tc"> {eq name="$vo.order_status" value="0"}未付款{else/}已付款{/eq} </div> </td>
-
- <td>
- <div class="tc">
- <a class="btn blue" href="JavaScript:void(0);" data-url="{:url('Member/article_order_details',array('order_id'=>$vo['order_id']))}" onclick="OpenOrderDetails(this);">详情</a>
- </div>
- </td>
- </tr>
- {/volist}
- {/empty}
- </tbody>
- </table>
- </div>
- <div class="iDiv" style="display: none;"></div>
- </div>
-
- <div class="tDiv"> <div class="tDiv2"> {include file="public/page" /} </div> <div style="clear:both"></div> </div>
- </div>
- </div>
-
- <script type="text/javascript">
- $(function() {
- $('input[name*=ids]').click(function() {
- if ($('input[name*=ids]').length == $('input[name*=ids]:checked').length) {
- $('.checkAll').prop('checked','checked');
- } else {
- $('.checkAll').prop('checked', false);
- }
- });
- $('input[type=checkbox].checkAll').click(function(){
- $('input[type=checkbox]').prop('checked',this.checked);
- });
- });
-
- layui.use('laydate', function() {
- var laydate = layui.laydate;
- //执行一个laydate实例
- laydate.render({
- elem: '#add_time_begin' //指定元素
- });
- laydate.render({
- elem: '#add_time_end' //指定元素
- });
- });
-
- $(document).ready(function() {
- // 表格行点击选中切换
- $('#flexigrid > table>tbody >tr').click(function() {
- $(this).toggleClass('trSelected');
- });
- });
-
- // 订单查询
- function OrderQuery(isReset) {
- if (isReset && 'reset' == isReset) {
- window.location.href = "{:url('Member/article_index', ['order_status'=>1])}";
- } else {
- $('#postForm').submit();
- }
- }
-
- // AJAX调用下载
- function OrderExcelExport(obj) {
- layer_loading('订单导出中');
- $.ajax({
- type: 'post',
- url : $(obj).attr('data-url'),
- data: {
- _ajax: 1,
- // 导出类型,文章订单固定值5
- export_type: 5,
- // 搜索条件信息,可为空
- pay_name: "{$Request.param.pay_name}",
- keywords: "{$Request.param.keywords}",
- order_status: "{$Request.param.order_status}",
- end_time: "{$Request.param.add_time_end}",
- start_time: "{$Request.param.add_time_begin}"
- },
- dataType: 'json',
- success: function(res) {
- layer.closeAll();
- if (1 == res.code) {
- window.location.href = res.url;
- } else {
- showErrorAlert(res.msg);
- }
- },
- error: function(e) {
- layer.closeAll();
- showErrorAlert(e.responseText);
- }
- });
- }
-
- // 打开订单详情
- function OpenOrderDetails(obj) {
- var url = $(obj).attr('data-url');
-
- // iframe窗
- var iframes = layer.open({
- type: 2,
- title: '订单详情',
- fixed: true, //不固定
- shadeClose: false,
- shade: layer_shade,
- area: ['100%', '100%'],
- content: url
- });
- layer.full(iframes);
- }
-
- // 订单操作
- function OrderDel(order_id) {
- layer.confirm('确认删除订单?', {
- shade: layer_shade,
- area: ['480px', '190px'],
- move: false,
- title: '提示',
- btnAlign:'r',
- closeBtn: 3,
- btn: ['确定','取消'] ,//按钮
- success: function () {
- $(".layui-layer-content").css('text-align', 'left');
- }
- },function(){
- $.ajax({
- url: "{:url('Member/article_order_del')}",
- data: {del_id: order_id, _ajax: 1},
- type:'post',
- dataType:'json',
- success:function(res){
- layer.closeAll();
- if (1 == res.code) {
- layer.msg(res.msg, {time: 1500}, function(){
- window.location.reload();
- });
- } else {
- layer.msg(res.msg, {time: 1500});
- }
- }
- });
- },function(index){
- layer.closeAll(index);
- });
- }
- </script>
-
- {include file="public/footer" /}
|