From 62f4d3c71ef333af9a7ab7dd5bedf4330d1e1f67 Mon Sep 17 00:00:00 2001
From: liuyu <33367671@qq.com>
Date: Wed, 3 Aug 2022 11:54:00 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
control/index.php | 1 +
view/templates/index/order_list.html | 9 +++++----
2 files changed, 6 insertions(+), 4 deletions(-)
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