123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
- <title><?php echo $shoname; ?></title>
- <link rel="shortcut icon" href="" />
-
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
- <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
-
- <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
- <!--[if lt IE 9]>
- <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
- <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
- <![endif]-->
- <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
- <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
- <script type="text/javascript">
- window.sysinfo = {
- <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '{$_W['uniacid']}',<?php } ?>
-
- <?php if( !empty($_W['acid']) ){ ?>'acid': '{$_W['acid']}',<?php } ?>
-
- <?php if (!empty($_W['openid']) ) { ?>'openid': '{$_W['openid']}',<?php } ?>
-
- <?php if( !empty($_W['uid']) ) { ?>'uid': '{$_W['uid']}',<?php } ?>
-
- 'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php }else{ ?>0<?php } ?>,
-
- 'siteroot': '{$_W['siteroot']}',
- 'siteurl': '{$_W['siteurl']}',
- 'attachurl': '{$_W['attachurl']}',
- 'attachurl_local': '{$_W['attachurl_local']}',
- 'attachurl_remote': '{$_W['attachurl_remote']}',
- 'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
- 'cookie' : {'pre': ''},
- 'account' : {:json_encode($_W['account'])},
- };
- </script>
- <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
- <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
- <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
- <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
- <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
- <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
- <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
- <link href="/static/css/snailfish.css" rel="stylesheet">
- <style>
- tbody tr td{
- position: relative;
- }
- tbody tr .icow-weibiaoti--{
- visibility: hidden;
- display: inline-block;
- color: #fff;
- height:18px;
- width:18px;
- background: #e0e0e0;
- text-align: center;
- line-height: 18px;
- vertical-align: middle;
- }
- tbody tr:hover .icow-weibiaoti--{
- visibility: visible;
- }
- tbody tr .icow-weibiaoti--.hidden{
- visibility: hidden !important;
- }
- .full .icow-weibiaoti--{
- margin-left:10px;
- }
- .full>span{
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- vertical-align: middle;
- align-items: center;
- }
- tbody tr .label{
- margin: 5px 0;
- }
- .goods_attribute a{
- cursor: pointer;
- }
- .newgoodsflag{
- width: 22px;height: 16px;
- background-color: #ff0000;
- color: #fff;
- text-align: center;
- position: absolute;
- bottom: 70px;
- left: 57px;
- font-size: 12px;
- }
- .a{cursor: pointer;}
- .img-40 {
- width: 40px;
- height: 40px;
- }
- .daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect{
- width:auto!important;
- }
- </style>
- </head>
- <body layadmin-themealias="default">
- <table id="demo" lay-filter="test"></table>
- <div class="layui-fluid">
- <div class="layui-card">
- <div class="layui-card-header layui-elem-quote">
- 当前位置:<span class="line-text">订单详情</span>
- </div>
-
- <div class="layui-card-body" style="padding:15px;">
-
- <ul class="layui-timeline">
- <?php foreach($history_list as $history){ ?>
- <li class="layui-timeline-item">
- <i class="layui-icon layui-timeline-axis"></i>
- <div class="layui-timeline-content layui-text">
- <h3 class="layui-timeline-title">
- <?php echo date("Y-m-d H:i:s", $history['date_added']); ?> <span class="layui-badge <?php if($history['order_status_id'] != 1){ ?>layui-bg-green<?php }else{ ?> layui-badge<?php } ?>"><?php echo $history['order_status_name']; ?></span>
- </h3>
- <p>
- <?php echo $history['comment']; ?>
- </p>
- </div>
- </li>
- <?php } ?>
- </ul>
- <form action="" class="layui-form" lay-filter="example" method="post" >
- <input type="hidden" name="id" value="{$item['order_id']}" />
- <input type="hidden" name="dispatchid" value="{$express_info['id']}" />
- <!---订单详情begin--->
-
- <div class="layui-row order-container">
- <div class="order-container-left" style="border-right: 1px solid #efefef">
- <div class="layui-row">
- <div class="layui-col-md-12">
- <ul class="">
- <li class="text"><span class="layui-col-sm">订单编号:</span><span class="text-default">{$item['order_num_alias']}</span></li>
- <?php if( !empty($coupon)){ ?>
- <li class="text">
- <span class="layui-col-sm">优惠券:</span>
- <span class="text-default">{$coupon['voucher_title']} </span>
- </li>
- <?php } ?>
-
- <li class="text">
- <span class="layui-col-sm">付款方式:</span>
- <span class="text-default">
- <?php if( $item['payment_code'] == ''){ ?>未付款<?php } ?>
- <?php if( $item['payment_code'] == 'yuer'){ ?>余额支付<?php } ?>
- <?php if( $item['payment_code'] == 'admin'){ ?>后台付款<?php } ?>
- <?php if( $item['payment_code'] == 'weixin'){ ?>微信支付<?php } ?>
- </span>
- </li>
- <li class="text">
- <span class="layui-col-sm">买 家:</span>
- <span class="text-default">
- <?php
- if (defined('ROLE') && ROLE == 'agenter' )
- {
- ?>
- {$member['username']}
- <?php }else{ ?>
- <a href="{:U('user/detail',array('id'=>$member['member_id']))}" target='_blank' class="text-primary">{$member['username']}</a>
-
- <?php if( !empty($member['content']) ){ ?>
- <font class="text-danger">({$member['content']})</font>
- <?php } ?>
-
- <?php } ?>
-
- </span>
- </li>
-
- <li class="text">
- <span class="layui-col-sm">配送方式:</span>
- <span class="text-default">
- <?php if( $item['delivery'] == 'pickup'){ ?>
- 自提
- <?php }elseif( $item['delivery'] == 'express' ){ ?>
- 快递<?php if( !empty($express_info['name'])){ ?>({$express_info['name']} <?php if( !empty($item['shipping_no'])){ ?>快递单号:{$item['shipping_no']}<?php } ?>)<?php } ?>
- <?php }elseif( $item['delivery'] == 'tuanz_send' ){ ?>
- 团长配送
- <?php }else{ ?>
- 其他
- <?php } ?>
- </span>
- </li>
- <li class="text">
- <span class="layui-col-sm">收 货 人:</span>
- <span class="text-default">
- {$item['shipping_name']} {$item['shipping_tel']}
- </span>
- </li>
-
-
-
- <?php if( $item['delivery'] == 'pickup'){ ?>
- <li class="text">
- <span class="layui-col-sm">取货地址:</span>
- <span class="text-default">
- {$item['shipping_address']}
- </span>
- </li>
- <?php } ?>
-
-
- <?php if( !empty($item['address_id'])){ ?>
- <li class="text">
- <span class="layui-col-sm">收货人:</span>
- <span class="text-default">
- {$province_info['name']}{$city_info['name']}{$area_info['name']} <?php if( $item['delivery'] == 'tuanz_send'){ ?>{$item['tuan_send_address']}<?php }else{ ?> {$item['shipping_address']}<?php } ?>, {$item['shipping_name']}, {$item['shipping_tel']}
- <a class='text-primary op js-clip' data-url="{$province_info['name']}{$city_info['name']}{$area_info['name']}<?php if( $item['delivery'] == 'tuanz_send'){ ?>{$item['tuan_send_address']}<?php }else{ ?> {$item['shipping_address']}<?php } ?>, {$item['shipping_name']}, {$item['shipping_tel']}">复制</a>
- </span>
- </li>
- <?php } ?>
- <?php if( !empty($item['comment'])){ ?>
- <li class="text"><span class="col-sm">买家备注:</span><span class="text-default">{$item['comment']}</span></li>
- <?php } ?>
- </ul>
- </div>
-
- <?php if( !empty($item['address_id'])){ ?>
- <div class="layui-col-md-12 ops">
- <a class="btn btn-primary" style="margin-left: 10px" data-toggle="ajaxModal" href="javascript:;" data-href="{:U('order/opchangeaddress', array('id' => $item['order_id']))}">修改订单收货信息</a>
- </div>
- <?php } ?>
-
- </div>
- </div>
- <div class=" order-container-static">
- <div class=" status">
- <span class="text"> 订单状态:</span>
- <?php if( $item['order_status_id'] == 1){ ?>
- <span class="text-warning font18">待发货</span>
- <?php } ?>
- <?php if( $item['order_status_id'] == 2){ ?>
- <span class="text-warning font18">已付款,拼团中</span>
- <?php } ?>
- <?php if( $item['order_status_id'] == 3){ ?>
- <span class="text-warning font18">待付款</span>
- <?php } ?>
- <?php if( $item['order_status_id'] == 4){ ?>
- <span class="text-warning font18">待收货</span>
- <?php } ?>
- <?php if( $item['order_status_id'] == 6){ ?>
- <span class="text-warning font18">已签收</span>
- <?php } ?>
- <?php if( $item['order_status_id'] == 14){ ?>
- <span class="text-warning font18">配送中</span>
- <?php } ?>
- <?php if( $item['order_status_id'] == 11){ ?>
- <span class="text-success font18">交易完成</span>
- <?php } ?>
- <?php if( $item['order_status_id'] == 7){ ?>
- <span class="text-success font18">已退款</span>
- <?php } ?>
- <?php if( $item['order_status_id'] == 5){ ?>
- <span class="text-default font18">已关闭</span>
- <?php } ?>
-
- <i>
- <?php if( $item['order_status_id'] == 3){ ?>
- ( 等待买家付款)
- <?php } ?>
-
- <?php if( $item['order_status_id'] == 1 ){ ?>(买家已经付款,请商家尽快发货)<?php } ?>
-
- <?php if( $item['order_status_id'] == 4){ ?>(商家已发货,等待买家收货并交易完成)<?php } ?>
- <?php if( $item['order_status_id'] == 14){ ?>(商家已发货,正在配送给团长途中)<?php } ?>
-
- <?php if( $item['order_status_id'] == 12){ ?>
- ( <span class="label label-default">已维权</span> <?php if( !empty($refund['refundtime'])){ ?>维权时间: {:date('Y-m-d H:i:s',$refund['refundtime'])}<?php } ?>)
-
- <?php } ?>
- </i>
- </div>
- <?php if( !empty($item['transaction_id'])){ ?>
- <div>
- <ul>
- <li class="text">交易单号:<span class="text-default">{$item['transaction_id']}</span></li>
- </ul>
- </div>
- <?php } ?>
- <?php if( !empty($item['expresssn']) && $item['delivery']=='express' && !empty($item['shipping_method'])){ ?>
- <div>
- <ul>
- <li class="text">快递公司:<span class="text-default"><?php if( empty($express_info['name'])){ ?>其他快递<?php }else{ ?>{$express_info['name']}<?php } ?></span></li>
- <li class="text">快递单号:<span class="text-default">{$item['shipping_no']}</span> <a class="text-primary op" data-toggle="ajaxModal" href="{:U('util/express', array('id' => $item['id'],'express'=>$item['express'],'expresssn'=>$item['expresssn']))}">查看物流</a></li>
- <li class="text">发货时间:<span class="text-default">{:date('Y-m-d H:i:s',$item['express_time'])}</span></li>
- </ul>
- </div>
- <?php } ?>
-
- <?php if( $item['delivery']=='pickup' ){ ?>
- <div>
- <ul>
- <?php if( !empty($item['express_time'])){ ?>
- <li class="text">发货时间:<span class="text-default">{:date('Y-m-d H:i:s',$item['express_time'])}</span></li>
- <?php } ?>
- <?php if( !empty($item['express_tuanz_time'])){ ?>
- <li class="text">团长接货时间:<span class="text-default">{:date('Y-m-d H:i:s',$item['express_tuanz_time'])}</span></li>
- <?php } ?>
- </ul>
- </div>
- <?php } ?>
-
-
-
- <div class="ops layui-col-md-12" style="padding: 0;">
-
- <?php
- $is_ops_show = true;
-
- if (defined('ROLE') && ROLE == 'agenter' )
- {
- $supper_info = get_agent_logininfo();
-
- if( $supper_info['type'] != 1)
- {
- $is_ops_show = false;
- }
- }
- ?>
- <?php if($is_ops_show){ ?>
- <!---操作开始-->
- <?php if( $item['order_status_id'] == 3){ ?>
- <!--未付款-->
- <?php
- $is_pay_show = true;
-
- if (defined('ROLE') && ROLE == 'agenter' )
- {
- $supper_info = json_decode(base64_decode($_GPC['__lionfish_comshop_agent']), true);
- $is_pay_show = false;
- }
- ?>
- <?php if($is_pay_show){ ?>
- <a class="btn btn-primary btn-xs deldom" data-toggle="ajaxPost" href="javascript:;" data-href="{:U('order/oppay', array('id' => $item['order_id']))}" data-confirm="确认此订单已付款吗?">确认付款</a>
- <?php } ?>
- <?php }elseif( $item['order_status_id'] == 1 ){ ?>
- <!--已付款-->
- <?php if( $item['order_status_id'] == 1 && $item['delivery'] == 'express' ){ ?>
- <!--快递 发货-->
-
- <a class="btn btn-primary btn-xs ajaxPost" data-toggle='ajaxModal' href="javascript:;" data-href="{:U('order/opsend', array('id' => $item['order_id']))}" data-confirm="确认此订单发货吗?">确认发货</a>
- <?php }elseif( $item['order_status_id'] == 1 && ($item['delivery'] == 'pickup' || $item['delivery'] == 'tuanz_send' ) ){ ?>
- <a class="btn btn-primary btn-xs deldom" href="javascript:;" data-confirm="确认此订单发货吗?" data-href="{:U('order/opsend_tuanz', array('id' => $item['order_id']))}">确认配送</a>
-
-
- <?php }else{ ?>
-
- <?php } ?>
-
- <?php }elseif( $item['order_status_id'] == 14 && ($item['delivery'] == 'pickup' || $item['delivery'] == 'tuanz_send') ){ ?>
- <a class="btn btn-primary btn-xs deldom" href="javascript:;" data-href="{:U('order/opsend_tuanz_over', array('id' => $item['order_id']))}" data-confirm="确认送达团长吗?">确认送达团长</a>
- <?php }elseif( $item['order_status_id'] == 14 && ($item['delivery'] == 'express') ){ ?>
- <a class="btn btn-primary btn-xs deldom" href="javascript:;" data-href="{:U('order/opreceive', array('id' => $item['order_id']))}" data-confirm="确认订单收货吗?">确认收货</a><br />
-
-
- <?php }elseif( $item['order_status_id'] == 4 || $item['order_status_id'] == 6 ){ ?>
- <!--已发货-->
- <?php if( $item['order_status_id'] == 4){ ?>
- <!--快递 取消发货-->
-
-
- <a class="btn btn-primary btn-xs deldom" href="javascript:;" data-href="{:U('order/opreceive', array('id' => $item['order_id']))}" data-confirm="确认订单收货吗?">确认收货</a><br />
-
- <?php if( $item['delivery'] == 'express'){ ?>
- <a class="text-primary" data-toggle="ajaxModal" href="javascript:;" data-href="{:U('order/opchangeexpress', array('id' => $item['order_id']))}">修改物流</a>
-
- <?php } ?>
-
- <?php }else{ ?>
-
- <a class="btn btn-primary btn-xs deldom" href="javascript:;" data-href="{:U('order/opfinish', array('id' => $item['order_id']))}" data-confirm="确认完成订单吗?">确认完成</a>
- <?php } ?>
- <?php }elseif( $item['order_status_id'] == 3 ){ ?>
- <?php } ?>
- <!---操作结束--->
- <?php } ?>
-
- <a class="text-primary" data-toggle="ajaxModal" href="javascript:;" data-href="{:U('order/opremarksaler', array('id' => $item['order_id']))}" >
- <?php if( !empty($item['remarksaler'])){ ?>查看备注
- <?php }else{ ?>
- 添加备注
- <?php } ?>
- </a>
-
-
- </div>
- <?php if( $item['order_status_id'] != 3){ ?>
- <div class="order-container-footer text col-md-12" style="border: none;padding: 0">
- <?php if( $item['order_status_id'] == 1){ ?>
- 友情提示:如果无法进行发货,请及时联系买家进行妥善处理;
- <?php } ?>
- <?php if( $item['order_status_id'] == 4){ ?>
- 友情提示:
- 请及时关注物流状态,确保买家及时收到商品;
- 如果买家未收到货物或有退换货请求,请及时联系买家妥善处理
- <?php } ?>
- <?php if( $item['order_status_id']==11){ ?>
- 友情提示:
- 交易成功,如买家有售后申请,请与买家进行协商,妥善处理
- <?php } ?>
- </div>
- <?php } ?>
- </div>
-
- </div>
- <!---订单详情end-->
-
- <h3 style="margin:15px 0px;">商品信息</h3>
- <table class="layui-table ">
- <thead>
- <tr class="trorder" style="background: #fff">
- <th class="" style="width: 75px;text-align: right;padding-right: 0">
- 商品标题
- </th>
- <th style="">
- </th>
- <th style="padding-left: 20px">规格、编号</th>
- <th style="text-align: left;padding-left: 20px">基数</th>
-
- <th style="text-align: center;">供应商</th>
- <th style="text-align: center;width: 130px">单价</th>
- <th style="text-align: center;width: 100px;">数量</th>
-
- <th style="text-align: center;width: 100px;">价格</th>
-
- </tr>
- </thead>
- <tbody>
- <?php $i =0; ?>
- <?php foreach( $order_goods as $goods ){ ?>
- <tr class="trorder" style="background: #fff">
- <td style="text-align: right;padding-right: 0">
- <img src="{:tomedia($goods['goods_images'])}" style='width:52px;height:52px;border:1px solid #efefef; padding:1px;' >
- </td>
- <td style="min-width: 300px">
- <a target="_blank" href="{:U('goods/edit', array('id' => $goods['goods_id']))}"title="查看" style="display: block;line-height: 22px;max-width: 250px;white-space: nowrap;
- overflow: hidden;text-overflow: ellipsis;">{$goods['name']}<?php if($goods['is_refund_state'] == 1 ){ ?>(退款)<?php } ?></a>
-
-
- </td>
- <td style="padding: 10px 20px">
- <p style="white-space:normal;">
- 规格:<?php if( !empty($goods['option_sku'])){ ?><span class="label label-primary" data-container="body" data-toggle="popover" data-placement="right" data-content="{$goods['option_sku']}">{$goods['option_sku']}</span><?php }else{ ?>无<?php } ?>
- </p>
- <p>
- 编码:<?php if( !empty($goods['model'])){ ?><span>{$goods['model']}</span><?php }else{ ?>无<?php } ?>
- </p>
-
- </td>
- <td style="padding: 10px 20px">
- 商品小计{$goods['total']}<br/>
- - 满减:{$goods['fullreduction_money']}<br/>
- - 优惠券:{$goods['voucher_credit']}<br/>
- = 基数<?php echo $goods['total'] -$goods['fullreduction_money']-$goods['voucher_credit']; ?>
-
- </td>
-
-
- <td style="text-align: center;">
- <span>{$goods['supply_name']}({$goods['supply_type']})</span>
- </td>
-
- <td style="text-align: center">
- <p>¥{:round($goods['price'],2)}
- <?php if( $goods['member_disc'] < 100){ ?>
- <span class="label label-primary">会员折扣:{$goods['member_disc']}%</span>
- <?php } ?>
- </p>
- </td>
- <td style="text-align: center">
- <p>{$goods['quantity']}个</p>
- </td>
- <td style="text-align: center">¥{:round($goods['price']*$goods['quantity'],2)}</td>
-
- </tr>
- <?php if($item['is_commission'] == 1 && !empty($goods['member_commission_list']) ){ ?>
- <tr class="tr-order-sn">
- <td colspan="10">
- 会员佣金:
- <?php foreach($goods['member_commission_list'] as $mb_val){ ?>
-
- 分销员:<?php echo $mb_val['username']; ?>(<?php echo $mb_val['level']; ?>级上线)
-
- 佣金比例:
- <?php if($mb_val['type'] == 1){ ?>
- <?php echo $mb_val['bili']; ?>%
- * 基数:{$goods['price']}
- * 数量:{$goods['quantity']}
- <?php }else{ ?>
- 固定佣金<?php echo $mb_val['bili']; ?>
- * 数量:{$goods['quantity']}
- <?php } ?>
- = 具体佣金:<?php echo $mb_val['money']; ?>元
- <?php
- $str_state = '';
- switch($mb_val['state'])
- {
- case 0: $str_state='待结算'; break;
- case 1: $str_state='已结算'; break;
- case 2: $str_state='订单退款'; break;
- }
- ?>(<?php echo $str_state; ?>)<br/>
- <?php } ?>
- </td>
- </tr>
- <?php } ?>
- <?php $i++; ?>
- <?php } ?>
- </tbody>
- <tfoot style="padding-top: 20px">
- <tr class="trorder">
- <td colspan="2" style="padding-left: 20px">
- </td>
-
- <td <?php if($item['is_commission'] == 1){ ?>colspan="8"<?php }else{ ?> colspan="7"<?php } ?> style="padding-right: 60px">
- <div class="price">
-
- <?php if( $item['is_free_shipping_fare'] == 1 ){ ?>
- <p><span class="price-inner">运费:</span>¥{$item['fare_shipping_free']}</p>
- <p><span class="price-inner">满{$item['man_e_money']}减运费:</span>-¥{$item['fare_shipping_free']}</p>
- <?php }else{ ?>
- <p><span class="price-inner">运费:</span>¥{$item['shipping_fare']}</p>
- <?php } ?>
-
- <p> <span class="price-inner">商品小计:</span><span style="font-weight: bold">¥{:round($item['total'],2)}</span></p>
-
- <?php if( $item['voucher_id']>0 ){ ?>
- <p><span class="price-inner">优惠券优惠:</span><span class="text-danger">-¥{$item['voucher_credit']}</span></p>
- <?php } ?>
- <?php if( $item['fullreduction_money']>0 ){ ?>
- <p><span class="price-inner">满减优惠:</span><span class="text-danger">-¥{$item['fullreduction_money']}</span></p>
- <?php } ?>
-
-
- <?php if( $item['score_for_money']>0 ){ ?>
- <p><span class="price-inner">积分抵扣:</span><span class="text-danger">-¥{$item['score_for_money']}</span></p>
- <?php } ?>
-
-
- <?php if( ($item['changedtotal'])!=0){ ?>
- <p>
- <span class="price-inner">卖家改价:</span>
- <span style='<?php if( 0<$item['changedtotal']){ ?>color:green<?php }else{ ?>color:red<?php } ?>'><?php if( 0<$item['changedtotal']){ ?>+<?php }else{ ?>-<?php } ?>¥{php echo number_format(abs($item['changedtotal']),2)}</span>
- </p>
- <?php } ?>
- <?php if( ($item['changedshipping_fare'])!=0){ ?>
- <p>
- <span class="price-inner">卖家改运费:</span>
- <span style='<?php if( 0<$item['changedshipping_fare']){ ?>color:green<?php }else{ ?>color:red<?php } ?>'><?php if( 0<$item['changedshipping_fare']){ ?>+<?php }else{ ?>-<?php } ?>¥{php echo abs($item['changedshipping_fare'])}</span>
- </p>
- <?php } ?>
- <?php
- $free_tongji = $item['total']+$item['shipping_fare']-$item['voucher_credit']-$item['fullreduction_money'] - $item['score_for_money'];
- if($free_tongji < 0){
- $free_tongji = 0;
- }
- ?>
- <p><span class="price-inner">实付款:</span><span style="font-size: 14px;font-weight: bold;color: #e4393c">¥{$free_tongji}</span></p>
- </div>
- </td>
- </tr>
- </tfoot>
- </table>
- </form>
- </div>
- </div>
- </div>
- <script src="/layuiadmin/layui/layui.js"></script>
- <script>
- layui.config({
- base: '/layuiadmin/' //静态资源所在路径
- }).extend({
- index: 'lib/index' //主入口模块
- }).use('index');
- </script>
- <script>
- //由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
- var layer = layui.layer;
- var $;
- layui.use(['jquery', 'layer','form'], function(){
- $ = layui.$;
- var form = layui.form;
-
-
- $('.deldom').click(function(){
- var s_url = $(this).attr('data-href');
- layer.confirm($(this).attr('data-confirm'), function(index){
- $.ajax({
- url:s_url,
- type:'post',
- dataType:'json',
- success:function(info){
-
- if(info.status == 0)
- {
- layer.msg(info.result.message,{icon: 1,time: 2000});
- }else if(info.status == 1){
- var go_url = location.href;
- if( info.result.hasOwnProperty("url") )
- {
- go_url = info.result.url;
- }
-
- layer.msg('操作成功',{time: 1000,
- end:function(){
- location.href = info.result.url;
- }
- });
- }
- }
- })
- });
- })
-
- $('.btn-operation').click(function(){
- var ids_arr = [];
- var obj = $(this);
- var s_toggle = $(this).attr('data-toggle');
- var s_url = $(this).attr('data-href');
-
-
- $("input[name=item_checkbox]").each(function() {
-
- if( $(this).prop('checked') )
- {
- ids_arr.push( $(this).val() );
- }
- })
- if(ids_arr.length < 1)
- {
- layer.msg('请选择要操作的内容');
- }else{
- var can_sub = true;
- if( s_toggle == 'batch-remove' )
- {
- can_sub = false;
-
- layer.confirm($(obj).attr('data-confirm'), function(index){
- $.ajax({
- url:s_url,
- type:'post',
- dataType:'json',
- data:{ids:ids_arr},
- success:function(info){
-
- if(info.status == 0)
- {
- layer.msg(info.result.message,{icon: 1,time: 2000});
- }else if(info.status == 1){
- var go_url = location.href;
- if( info.result.hasOwnProperty("url") )
- {
- go_url = info.result.url;
- }
-
- layer.msg('操作成功',{time: 1000,
- end:function(){
- location.href = info.result.url;
- }
- });
- }
- }
- })
- });
- }else{
- $.ajax({
- url:s_url,
- type:'post',
- dataType:'json',
- data:{ids:ids_arr},
- success:function(info){
-
- if(info.status == 0)
- {
- layer.msg(info.result.message,{icon: 1,time: 2000});
- }else if(info.status == 1){
- var go_url = location.href;
- if( info.result.hasOwnProperty("url") )
- {
- go_url = info.result.url;
- }
-
- layer.msg('操作成功',{time: 1000,
- end:function(){
- location.href = info.result.url;
- }
- });
- }
- }
- })
- }
- }
- })
- form.on('switch(restwsitch)', function(data){
-
- var s_url = $(this).attr('data-href')
-
- var rest = 1;
- if(data.elem.checked)
- {
- rest = 1;
- }else{
- rest = 0;
- }
-
- $.ajax({
- url:s_url,
- type:'post',
- dataType:'json',
- data:{rest:rest},
- success:function(info){
-
- if(info.status == 0)
- {
- layer.msg(info.result.message,{icon: 1,time: 2000});
- }else if(info.status == 1){
- var go_url = location.href;
- if( info.result.hasOwnProperty("url") )
- {
- go_url = info.result.url;
- }
-
- layer.msg('操作成功',{time: 1000,
- end:function(){
- location.href = info.result.url;
- }
- });
- }
- }
- })
- });
- form.on('switch(enablewsitch)', function(data){
-
- var s_url = $(this).attr('data-href')
-
- var enable = 1;
- if(data.elem.checked)
- {
- enable = 1;
- }else{
- enable = 0;
- }
-
- $.ajax({
- url:s_url,
- type:'post',
- dataType:'json',
- data:{enable:enable},
- success:function(info){
-
- if(info.status == 0)
- {
- layer.msg(info.result.message,{icon: 1,time: 2000});
- }else if(info.status == 1){
- var go_url = location.href;
- if( info.result.hasOwnProperty("url") )
- {
- go_url = info.result.url;
- }
-
- layer.msg('操作成功',{time: 1000,
- end:function(){
- location.href = info.result.url;
- }
- });
- }
- }
- })
- });
-
- form.on('switch(statewsitch)', function(data){
-
- var s_url = $(this).attr('data-href')
-
- var state = 1;
- if(data.elem.checked)
- {
- state = 1;
- }else{
- state = 0;
- }
-
- $.ajax({
- url:s_url,
- type:'post',
- dataType:'json',
- data:{state:state},
- success:function(info){
-
- if(info.status == 0)
- {
- layer.msg(info.result.message,{icon: 1,time: 2000});
- }else if(info.status == 1){
- var go_url = location.href;
- if( info.result.hasOwnProperty("url") )
- {
- go_url = info.result.url;
- }
-
- layer.msg('操作成功',{time: 1000,
- end:function(){
- location.href = info.result.url;
- }
- });
- }
- }
- })
- });
- form.on('checkbox(checkboxall)', function(data){
-
- if(data.elem.checked)
- {
- $("input[name=item_checkbox]").each(function() {
- $(this).prop("checked", true);
- });
- $("input[name=checkall]").each(function() {
- $(this).prop("checked", true);
- });
-
- }else{
- $("input[name=item_checkbox]").each(function() {
- $(this).prop("checked", false);
- });
- $("input[name=checkall]").each(function() {
- $(this).prop("checked", false);
- });
- }
-
- form.render('checkbox');
- });
-
- //监听提交
- form.on('submit(formDemo)', function(data){
-
- $.ajax({
- url: data.form.action,
- type: data.form.method,
- data: data.field,
- dataType:'json',
- success: function (info) {
-
- if(info.status == 0)
- {
- layer.msg(info.result.message,{icon: 1,time: 2000});
- }else if(info.status == 1){
- var go_url = location.href;
- if( info.result.hasOwnProperty("url") )
- {
- go_url = info.result.url;
- }
-
- layer.msg('操作成功',{time: 1000,
- end:function(){
- location.href = info.result.url;
- }
- });
- }
- }
- });
-
- return false;
- });
- })
- </script>
- <script>
- var ajax_url = "";
- $(function(){
- $("[data-toggle='ajaxModal']").click(function () {
- var s_url = $(this).attr('data-href');
- ajax_url = s_url;
- console.log(23);
- $.ajax({
- url:s_url,
- type:"get",
- success:function(shtml){
- $('#ajaxModal').html(shtml);
- $("#ajaxModal").modal();
- }
- })
- });
- $(document).delegate(".modal-footer .btn-primary","click",function(){
- var s_data = $('#ajaxModal form').serialize();
- $.ajax({
- url:ajax_url,
- type:'post',
- dataType:'json',
- data:s_data,
- success:function(info){
- if(info.status == 0)
- {
- layer.msg(info.result.message,{icon: 1,time: 2000});
- }else if(info.status == 1){
- var go_url = location.href;
- if( info.result.hasOwnProperty("url") )
- {
- go_url = info.result.url;
- }
-
- layer.msg('操作成功',{time: 1000,
- end:function(){
- location.href = info.result.url;
- }
- });
- }
- }
- })
- return false;
- })
-
- })
- </script>
- <div id="ajaxModal" class="modal fade" style="display: none;">
- </div>
- <script>
- //没有选中时间段不能导出
- $(function () {
- $('.btn-submit').click(function () {
- var e = $(this).data('export');
- if(e==1 ){
- if($('#keyword').val() !='' ){
- $('#export').val(1);
- $('#search').submit();
- }else if($('#searchtime').val()!=''){
- $('#export').val(1);
- $('#search').submit();
- }else{
- $('#export').val(1);
- $('#search').submit();
- return;
- }
- }else{
- $('#export').val(0);
- $('#search').submit();
- }
- })
- })
- </script>
- </body>
|