fix(home2): '开始办证'跳转至碳证中心存证页
原本读 buttonLinks['碳证中心'] 跳到通用存证入口,现在改为新增 computed certStoragePath,带上 ?page=%2Fweb%2Fcarbon-report-cert 直达存证页面。
This commit is contained in:
parent
4bd99d14c8
commit
26f002f4cb
@ -67,7 +67,7 @@
|
||||
<div class="card-title">碳数字身份证</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="card-btn" @click="handleIframeNavigate(buttonLinks['碳证中心'])">开始办证</div>
|
||||
<div class="card-btn" @click="handleIframeNavigate(certStoragePath)">开始办证</div>
|
||||
<div class="card-btn" @click="handleIframeNavigate(buttonLinks['碳证查询'])">碳证查询</div>
|
||||
<div class="card-btn" @click="handleIframeNavigate(buttonLinks['碳证核验'])">碳证核验</div>
|
||||
<div class="card-btn" @click="handleNavigate(buttonLinks['场景推介'])">场景推介</div>
|
||||
@ -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] || [];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user