From 5b503d9038236288cf0a73e7cdb55c2f1df05276 Mon Sep 17 00:00:00 2001 From: pushuo <229102104@qq.com> Date: Wed, 17 Aug 2022 11:11:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=94=AE=E5=90=8E=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beike/Shop/Http/Resources/RmaDetail.php | 5 ++++- themes/default/account/account.blade.php | 2 +- themes/default/account/rmas/index.blade.php | 7 ++++--- themes/default/account/rmas/info.blade.php | 2 +- themes/default/components/account/sidebar.blade.php | 2 ++ 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/beike/Shop/Http/Resources/RmaDetail.php b/beike/Shop/Http/Resources/RmaDetail.php index 52eb182d..ada5c4ae 100644 --- a/beike/Shop/Http/Resources/RmaDetail.php +++ b/beike/Shop/Http/Resources/RmaDetail.php @@ -11,18 +11,21 @@ namespace Beike\Shop\Http\Resources; +use Beike\Repositories\RmaRepo; use Illuminate\Http\Resources\Json\JsonResource; class RmaDetail extends JsonResource { public function toArray($request): array { + $types = RmaRepo::getTypes(); + return [ 'id' => $this->id, 'order_product_id' => $this->order_product_id, 'quantity' => $this->quantity, 'opened' => $this->opened, - 'type' => $this->type, + 'type' => $types[$this->type], 'comment' => $this->comment, 'status' => $this->status, 'created_at' => time_format($this->created_at), diff --git a/themes/default/account/account.blade.php b/themes/default/account/account.blade.php index 5e195e5a..93d80a8f 100644 --- a/themes/default/account/account.blade.php +++ b/themes/default/account/account.blade.php @@ -54,7 +54,7 @@ class="text-muted">待发货 待收货 - 售后
diff --git a/themes/default/account/rmas/index.blade.php b/themes/default/account/rmas/index.blade.php index c667a2ad..5c5d77f9 100644 --- a/themes/default/account/rmas/index.blade.php +++ b/themes/default/account/rmas/index.blade.php @@ -14,7 +14,6 @@
-
diff --git a/themes/default/components/account/sidebar.blade.php b/themes/default/components/account/sidebar.blade.php index f5bed0a5..bf29da75 100644 --- a/themes/default/components/account/sidebar.blade.php +++ b/themes/default/components/account/sidebar.blade.php @@ -16,6 +16,8 @@ 我的地址 我的收藏 + + 我的售后 退出登录