You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
738 B
40 lines
738 B
<?php
|
|
|
|
|
|
namespace App\Admin\Extensions;
|
|
|
|
|
|
use App\Admin\Forms\RefundNote;
|
|
use Dcat\Admin\Grid\RowAction;
|
|
use Dcat\Admin\Layout\Content;
|
|
use Dcat\Admin\Widgets\Modal;
|
|
|
|
class OrderDetail extends RowAction
|
|
{
|
|
protected $title;
|
|
protected $order_id;
|
|
|
|
public function __construct($orderId,$title=null)
|
|
{
|
|
$this->order_id = $orderId;
|
|
parent::__construct($title);
|
|
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
// 实例化表单类并传递自定义参数
|
|
$detail = MyDetailPage::make(['order_id'=>$this->order_id]);
|
|
|
|
|
|
|
|
|
|
return Modal::make()
|
|
->xl()
|
|
->title('订单详情')
|
|
->body($detail)
|
|
->delay(300)
|
|
->button($this->title);
|
|
}
|
|
|
|
}
|