diff --git a/public/themes/website/1/zh/demo/product.html b/public/themes/website/1/zh/demo/product.html index b7bdbd9..3f96356 100644 --- a/public/themes/website/1/zh/demo/product.html +++ b/public/themes/website/1/zh/demo/product.html @@ -1,1551 +1,1552 @@ - {php} - // var_dump($hc_content);exit; - // 基本信息 - $id = $hc_content['id'] ?? ''; - $category_id = $hc_content['category_id'] ?? ''; - $sub_category_ids = $hc_content['sub_category_ids'] ?? ''; - $module_id = $hc_content['module_id'] ?? ''; - $lang = $hc_content['lang'] ?? ''; - $main_id = $hc_content['main_id'] ?? ''; - $title = $hc_content['title'] ?? ''; - $sub_title = $hc_content['sub_title'] ?? ''; - $description = $hc_content['description'] ?? ''; - $content = $hc_content['content'] ?? ''; - $cover = $hc_content['cover'] ?? ''; - $hits = $hc_content['hits'] ?? ''; - $admin_id = $hc_content['admin_id'] ?? ''; - $author = $hc_content['author'] ?? ''; - $status = $hc_content['status'] ?? ''; - $check_status = $hc_content['check_status'] ?? ''; - $url = $hc_content['url'] ?? ''; - $publish_time = $hc_content['publish_time'] ?? ''; - $is_top = $hc_content['is_top'] ?? ''; - $top_time = $hc_content['top_time'] ?? ''; - $is_recommend = $hc_content['is_recommend'] ?? ''; - $sort = $hc_content['sort'] ?? ''; - $detail_tpl = $hc_content['detail_tpl'] ?? ''; - $seo_title = $hc_content['seo_title'] ?? ''; - $seo_keyword = $hc_content['seo_keyword'] ?? ''; - $seo_description = $hc_content['seo_description'] ?? ''; - $version = $hc_content['version'] ?? ''; - $show_version = $hc_content['show_version'] ?? ''; - $is_del = $hc_content['is_del'] ?? ''; - $del_user_id = $hc_content['del_user_id'] ?? ''; - $delete_time = $hc_content['delete_time'] ?? ''; - $create_time = $hc_content['create_time'] ?? ''; - $update_time = $hc_content['update_time'] ?? ''; - $tag = $hc_content['tag'] ?? []; +{php} +// var_dump($hc_content);exit; +// 基本信息 +$id = $hc_content['id'] ?? ''; +$category_id = $hc_content['category_id'] ?? ''; +$sub_category_ids = $hc_content['sub_category_ids'] ?? ''; +$module_id = $hc_content['module_id'] ?? ''; +$lang = $hc_content['lang'] ?? ''; +$main_id = $hc_content['main_id'] ?? ''; +$title = $hc_content['title'] ?? ''; +$sub_title = $hc_content['sub_title'] ?? ''; +$description = $hc_content['description'] ?? ''; +$content = $hc_content['content'] ?? ''; +$cover = $hc_content['cover'] ?? ''; +$hits = $hc_content['hits'] ?? ''; +$admin_id = $hc_content['admin_id'] ?? ''; +$author = $hc_content['author'] ?? ''; +$status = $hc_content['status'] ?? ''; +$check_status = $hc_content['check_status'] ?? ''; +$url = $hc_content['url'] ?? ''; +$publish_time = $hc_content['publish_time'] ?? ''; +$is_top = $hc_content['is_top'] ?? ''; +$top_time = $hc_content['top_time'] ?? ''; +$is_recommend = $hc_content['is_recommend'] ?? ''; +$sort = $hc_content['sort'] ?? ''; +$detail_tpl = $hc_content['detail_tpl'] ?? ''; +$seo_title = $hc_content['seo_title'] ?? ''; +$seo_keyword = $hc_content['seo_keyword'] ?? ''; +$seo_description = $hc_content['seo_description'] ?? ''; +$version = $hc_content['version'] ?? ''; +$show_version = $hc_content['show_version'] ?? ''; +$is_del = $hc_content['is_del'] ?? ''; +$del_user_id = $hc_content['del_user_id'] ?? ''; +$delete_time = $hc_content['delete_time'] ?? ''; +$create_time = $hc_content['create_time'] ?? ''; +$update_time = $hc_content['update_time'] ?? ''; +$tag = $hc_content['tag'] ?? []; - // 缩略图 - $thumbnail = (array)($hc_content['thumbnail'] ?? []); - $thumbnail_id = $thumbnail['id'] ?? ''; - $thumbnail_name = $thumbnail['name'] ?? ''; - $thumbnail_url = $thumbnail['url'] ?? ''; - $thumbnail_type = $thumbnail['type'] ?? ''; - $thumbnail_description = $thumbnail['description'] ?? ''; +// 缩略图 +$thumbnail = (array)($hc_content['thumbnail'] ?? []); +$thumbnail_id = $thumbnail['id'] ?? ''; +$thumbnail_name = $thumbnail['name'] ?? ''; +$thumbnail_url = $thumbnail['url'] ?? ''; +$thumbnail_type = $thumbnail['type'] ?? ''; +$thumbnail_description = $thumbnail['description'] ?? ''; - // 扩展内容 - $main_content = $hc_content['main_content'] ?? []; - $main_content_id = $main_content['id'] ?? ''; - $rich_text_two = $main_content['rich_text_two'] ?? ''; - $pic_many_one = $main_content['pic_many_one'] ?? []; // 产品介绍多图 - $pic_many = $main_content['pic_many'] ?? []; // 规格参数展示图集 - $rich_text_three = $main_content['rich_text_three'] ?? ''; // 规格参数第一个富文本框 - $rich_text_four = $main_content['rich_text_four'] ?? ''; - $rich_text_five = $main_content['rich_text_five'] ?? ''; - $rich_text_six = $main_content['rich_text_six'] ?? ''; - $rich_text_seven = $main_content['rich_text_seven'] ?? ''; - $resource_download_names = $main_content['resource_download_names'] ?? ''; // 下载文件自定义名称 - $atlas = $main_content['atlas'] ?? []; - $file = $main_content['file'] ?? ''; - $content_desc = $main_content['content_desc'] ?? ''; - $mc_lang = $main_content['lang'] ?? ''; - $lang_pid = $main_content['lang_pid'] ?? ''; - $sub_id = $main_content['sub_id'] ?? ''; - $mc_create_time = $main_content['create_time'] ?? ''; - $mc_update_time = $main_content['update_time'] ?? ''; +// 扩展内容 +$main_content = $hc_content['main_content'] ?? []; +$main_content_id = $main_content['id'] ?? ''; +$rich_text_two = $main_content['rich_text_two'] ?? ''; +$pic_many_one = $main_content['pic_many_one'] ?? []; // 产品介绍多图 +$pic_many = $main_content['pic_many'] ?? []; // 规格参数展示图集 +$rich_text_three = $main_content['rich_text_three'] ?? ''; // 规格参数第一个富文本框 +$rich_text_four = $main_content['rich_text_four'] ?? ''; +$rich_text_five = $main_content['rich_text_five'] ?? ''; +$rich_text_six = $main_content['rich_text_six'] ?? ''; +$rich_text_seven = $main_content['rich_text_seven'] ?? ''; +$resource_download_names = $main_content['resource_download_names'] ?? ''; // 下载文件自定义名称 +$atlas = $main_content['atlas'] ?? []; +$file = $main_content['file'] ?? ''; +$content_desc = $main_content['content_desc'] ?? ''; +$mc_lang = $main_content['lang'] ?? ''; +$lang_pid = $main_content['lang_pid'] ?? ''; +$sub_id = $main_content['sub_id'] ?? ''; +$mc_create_time = $main_content['create_time'] ?? ''; +$mc_update_time = $main_content['update_time'] ?? ''; - // 资源图片 - $resource_pic = $main_content['resource_pic'] ?? []; - $resource_pic_id = $resource_pic['id'] ?? ''; - $resource_pic_name = $resource_pic['name'] ?? ''; - $resource_pic_url = $resource_pic['url'] ?? ''; - $resource_pic_type = $resource_pic['type'] ?? ''; - $resource_pic_description = $resource_pic['description'] ?? ''; - $resource_pic_children = $resource_pic['children'] ?? []; +// 资源图片 +$resource_pic = (array)($main_content['resource_pic'] ?? []); +$resource_pic_id = $resource_pic['id'] ?? ''; +$resource_pic_name = $resource_pic['name'] ?? ''; +$resource_pic_url = $resource_pic['url'] ?? ''; +$resource_pic_type = $resource_pic['type'] ?? ''; +$resource_pic_description = $resource_pic['description'] ?? ''; +$resource_pic_children = $resource_pic['children'] ?? []; - // 资源下载 - $resource_download = $main_content['resource_download'] ?? []; - {/php} +// 资源下载 +$resource_download = $main_content['resource_download'] ?? []; +{/php} - - - - {$title} - 睿能科技 - - - - - - - - - - - - - - - - + }); + })(); + + + + + + - - - - {include file="components/header"} + + + + + - + + + +{include file="components/header"} -
-
-
-

{$title}

- 查看选型表 -
- - RA3系列伺服驱动器 -
-
-
+ - -
-
-
- - + +
+ {$rich_text_two|raw} +
+
+
- -
-
-

规格参数

+ +
+
+

规格参数

-
- 产品型号 - -
-
-
+
+ {volist name="pic_many" id="vo" key="key"} +
+ {switch $key} + {case 1}{$rich_text_three|raw}{/case} + {case 2}{$rich_text_four|raw}{/case} + {case 3}{$rich_text_five|raw}{/case} + {case 4}{$rich_text_six|raw}{/case} + {case 5}{$rich_text_seven|raw}{/case} + {default /}暂无匹配内容 + {/switch} +
+ {/volist} - - - {php} - // 1. 直接按照 %% 分割 - $mainArray = explode("%%", $resource_download_names); - $download_names = []; - // 2. 遍历并拆分 - foreach ($mainArray as $item) { - if (trim($item) !== '' && !empty($item)) { - $download_names[] = explode("##", trim($item)); - } - } - // 文件匹配 - $map = [ - 'png' => '图片', - 'jpg' => '图片', - 'jpeg' => '图片', - 'pdf' => 'PDF', - 'doc' => 'DOC', - 'docx' => 'DOC', - 'zip' => '压缩包', - '7z' => '压缩包', - 'rar' => '压缩包', - ]; + {if $total_standard_num == 0} + + {$rich_text_three|raw} + {/if} - {/php} -
-
-
- RA3资料示意 -
-
-

资料下载

-
    - {volist name="resource_download" id="one_resource" key="key"} - {php} - $nameTmp = $download_names[$key-1][0] ?? ($one_resource['name'] ?? '文件-'.$key); - $descTmp = $download_names[$key-1][1] ?? ('描述-'.$key); - $dateTmp = $download_names[$key-1][2] ?? ('日期-'.$key); - $ext = strtolower(pathinfo($one_resource['url'], PATHINFO_EXTENSION)); - $file_type_name = $map[$ext] ?? '未知文件'; - {/php} -
  • -
    -

    {$nameTmp}

    -

    - {$descTmp} - - -

    -
    - - - - - - - - - - 下载{$file_type_name} - -
  • - {/volist} +
+
+
- -
-
-
+ + + {php} + // 1. 直接按照 %% 分割 + $mainArray = explode("%%", $resource_download_names); + $download_names = []; + // 2. 遍历并拆分 + foreach ($mainArray as $item) { + if (trim($item) !== '' && !empty($item)) { + $download_names[] = explode("##", trim($item)); + } + } + // 文件匹配 + $map = [ + 'png' => '图片', + 'jpg' => '图片', + 'jpeg' => '图片', + 'pdf' => 'PDF', + 'doc' => 'DOC', + 'docx' => 'DOC', + 'zip' => '压缩包', + '7z' => '压缩包', + 'rar' => '压缩包', + ]; - - + + + -
+ + + + + -
-
- -
- + + + + + + +
+
+
+
- -
- -
-
- - - - - - - - - - - - -