order.user
parent
ffcae9b66a
commit
d8a22a238c
|
|
@ -139,9 +139,9 @@ class OrderController extends AdminController
|
|||
return $tags->implode('name');
|
||||
})->label();
|
||||
$grid->column('user_id')->display(function () {
|
||||
$nickname = $this->userInfo->nickname ?? '---';
|
||||
$avatar = $this->userInfo->avatar ?? 'https://via.placeholder.com/45x45.png';
|
||||
$phone = $this->user->phone;
|
||||
$nickname = $this->userInfo?->nickname ?? '---';
|
||||
$avatar = $this->userInfo?->avatar ?? 'https://via.placeholder.com/45x45.png';
|
||||
$phone = $this->user?->phone;
|
||||
return <<<HTML
|
||||
<img src="{$avatar}" width="45" />
|
||||
<span class="label bg-danger">{$nickname}</span>
|
||||
|
|
|
|||
|
|
@ -46,9 +46,9 @@ class OrderController extends AdminController
|
|||
$grid->column('store.title', '门店');
|
||||
$grid->column('sn')->copyable();
|
||||
$grid->column('user_id')->display(function () {
|
||||
$nickname = $this->userInfo->nickname ?? '---';
|
||||
$avatar = $this->userInfo->avatar ?? 'https://via.placeholder.com/45x45.png';
|
||||
$phone = $this->user->phone;
|
||||
$nickname = $this->userInfo?->nickname ?? '---';
|
||||
$avatar = $this->userInfo?->avatar ?? 'https://via.placeholder.com/45x45.png';
|
||||
$phone = $this->user?->phone;
|
||||
return <<<HTML
|
||||
<img src="{$avatar}" width="45" />
|
||||
<span class="label bg-danger">{$nickname}</span>
|
||||
|
|
@ -56,9 +56,9 @@ class OrderController extends AdminController
|
|||
HTML;
|
||||
});
|
||||
$grid->column('inviter_id')->display(function () {
|
||||
$nickname = $this->inviterInfo->nickname ?? '---';
|
||||
$avatar = $this->inviterInfo->avatar ?? 'https://via.placeholder.com/45x45.png';
|
||||
$phone = $this->inviter->phone;
|
||||
$nickname = $this->inviterInfo?->nickname ?? '---';
|
||||
$avatar = $this->inviterInfo?->avatar ?? 'https://via.placeholder.com/45x45.png';
|
||||
$phone = $this->inviter?->phone;
|
||||
return <<<HTML
|
||||
<img src="{$avatar}" width="45" />
|
||||
<span class="label bg-danger">{$nickname}</span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue