From 26f002f4cb47077388e42d3262418bba7933b5f1 Mon Sep 17 00:00:00 2001 From: liulong <18539103286> Date: Tue, 16 Jun 2026 03:30:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(home2):=20'=E5=BC=80=E5=A7=8B=E5=8A=9E?= =?UTF-8?q?=E8=AF=81'=E8=B7=B3=E8=BD=AC=E8=87=B3=E7=A2=B3=E8=AF=81?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E5=AD=98=E8=AF=81=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原本读 buttonLinks['碳证中心'] 跳到通用存证入口,现在改为新增 computed certStoragePath,带上 ?page=%2Fweb%2Fcarbon-report-cert 直达存证页面。 --- .../src/pages/index/views/home2/index.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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 8c5fd73..4acb7b0 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 @@
碳数字身份证
-
开始办证
+
开始办证
碳证查询
碳证核验
场景推介
@@ -719,8 +719,8 @@ export default { window.location.href = '/view/mhzc/login'; return; } - // 已登录:iframe 跳转到碳证中心 - const url = `${this.buttonLinkHost}${this.buttonLinks['碳证中心']}`; + // 已登录:iframe 跳转到碳证中心存证页面(/carbon-index?page=%2Fweb%2Fcarbon-report-cert) + const url = `${this.buttonLinkHost}${this.certStoragePath}`; this.$emit('gotoIfreamPage', url); }, @@ -902,6 +902,15 @@ export default { }, }, computed: { + /** + * 碳证中心存证页面 iframe 路径。 + * 用于首页"开始办证"卡片按钮与底部"申请服务"按钮。 + * 通过 page 参数指定 /carbon-index 内嵌的子页面:/web/carbon-report-cert。 + */ + certStoragePath() { + const base = this.buttonLinks['碳证中心'] || '/carbon-index'; + return `${base}?page=%2Fweb%2Fcarbon-report-cert`; + }, currentNewsList() { const type = this.newsTabs[this.activeTab]?.type; const list = this.newsListByType[type] || [];