From e889b1b1c70fed0bcf03cfd672c60498f4515158 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Tue, 29 Apr 2025 15:49:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20nas=E4=B8=8B=E8=BD=BD=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/controller/TopicNas.php | 43 ++++++++ app/index/lang/en-us.php | 4 + app/index/lang/zh-cn.php | 4 + app/index/view/topic_nas/download.html | 84 ++++++++++++++++ .../static/index/css/topic_nas_download.css | 99 +++++++++++++++++++ 5 files changed, 234 insertions(+) create mode 100644 app/index/view/topic_nas/download.html create mode 100755 public/static/index/css/topic_nas_download.css diff --git a/app/index/controller/TopicNas.php b/app/index/controller/TopicNas.php index 1452df5b..8f391b57 100644 --- a/app/index/controller/TopicNas.php +++ b/app/index/controller/TopicNas.php @@ -177,12 +177,55 @@ class TopicNas extends Common { return View::fetch('help'); } + + /** + * 专题-Nas帮助中心详情 + */ + public function helpDetail() + { + + return View::fetch('help_detail'); + } /** * 专题-Nas软件下载页 */ public function download() { + $data = []; + // 获取banner数据 + $banners = SysBannerModel::with(['items' => function($query) { + $query->withoutField(['sort', 'created_at', 'updated_at', 'deleted_at']); + }]) + ->uniqueLabel([ + 'BANNER_6810798e6e828', + 'BANNER_68107a0a63910', + 'BANNER_681079cfa83c9', + 'BANNER_68107a1584238' + ]) + ->language($this->lang_id) + ->enabled(true) + ->order(['sort' => 'asc', 'id' => 'desc']) + ->select(); + if (!$banners->isEmpty()) { + $banners_map = []; + foreach ($banners as $banner) { + $banners_map[$banner->unique_label] = $banner; + } + $cyber_image = data_get($banners_map, 'BANNER_6810798e6e828')?->items->first()?->toArray(); + if (!empty($cyber_image)) $data['cyber']['focus_image'] = $cyber_image; + + $weline_image = data_get($banners_map, 'BANNER_68107a0a63910')?->items->first()?->toArray(); + if (!empty($weline_image)) $data['weline']['focus_image'] = $weline_image; + + $cyber_down_items = data_get($banners_map, 'BANNER_681079cfa83c9')?->items->toArray(); + if (!empty($cyber_down_items)) $data['cyber']['down_items'] = $cyber_down_items; + + $weline_down_items = data_get($banners_map, 'BANNER_68107a1584238')?->items->toArray(); + if (!empty($weline_down_items)) $data['weline']['down_items'] = $weline_down_items; + } + View::assign('data', $data); + return View::fetch('download'); } } diff --git a/app/index/lang/en-us.php b/app/index/lang/en-us.php index e0891eaa..efdfdd73 100644 --- a/app/index/lang/en-us.php +++ b/app/index/lang/en-us.php @@ -206,5 +206,9 @@ return [ 'topic_nas_cooperation' => [ 'advantages_section_title' => 'Cooperation advantages', 'contacts_section_title' => 'Looking forward to working with you' + ], + 'topic_nas_download' => [ + 'cyber_tab_title' => 'CyberData', + 'weline_tab_title' => 'Weline' ] ]; \ No newline at end of file diff --git a/app/index/lang/zh-cn.php b/app/index/lang/zh-cn.php index 04d487a6..d17301e7 100644 --- a/app/index/lang/zh-cn.php +++ b/app/index/lang/zh-cn.php @@ -206,5 +206,9 @@ return [ 'topic_nas_cooperation' => [ 'advantages_section_title' => '合作优势', 'contacts_section_title' => '期待与您的合作' + ], + 'topic_nas_download' => [ + 'cyber_tab_title' => 'CyberData赛博云空间', + 'weline_tab_title' => 'Weline微链接' ] ]; \ No newline at end of file diff --git a/app/index/view/topic_nas/download.html b/app/index/view/topic_nas/download.html new file mode 100644 index 00000000..8b8e212d --- /dev/null +++ b/app/index/view/topic_nas/download.html @@ -0,0 +1,84 @@ +{extend name="public/nas_base" /} +{block name="style"} + +{/block} +{block name="main"} +
+ +
+ +
+ {egt name=":count($data)" value="2"} + {notempty name="data.cyber"} +
{:lang('topic_nas_download.cyber_tab_title')}
+ {/notempty} + {notempty name="data.weline"} +
{:lang('topic_nas_download.weline_tab_title')}
+ {/notempty} + {/egt} +
+ + {notempty name="data.cyber"} +
+ {notempty name="data.cyber.focus_image"} +
+ +
+ {/notempty} + {notempty name="data.cyber.down_items"} + + {/notempty} +
+ {/notempty} + + {notempty name="data.weline"} +
+ {notempty name="data.weline.focus_image"} +
+ +
+ {/notempty} + {notempty name="data.weline.down_items"} +
+ {volist name="data.weline.down_items" id="it"} + +
+
+ {/volist} +
+ {/notempty} +
+ {/notempty} +
+
+{/block} +{block name="script"} + +{/block} \ No newline at end of file diff --git a/public/static/index/css/topic_nas_download.css b/public/static/index/css/topic_nas_download.css new file mode 100755 index 00000000..144ce22d --- /dev/null +++ b/public/static/index/css/topic_nas_download.css @@ -0,0 +1,99 @@ +.narsDowloadPc { + width: 100%; + height: 100vh; + background: #F5F5F5; + position: relative; + display: flex; + flex-direction: column; + overflow-y: auto; +} + +.narsDowloadPc .narsDtabs { + display: flex; + flex-direction: row; + justify-content: center; + margin-top: 70px; + margin-bottom: 30px; +} + +.narsDowloadPc .narsDtabs .narsDtabIt { + color: #001717; + font-size: 24px; + height: 52px; + line-height: 52px; + width: 300px; + background: #fff; + text-align: center; + border-radius: 28px; + cursor: pointer; +} + +.narsDowloadPc .narsDtabs .narsDtabIt:first-child { + margin-right: 60px; +} + +.narsDowloadPc .narsDtabs .narsDtabIt_active { + color: #fff; + background: #004CFA; +} + +.narsDowloadPc .narsDmainConten { + width: 1200px; + height: 409px; + background: #fff; + margin-bottom: 10px; +} + +.narsDowloadPc .nDtopCtMian { + width: 1200px; + margin: 0 auto; + height: auto; +} + +.narsDowloadPc .nDtopCtMian .nDtopIt { + width: 1200px; + height: 409px; + background: #fff; + margin-bottom: 10px; +} + +.narsDowloadPc .nDtopCtMian .nDtopIt .tpimg { + width: 100%; + height: 100%; +} + +.narsDowloadPc .nDtopCtMian .nDtopIt .tpimg { + width: 100%; + height: 100%; +} + +.narsDowloadPc .nDtopCtMian .nDtopIt2 { + width: 1200px; + height: 205px; + display: flex; + flex-direction: row; + justify-content: space-between; +} + +.narsDowloadPc .nDtopCtMian .nDtopIt2 .nDitImg { + width: 231px; + height: 205px; + background: #fff; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; +} + +.narsDowloadPc .nDtopCtMian .nDtopIt2 .nDitImg img { + width: 126px; + height: 126px; +} + +.narswljshow { + display: none; +} + +.narswljshow .nDtopIt2 .nDitImg { + width: 291px !important; +} \ No newline at end of file