From 4a88d4327044b7e20a8a0bb7fe30d1c9522a4d29 Mon Sep 17 00:00:00 2001 From: liuyu <33367671@qq.com> Date: Wed, 3 Aug 2022 11:47:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=B5=8C=E5=A5=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- control/index.php | 44 ++ view/templates/index/after_sale_list.html | 141 +++++++ view/templates/index/home.html | 633 +++++++++++----------------- view/templates/index/home2.html | 420 ++++++++++++++++++ view/templates/index/order_list.html | 351 ++++++--------- view/templates/index/order_list2.html | 237 +++++++++++ view/templates/index/wait_deliver_list.html | 160 +++++++ 7 files changed, 1362 insertions(+), 624 deletions(-) create mode 100644 view/templates/index/after_sale_list.html create mode 100644 view/templates/index/home2.html create mode 100644 view/templates/index/order_list2.html create mode 100644 view/templates/index/wait_deliver_list.html diff --git a/control/index.php b/control/index.php index 036dcb0..2c49534 100644 --- a/control/index.php +++ b/control/index.php @@ -33,6 +33,50 @@ class index extends publicBase { $this->ajax_json(true, 'succ', $list); } + public function ajax_get_order_list() { + $shopinfo = $this->get_shopinfo(); + + $page = $this->get('page')+0; + $pagesize = $this->get('limit')+0; + + $obj = new mOrder(); + $list = $obj->getOrderList($shopinfo['uid'], $shopinfo['id'], 0, 0, $page, $pagesize); + if (empty($list)) $this->ajax_json(false, 'empty list'); + + $goods_ids = array_unique(array_column($list, 'goods_id')); + + $gobj = new mGoods(); + $goods_list = $gobj->getGoodsByGoodsids($goods_ids); + if (empty($goods_list)) return true; + + $goodsid2skuid2info = array(); + foreach ($goods_list as $goods) { + $goodsid2skuid2info[$goods['goods_id']][$goods['sku_id']] = $goods; + } + + $nlist = array(); + foreach ($list as $info) { + + $ninfo = array(); + $ninfo['order_sn'] = $info['order_sn']; + $ninfo['pay_time'] = $info['pay_time']; + $ninfo['pay_amount'] = $info['pay_amount']; + $ninfo['order_status_desc'] = $GLOBALS['order_status'][$info['order_status']]; + $ninfo['refund_status_desc'] = $GLOBALS['refund_status'][$info['refund_status']]; + $ninfo['goods_name'] = $goodsid2skuid2info[$info['goods_id']][$info['sku_id']]['goods_name'].' '.$goodsid2skuid2info[$info['goods_id']][$info['sku_id']]['sku_name']; + $ninfo['goods_id'] = $info['goods_id']; + $ninfo['sku_id'] = $info['sku_id']; + $ninfo['is_wait_deliver_goods'] = $info['order_status']==ORDER_STATUS_WAIT_DELIVER_GOODS ? true : false; + $ninfo['is_refund'] = $info['refund_status']==REFUND_STATUS_NO_AFTER_SALES ? false : true; + + $nlist['data'][] = $ninfo; + } + + $nlist['total'] = $obj->getOrdersCount($shopinfo['uid'], $shopinfo['id'])+0; + + $this->ajax_json(true, 'succ', $nlist); + } + public function order_list() { $url = '/index/order_list'; diff --git a/view/templates/index/after_sale_list.html b/view/templates/index/after_sale_list.html new file mode 100644 index 0000000..158df39 --- /dev/null +++ b/view/templates/index/after_sale_list.html @@ -0,0 +1,141 @@ + + + + + + + + + 首页 + + + + + + {literal} + + {/literal} + + +
+ {include file="include/admin_header.html"} + {include file="include/admin_leftmenu.html"} +
+
+
+
+
售后监控/
+
售后列表
+
导出列表
+
+
+
+
+ +
+
+ + +{literal} + +{/literal} + + diff --git a/view/templates/index/home.html b/view/templates/index/home.html index ad5f67b..195c036 100644 --- a/view/templates/index/home.html +++ b/view/templates/index/home.html @@ -1,420 +1,257 @@ - - - - - - - + + - - - - 订单统计 - - - - {literal} - - - - {/literal} + + + + + 首页 + + + + + {literal} + + {/literal} - - - {include file="include/header.html"} - - +
+ {include file="include/admin_header.html"} + {include file="include/admin_leftmenu.html"} +
+
+
+
+
今日动态
+
+ +
发货动态
+ + +
+
+
催发订单:
+
{$today_data.urge_order_count}
+
+
+ +
+
倒计时订单:
+
{$today_data.countdown_order_count}
+
+
+ -
-
- +
+
待发货订单:
+
{$today_data.wait_deliver_goods_count}
+
+
+ +
+ +
售后动态
+ +
+
+
平台介入中:
+
{$today_data.platform_processing_count}
+
+
+ -
-
-
首次使用该软件,同步历史订单可能需要一段时间,请耐心等待
-
待发货订单数:{$wait_deliver_goods_count}
-
退款订单数:{$refund_count}
+
+
待售后订单:
+
{$today_data.wait_after_sale_count}
+
-
+ +
- -
- - - +
+
+
+
+
    +
  • 销售额
  • +
  • 退货订单数
  • +
+ +
    +
  • 本周
  • +
  • 本月
  • +
  • 全年
  • +
+
+
+
+
+
- +
+
+
+
催发货订单(总)  
+
{$total_data.total_urge_order_count} 单
+
日增长:+0.61%
+
周减少:-0.61%
+
这些顾客在催促发货咯
+
+
+
+
+
倒计时订单(总)  
+
{$total_data.total_countdown_order_count} 单
+
日增长:+0.61%
+
周减少:-0.61%
+
这些订单还有12h超时!
+
+
+
+
+
待发货订单(总)  
+
{$total_data.total_wait_deliver_goods_count} 单
+
日增长:+0.61%
+
周减少:-0.61%
+
有新增的订单啦
+
+
+ +
+
+
平台介入中订单(总)  
+
{$total_data.total_platform_processing_count} 单
+
日增长:+0.61%
+
周减少:-0.61%
+
这些订单官方客服已介入
+
+
+ +
+
+
待售后订单(总)  
+
{$total_data.total_wait_after_sale_count} 单
+
日增长:+0.61%
+
周减少:-0.61%
+
这些顾客想要退款
+
+
- - - - - - {include file="include/footer.html"} - - {literal} - - {/literal} - - - - {literal} - + +{literal} + - - - - - - - {/literal} +{/literal} - - \ No newline at end of file + diff --git a/view/templates/index/home2.html b/view/templates/index/home2.html new file mode 100644 index 0000000..ad5f67b --- /dev/null +++ b/view/templates/index/home2.html @@ -0,0 +1,420 @@ + + + + + + + + + + + + + 订单统计 + + + + {literal} + + + + {/literal} + + + + + + {include file="include/header.html"} + + + + +
+
+ + +
+
+
首次使用该软件,同步历史订单可能需要一段时间,请耐心等待
+
待发货订单数:{$wait_deliver_goods_count}
+
退款订单数:{$refund_count}
+
+
+ + +
+
+ + + +
+ + +
+ + + + + + + {include file="include/footer.html"} + + {literal} + + {/literal} + + + + {literal} + + + + + + + + {/literal} + + + \ No newline at end of file diff --git a/view/templates/index/order_list.html b/view/templates/index/order_list.html index 796f718..fecd318 100644 --- a/view/templates/index/order_list.html +++ b/view/templates/index/order_list.html @@ -1,237 +1,136 @@ + - - - - - - + - - - - - - - - -{if $smarty.get.refund_status == $smarty.const.REFUND_STATUS_AFTER_SALE_ING}售后监控{/if}{if $smarty.get.order_status == $smarty.const.ORDER_STATUS_WAIT_DELIVER_GOODS}发货提醒{/if} - - - -{literal} - -{/literal} + + + + + 首页 + + + + + + {literal} + + {/literal} - - - {include file="include/header.html"} - - - - -
-
- - -
-
-
-
- {if $smarty.get.refund_status == $smarty.const.REFUND_STATUS_AFTER_SALE_ING}退款/投诉{/if}{if $smarty.get.order_status == $smarty.const.ORDER_STATUS_WAIT_DELIVER_GOODS}发货提醒{/if} -
-
    -
-
+
+ {include file="include/admin_header.html"} + {include file="include/admin_leftmenu.html"} +
+
+
+
+
订单列表/
+
订单列表
+
导出列表
- -{if $smarty.get.order_status == $smarty.const.ORDER_STATUS_WAIT_DELIVER_GOODS} -
- -
-{/if} - - -
- -
- -
- - - - - +
+
+
+ +
+
+ + {literal} - -{/literal} - -{include file="include/footer.html"} - -{literal} - -{/literal} - - - -{literal} - - - - + ,menuRight: function(){ + layer.open({ + type: 1 + ,title: '更多' + ,content: '
处理右侧面板的操作
' + ,area: ['260px', '100%'] + ,offset: 'rt' + ,anim: 5 + ,shadeClose: true + ,scrollbar: false + }); + } + }); + + var showTips = null; + table.render({ + elem: '#deliver_remind_list' + ,url:'/index/ajax_get_order_list' + ,toolbar: false + ,title: '用户数据表' + ,totalRow: false + ,className:'deliver_remind_list_table_class' + ,cols: [[ + {field:'goods_name', title:'商品名称', + templet: function(d){ + return ''+d.goods_name+''; + }} + ,{field:'order_sn', title:'订单号' + ,templet: function(d){ + return ''+ d.order_sn +' '; + }} + ,{field:'pay_time', title:'支付时间' + ,templet: function(d){ + return ''+d.pay_time+''; + }} + ,{field:'pay_amount', title:'支付金额(元)'} + ,{field:'order_status_desc', title:'订单状态' + ,templet: function(d){ + if(d.is_wait_deliver_goods == false) return ''+d.order_status_desc+''; + return ''+d.order_status_desc+''; + }} + ,{field:'refund_status_desc', title:'售后状态' + ,templet: function(d){ + if(d.sale_status == 1) return '退款中'; + if(d.sale_status == 2) return '退款成功'; + return '无售后'; + }} + ]] + ,page: true + ,response: { + statusCode: 200 //重新规定成功的状态码为 200,table 组件默认为 0 + } + ,parseData: function(res){ //将原始数据解析成 table 组件所规定的数据 + return { + "code": 200, //解析接口状态 + "msg": res.info, //解析提示文本 + "count": res.data.total, //解析数据长度 + "data": res.data.data //解析数据列表 + }; + }, + done: function(res, curr, count){ + var data = res.data; + for(var i=0; i -#__huaban_Container {font-family: 'helvetica neue', arial, sans-serif; position: absolute; padding-top: 37px; z-index: 100000002; top: 0; left: 0; background-color: transparent; opacity: 1;}#__huaban_Overlay {position: fixed; z-index: 9999; top: 0; right: 0; bottom: 0; left: 0; background-color: #f2f2f2; opacity: .95;}#__huaban_Control {position:relative; z-index: 100000; float: left; background-color: #fcf9f9; border: solid #ccc; border-width: 0 1px 1px 0; height: 200px; width: 200px; opacity: 1;}#__huaban_Control img {position: relative; padding: 0; display: block; margin: 82px auto 0; -ms-interpolation-mode: bicubic;}#__huaban_Control a {position: fixed; z-index: 10001; right: 0; top: 0; left: 0; height: 24px; padding: 12px 0 0; text-align: center; font-size: 14px; line-height: 1em; text-shadow: 0 1px #fff; color: #211922; font-weight: bold; text-decoration: none; background: #fff url(http://huaban.com/img/fullGradient07Normal.png) 0 0 repeat-x; border-bottom: 1px solid #ccc; -mox-box-shadow: 0 0 2px #d7d7d7; -webkit-box-shadow: 0 0 2px #d7d7d7;}#__huaban_Control a:hover {color: #fff; text-decoration: none; background-color: #1389e5; border-color: #1389e5; text-shadow: 0 -1px #46A0E6;}#__huaban_Control a:active {height: 23px; padding-top: 13px; background-color: #211922; border-color: #211922; background-image: url(http://huaban.com/img/fullGradient07Inverted.png); text-shadow: 0 -1px #211922;}.__huabanImagePreview {position: relative; padding: 0; margin: 0; float: left; background-color: #fff; border: solid #e7e7e7; border-width: 0 1px 1px 0; height: 200px; width: 200px; opacity: 1; z-index: 10002; text-align: center;}.__huabanImagePreview .__huabanVideoIcon {position:absolute;display:block;top:0;left:0;width:100%;height:100%;background:url(http://huaban.com/img/media_video.png) center center no-repeat;}.__huabanImagePreview .__huabanImg {border: none; height: 200px; width: 200px; opacity: 1; padding: 0;}.__huabanImagePreview .__huabanImg a {margin: 0; padding: 0; position: absolute; top: 0; bottom: 0; right: 0; left: 0; display: block; text-align: center; z-index: 1;}.__huabanImagePreview .__huabanImg a:hover {background-color: #fcf9f9; border: none;}.__huabanImagePreview .__huabanImg .ImageToPin {max-height: 200px; max-width: 200px; width: auto !important; height: auto !important;}.__huabanImagePreview img.__huaban_PinIt {border: none; position: absolute; top: 82px; left: 42px; display: none; padding: 0; background-color: transparent; z-index: 100;}.__huabanImagePreview img.__huaban_vidind {border: none; position: absolute; top: 75px; left: 75px; padding: 0; background-color: transparent; z-index: 99;}.__huabanDimensions { color: #000; position: relative; margin-top: 180px; text-align: center; font-size: 10px; z-index:10003; display: inline-block; background: white; border-radius: 4px; padding: 0 2px;}#__huaban_Button { display: block; position: absolute; z-index: 999999999; color: #211922; background: #fff; text-shadow: 0 1px #eaeaea; border-radius: 5px; box-shadow: 0 0 2px #555; font: 12px/1 arial; text-align: center; padding: 5px 8px; cursor: pointer; }#__huaban_Button:hover { background-image: -webkit-linear-gradient(top, #fefeff, #efefef); background-image: -moz-linear-gradient(top, #fefeff, #efefef); }.__huaban_Button_share {background: url(http://huaban.com/img/sharebutton.png) no-repeat !important; text-indent: -9999px; width: 70px;} - + {/literal} - \ No newline at end of file + diff --git a/view/templates/index/order_list2.html b/view/templates/index/order_list2.html new file mode 100644 index 0000000..796f718 --- /dev/null +++ b/view/templates/index/order_list2.html @@ -0,0 +1,237 @@ + + + + + + + + + + + + + + + + +{if $smarty.get.refund_status == $smarty.const.REFUND_STATUS_AFTER_SALE_ING}售后监控{/if}{if $smarty.get.order_status == $smarty.const.ORDER_STATUS_WAIT_DELIVER_GOODS}发货提醒{/if} + + + +{literal} + +{/literal} + + + + + {include file="include/header.html"} + + + + +
+
+ + +
+
+
+
+ {if $smarty.get.refund_status == $smarty.const.REFUND_STATUS_AFTER_SALE_ING}退款/投诉{/if}{if $smarty.get.order_status == $smarty.const.ORDER_STATUS_WAIT_DELIVER_GOODS}发货提醒{/if} +
+
    +
+
+
+ +{if $smarty.get.order_status == $smarty.const.ORDER_STATUS_WAIT_DELIVER_GOODS} +
+ +
+{/if} + + +
+ +
+ +
+ + + + + +{literal} + +{/literal} + +{include file="include/footer.html"} + +{literal} + +{/literal} + + + +{literal} + + + + + + + +{/literal} + + \ No newline at end of file diff --git a/view/templates/index/wait_deliver_list.html b/view/templates/index/wait_deliver_list.html new file mode 100644 index 0000000..c725e00 --- /dev/null +++ b/view/templates/index/wait_deliver_list.html @@ -0,0 +1,160 @@ + + + + + + + + + 首页 + + + + + + {literal} + + {/literal} + + +
+ {include file="include/admin_header.html"} + {include file="include/admin_leftmenu.html"} +
+
+
+
+
发货提醒/
+
发货列表
+
导出列表
+
+
+
+
+ +
+
+ + +{literal} + +{/literal} + +