Commit 5691d711 by 杨树贤

分类返回图片

parent 16fd48a8
...@@ -51,6 +51,7 @@ class ClassService ...@@ -51,6 +51,7 @@ class ClassService
if (empty($secondClass['class_name_en'])) { if (empty($secondClass['class_name_en'])) {
continue; continue;
} }
$topFields[$key]['img'] = \Arr::get(config('field.top_class_img_mapping'), $key);
$topFields[$key]['children'][] = $secondClass; $topFields[$key]['children'][] = $secondClass;
} }
} }
......
...@@ -15,5 +15,10 @@ return [ ...@@ -15,5 +15,10 @@ return [
'Actives' => [13396, 13782, 13359, 13287, 13482, 13488], 'Actives' => [13396, 13782, 13359, 13287, 13482, 13488],
'Passives' => [13693, 13799, 13706, 13586, 13626, 13883], 'Passives' => [13693, 13799, 13706, 13586, 13626, 13883],
'Modules & Devices & Products' => [13550, 13449, 13821, 13734, 13757, 13762], 'Modules & Devices & Products' => [13550, 13449, 13821, 13734, 13757, 13762],
],
'top_class_img_mapping' => [
'Actives' => 'https://img.ichunt.com/images/cms/202009/15/6714a6cee89c8a258a9b8ed2642131ba.png',
'Passives' => 'https://img.ichunt.com/images/cms/202009/15/2e95ec65caf11787fa13ac60f90bf2f2.png',
'Modules & Devices & Products' => 'https://img.ichunt.com/images/cms/202009/15/37b1c3bb9823c5303cc22962695d2e58.jpg',
] ]
]; ];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment