diff --git a/control/index.php b/control/index.php
index 2c49534..aa039b4 100644
--- a/control/index.php
+++ b/control/index.php
@@ -68,6 +68,7 @@ class index extends publicBase {
$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;
+ $ninfo['is_refund_succ'] = $info['refund_status']==REFUND_STATUS_SUCC ? true : false;
$nlist['data'][] = $ninfo;
}
diff --git a/view/templates/index/order_list.html b/view/templates/index/order_list.html
index fecd318..c1fc179 100644
--- a/view/templates/index/order_list.html
+++ b/view/templates/index/order_list.html
@@ -94,11 +94,12 @@ layui.use(['element', 'layer', 'util', 'table'], function(){
if(d.is_wait_deliver_goods == false) return ''+d.order_status_desc+'';
return ''+d.order_status_desc+'';
}}
- ,{field:'refund_status_desc', title:'售后状态'
+ ,{field:'refund_status_desc', title:'退款状态'
,templet: function(d){
- if(d.sale_status == 1) return '退款中';
- if(d.sale_status == 2) return '退款成功';
- return '无售后';
+ if(d.is_refund == false) return ''+d.refund_status_desc+'';
+ if(d.is_refund_succ == true) return ''+d.refund_status_desc+'';
+ return ''+d.refund_status_desc+'';
+
}}
]]
,page: true