Browse Source

订单信息

master
李可松 4 years ago
parent
commit
48ecaf1f95
  1. 4
      app/AdminAgent/Controllers/OrderController.php
  2. 4
      app/AdminSupplier/Controllers/OrderController.php

4
app/AdminAgent/Controllers/OrderController.php

@ -46,13 +46,13 @@ class OrderController extends AdminController
->modal('订单信息', function ($modal) {
$info = $this->info ?? [];
$info = array_map(function($v) {
if (isset($v['value'], $v['type'])) {
/*if (isset($v['value'], $v['type'])) {
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">';
} else {
return $v['value'];
}
}
}*/
return $v;
}, $info);
return Table::make([], $info);

4
app/AdminSupplier/Controllers/OrderController.php

@ -49,13 +49,13 @@ class OrderController extends AdminController
->modal('订单信息', function ($modal) {
$info = $this->info ?? [];
$info = array_map(function($v) {
if (isset($v['value'], $v['type'])) {
/*if (isset($v['value'], $v['type'])) {
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">';
} else {
return $v['value'];
}
}
}*/
return $v;
}, $info);
return Table::make([], $info);

Loading…
Cancel
Save