|
|
@ -45,14 +45,15 @@ class OrderController extends AdminController |
|
|
->display('查看') |
|
|
->display('查看') |
|
|
->modal('订单信息', function ($modal) { |
|
|
->modal('订单信息', function ($modal) { |
|
|
$info = $this->info ?? []; |
|
|
$info = $this->info ?? []; |
|
|
|
|
|
dd($info); |
|
|
$info = array_map(function($v) { |
|
|
$info = array_map(function($v) { |
|
|
/*if (isset($v['value'], $v['type'])) { |
|
|
|
|
|
|
|
|
if (isset($v['value'], $v['type'])) { |
|
|
if ($v['type'] == 'image') { |
|
|
if ($v['type'] == 'image') { |
|
|
return '<img data-action="preview-img" src="'.$v['value'].'" style="max-width:120px;max-height:200px;cursor:pointer" class="img img-thumbnail">'; |
|
|
return '<img data-action="preview-img" src="'.$v['value'].'" style="max-width:120px;max-height:200px;cursor:pointer" class="img img-thumbnail">'; |
|
|
} else { |
|
|
} else { |
|
|
return $v['value']; |
|
|
return $v['value']; |
|
|
} |
|
|
} |
|
|
}*/ |
|
|
|
|
|
|
|
|
} |
|
|
return $v; |
|
|
return $v; |
|
|
}, $info); |
|
|
}, $info); |
|
|
return Table::make([], $info); |
|
|
return Table::make([], $info); |
|
|
|