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 @@ 我的地址 我的收藏 + + 我的售后 退出登录