From 2084a27decde3206fcfb9da4f6875d6b7c8cfe71 Mon Sep 17 00:00:00 2001 From: liulong <18539103286> Date: Tue, 16 Jun 2026 00:02:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(mhzc-web):=20=E5=85=A5=E5=8F=A3=E6=96=87?= =?UTF-8?q?=E6=A1=88/=E7=99=BB=E5=BD=95=E6=80=81/=E6=B7=B1=E9=93=BE/?= =?UTF-8?q?=E6=B7=B7=E5=90=88=E9=A6=96=E9=A1=B5=E5=A4=9A=E9=A1=B5=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 首页 home2: - 「碳数字身份证」卡办证指南改为「开始办证」,点击改为 iframe 跳碳证中心 - 注释掉「共性能力」section 及其在 sectionIds 里的位置 - 顶 hero 第三张卡标题由「绿色服务」改为「绿色低碳服务」 - 「核心底座」文案去掉"基础底座上海枢纽"措辞,简化为「国家区块链网络」 - 「申请服务」openService 改为登录态判断:未登录跳 /view/mhzc/login,已登录 iframe 进碳证中心 服务中心 fwsc: - 碳金融市场卡按钮「查看金融产品」→「走进绿金平台」,链接到 https://www.unionecredit.com/greenfinance/#/home - goToPage 增加外链识别(/^https?:\/\// → window.open _blank),同时把按钮 theme 改为 primary 统一三卡样式 数据列表 sjlbc: - 隐藏「浏览次数」统计块 行业专题 hyzt: - 三张卡按钮文案硬编码为「进入专题」,不再读 item.btnText / defaultBtnText,绕开部署包数据未刷新的问题 企业出海 qych: - 深链(?section=section0/1/2)时 v-if 隐藏 landing,配合 sectionIds 响应式 + watch.$route.query.section + activated 钩子 解决「先跳到首页三卡再滚到目标 section」的闪屏,直接落在目标 section - 航运燃料/低碳政策「国际航运碳足迹标识认证平台」立即访问改 showComingSoon() - 引入 comingSoonMixin 修复 this.showComingSoon 未定义导致点击无响应的老 bug - IMO/海事 一网通办卡改名为「国际海事组织(IMO)」,链接到 https://www.imo.org/en/ - #section2 国际航运碳足迹标识认证平台 h4 加 white-space: nowrap 避免标题换行 设置 settings: - 行业专题 hyztList 航运燃料 btnText 由「进入交易大厅」改为「进入专题」 页脚 footer: - 基础设施文案「国家区块链网络基础底座」→「国家区块链网络」 Co-Authored-By: Claude --- .../pages/index/components/footer/index.vue | 2 +- .../src/pages/index/views/fwsc/index.vue | 15 ++-- .../src/pages/index/views/fwsc/sjlbc.vue | 4 +- .../src/pages/index/views/home2/index.vue | 26 ++++--- .../src/pages/index/views/hyzt/index.vue | 5 +- .../src/pages/index/views/qych/index.vue | 75 ++++++++++++++++--- txw-mhzc-web/src/settings/index.js | 2 +- 7 files changed, 95 insertions(+), 34 deletions(-) diff --git a/txw-mhzc-web/src/pages/index/components/footer/index.vue b/txw-mhzc-web/src/pages/index/components/footer/index.vue index 9d3e119..c059930 100644 --- a/txw-mhzc-web/src/pages/index/components/footer/index.vue +++ b/txw-mhzc-web/src/pages/index/components/footer/index.vue @@ -89,7 +89,7 @@ diff --git a/txw-mhzc-web/src/pages/index/views/fwsc/index.vue b/txw-mhzc-web/src/pages/index/views/fwsc/index.vue index a3627b1..26a556d 100644 --- a/txw-mhzc-web/src/pages/index/views/fwsc/index.vue +++ b/txw-mhzc-web/src/pages/index/views/fwsc/index.vue @@ -72,7 +72,7 @@ -
+
@@ -80,7 +80,7 @@

打通"碳"与"金融"的通道。提供碳质押、碳回购、绿色信贷及碳基金对接服务。

- 查看金融产品 + 走进绿金平台
@@ -105,11 +105,16 @@ export default { this.$router.push('/view/mhzc/home'); }, goToPage(path) { - if (path) { - this.$router.push(path); - } else { + if (!path) { this.$message.info('敬请期待'); + return; } + // 外链:浏览器新标签页打开 + if (/^https?:\/\//.test(path)) { + window.open(path, '_blank'); + return; + } + this.$router.push(path); } } }; diff --git a/txw-mhzc-web/src/pages/index/views/fwsc/sjlbc.vue b/txw-mhzc-web/src/pages/index/views/fwsc/sjlbc.vue index 94b02fb..48d89e3 100644 --- a/txw-mhzc-web/src/pages/index/views/fwsc/sjlbc.vue +++ b/txw-mhzc-web/src/pages/index/views/fwsc/sjlbc.vue @@ -20,10 +20,10 @@

{{ sjscInfo.sjms || '暂无描述' }}

-
+
diff --git a/txw-mhzc-web/src/pages/index/views/home2/index.vue b/txw-mhzc-web/src/pages/index/views/home2/index.vue index 624e066..8c5fd73 100644 --- a/txw-mhzc-web/src/pages/index/views/home2/index.vue +++ b/txw-mhzc-web/src/pages/index/views/home2/index.vue @@ -67,7 +67,7 @@
碳数字身份证
-
办证指南
+
开始办证
碳证查询
碳证核验
场景推介
@@ -86,7 +86,7 @@
-
绿色服务
+
绿色低碳服务
服务市场
@@ -140,7 +140,8 @@
- + + +

五大核心能力,全面支撑企业绿色转型

@@ -165,6 +166,7 @@ + -->
@@ -354,6 +356,7 @@ import { calcHomeFigmaScale } from '@/pages/index/utils/home-figma-scale'; import portalFigmaScaleMixin from '@/pages/index/utils/portal-figma-scale-mixin'; import fullpageScrollMixin from '@/pages/index/utils/fullpage-scroll-mixin'; import comingSoonMixin from '@/pages/index/utils/coming-soon-mixin'; +import { hasLogin } from '@/pages/index/api/login'; export default { name: 'Home2Index', @@ -367,7 +370,7 @@ export default { newsLoading: true, scrollRoot: null, sectionOffsets: [], - sectionIds: ['section-hero', 'section-core', 'section-capability', 'section-overseas', 'section-news', 'section-partner', 'section-bottom'], + sectionIds: ['section-hero', 'section-core', /* 'section-capability' 共性能力模块暂去掉 */ 'section-overseas', 'section-news', 'section-partner', 'section-bottom'], // 当前激活的 section(用于导航高亮),由 IntersectionObserver 驱动 activeSectionIndex: 0, coreSelectedIndex: 3, @@ -393,7 +396,7 @@ export default { { name1: '核心底座', name2: '国家区块链网络', - desc: '依托区块链网络基础底座上海枢纽,确保每一笔碳数据拥有唯一的"链上基因",实现国家级权威存证与不可篡改。', + desc: '依托国家区块链网络,确保每一笔碳数据拥有唯一的"链上基因",实现国家级权威存证与不可篡改。', icon: require('@/pages/index/views/home2/assets/core-base@2x.png'), iconWidth: 192, iconHeight: 183 @@ -711,11 +714,14 @@ export default { } }, openService() { - if (location.host.indexOf('cciw') >= 0) { - window.open('http://101.230.193.133:8888/') - } else { - window.open('http://carbon_did.liantu.tech/'); + // 未登录:提示并跳转登录页 + if (!hasLogin()) { + window.location.href = '/view/mhzc/login'; + return; } + // 已登录:iframe 跳转到碳证中心 + const url = `${this.buttonLinkHost}${this.buttonLinks['碳证中心']}`; + this.$emit('gotoIfreamPage', url); }, diff --git a/txw-mhzc-web/src/pages/index/views/hyzt/index.vue b/txw-mhzc-web/src/pages/index/views/hyzt/index.vue index b26eca9..95e2786 100644 --- a/txw-mhzc-web/src/pages/index/views/hyzt/index.vue +++ b/txw-mhzc-web/src/pages/index/views/hyzt/index.vue @@ -26,7 +26,7 @@

{{ item.desc }}

- {{ item.btnText || defaultBtnText(index) }} + 进入专题
@@ -52,9 +52,6 @@ export default { ...mapState('settings', ['hyztList']), }, methods: { - defaultBtnText(index) { - return index === 2 ? '进入交易大厅' : '进入专题'; - }, goToHref(href) { if (href && href.startsWith('http')) { window.open(href, '_blank'); diff --git a/txw-mhzc-web/src/pages/index/views/qych/index.vue b/txw-mhzc-web/src/pages/index/views/qych/index.vue index 66e897b..5e1266f 100644 --- a/txw-mhzc-web/src/pages/index/views/qych/index.vue +++ b/txw-mhzc-web/src/pages/index/views/qych/index.vue @@ -1,7 +1,7 @@