|
@@ -74,7 +74,7 @@ class ImportProductController extends AdminController
|
|
|
$images = json_decode($images);
|
|
|
// 限制最多显示2个缩略图
|
|
|
$dataImages = array_slice($images, 0, 1);
|
|
|
- return CommonHelper::displayImage($dataImages,100);
|
|
|
+ return CommonHelper::displayImage($dataImages,100,1024,2);
|
|
|
});
|
|
|
if ($lang == 'en') {
|
|
|
$grid->column('title_en');
|
|
@@ -162,14 +162,14 @@ class ImportProductController extends AdminController
|
|
|
})->unescape();
|
|
|
$show->field('cover')->as(function ($images) {
|
|
|
$images = json_decode($images);
|
|
|
- return CommonHelper::displayImage($images,150);
|
|
|
+ return CommonHelper::displayImage($images,150,1024,2);
|
|
|
})->unescape();
|
|
|
|
|
|
$show->field('en_detail')->as(function ($images) {
|
|
|
$images = json_decode($images);
|
|
|
$html = '<div style="text-align: center">';
|
|
|
foreach ($images as $key => $image) {
|
|
|
- $url = CommonHelper::ossUrl($image);
|
|
|
+ $url = CommonHelper::albumUrl($image);
|
|
|
$html .= '<img src="' . $url . '" style="max-width:90%;margin-bottom:10px">';
|
|
|
}
|
|
|
$html .= '</div>';
|
|
@@ -180,7 +180,7 @@ class ImportProductController extends AdminController
|
|
|
$images = json_decode($images);
|
|
|
$html = '<div style="text-align: center">';
|
|
|
foreach ($images as $key => $image) {
|
|
|
- $url = CommonHelper::ossUrl($image);
|
|
|
+ $url = CommonHelper::albumUrl($image);
|
|
|
$html .= '<img src="' . $url . '" style="max-width:90%;margin-bottom:10px">';
|
|
|
}
|
|
|
$html .= '</div>';
|
|
@@ -189,22 +189,22 @@ class ImportProductController extends AdminController
|
|
|
|
|
|
$show->field('video')->as(function ($items) {
|
|
|
$items = json_decode($items);
|
|
|
- return CommonHelper::displayVideo($items,'cover','video_src','150');
|
|
|
+ return CommonHelper::displayVideo($items,'cover','video_src','150',2);
|
|
|
})->unescape();
|
|
|
|
|
|
$show->field('poster')->as(function ($images) {
|
|
|
$images = json_decode($images);
|
|
|
- return CommonHelper::displayImage($images,150);
|
|
|
+ return CommonHelper::displayImage($images,150,1024,2);
|
|
|
})->unescape();
|
|
|
|
|
|
$show->field('cert')->as(function ($images) {
|
|
|
$images = json_decode($images);
|
|
|
- return CommonHelper::displayImage($images,150);
|
|
|
+ return CommonHelper::displayImage($images,150,1024,2);
|
|
|
})->unescape();
|
|
|
|
|
|
$show->field('cert')->as(function ($images) {
|
|
|
$images = json_decode($images);
|
|
|
- return CommonHelper::displayImage($images,150);
|
|
|
+ return CommonHelper::displayImage($images,150,1024,2);
|
|
|
})->unescape();
|
|
|
|
|
|
$show->field('pdf')->as(function ($items) {
|
|
@@ -216,7 +216,7 @@ class ImportProductController extends AdminController
|
|
|
foreach ($items as $item) {
|
|
|
$table .= '<tr>';
|
|
|
$table .= '<td style="vertical-align: middle !important;width: 20%">' . $item->pdf_title . '</td>'; // 商品名称
|
|
|
- $table .= '<td style="vertical-align: middle !important;"><a target="_blank" href="' . CommonHelper::ossUrl($item->pdf_src). '">查看</a></td>'; // 数量
|
|
|
+ $table .= '<td style="vertical-align: middle !important;"><a target="_blank" href="' . CommonHelper::albumUrl($item->pdf_src). '">查看</a></td>'; // 数量
|
|
|
$table .= '</tr>';
|
|
|
}
|
|
|
$table .= '</table>';
|