feat(fwsc): 碳金融市场点击跳转绿金平台

服务中心三个子市场页 (fwsc/xqsc/sjsc) 顶部 navTab 第四项 '碳金融市场' 由 disable:true 改为带 url 字段,goToTab 增加 url 分支优先 window.open 跳外链;首页 home2 '绿色低碳服务' 卡片的 '金融市场' 按钮 buttonLinks 同步填入同一外链。

目标外链:https://www.unionecredit.com/greenfinance/#/home
This commit is contained in:
liulong 2026-06-16 03:51:20 +08:00
parent 26f002f4cb
commit d68cf20891
4 changed files with 20 additions and 8 deletions

View File

@ -201,7 +201,7 @@ export default {
{ label: '碳服务市场', path: '/tfwsc' }, { label: '碳服务市场', path: '/tfwsc' },
{ label: '碳需求市场', path: '/txqsc' }, { label: '碳需求市场', path: '/txqsc' },
{ label: '碳数据市场', path: '/tsjsc' }, { label: '碳数据市场', path: '/tsjsc' },
{ label: '碳金融市场', path: '/tjrsc', disable: true }, { label: '碳金融市场', path: '/tjrsc', url: 'https://www.unionecredit.com/greenfinance/#/home' },
], ],
// //
filter: { filter: {
@ -452,10 +452,14 @@ export default {
isActiveTab(path) { isActiveTab(path) {
return this.$route.path === path; return this.$route.path === path;
}, },
goToTab({path, disable}) { goToTab({path, disable, url}) {
if (url) {
window.open(url, '_blank', 'noopener,noreferrer');
return;
}
if (disable) { if (disable) {
this.showComingSoon(); this.showComingSoon();
return return
} }
this.$router.push(path); this.$router.push(path);
}, },

View File

@ -189,7 +189,7 @@ export default {
{ label: '碳服务市场', path: '/tfwsc' }, { label: '碳服务市场', path: '/tfwsc' },
{ label: '碳需求市场', path: '/txqsc' }, { label: '碳需求市场', path: '/txqsc' },
{ label: '碳数据市场', path: '/tsjsc' }, { label: '碳数据市场', path: '/tsjsc' },
{ label: '碳金融市场', path: '/tjrsc', disable: true }, { label: '碳金融市场', path: '/tjrsc', url: 'https://www.unionecredit.com/greenfinance/#/home' },
], ],
// //
filter: { filter: {
@ -377,7 +377,11 @@ export default {
isActiveTab(path) { isActiveTab(path) {
return this.$route.path === path; return this.$route.path === path;
}, },
goToTab({ path, disable }) { goToTab({ path, disable, url }) {
if (url) {
window.open(url, '_blank', 'noopener,noreferrer');
return;
}
if (disable) { if (disable) {
this.showComingSoon(); this.showComingSoon();
return; return;

View File

@ -233,7 +233,7 @@ export default {
{ label: '碳服务市场', path: '/tfwsc' }, { label: '碳服务市场', path: '/tfwsc' },
{ label: '碳需求市场', path: '/txqsc' }, { label: '碳需求市场', path: '/txqsc' },
{ label: '碳数据市场', path: '/tsjsc' }, { label: '碳数据市场', path: '/tsjsc' },
{ label: '碳金融市场', path: '/tjrsc', disable: true }, { label: '碳金融市场', path: '/tjrsc', url: 'https://www.unionecredit.com/greenfinance/#/home' },
], ],
// //
filter: { filter: {
@ -422,7 +422,11 @@ export default {
isActiveTab(path) { isActiveTab(path) {
return this.$route.path === path; return this.$route.path === path;
}, },
goToTab({path, disable}) { goToTab({path, disable, url}) {
if (url) {
window.open(url, '_blank', 'noopener,noreferrer');
return;
}
if (disable) { if (disable) {
this.showComingSoon(); this.showComingSoon();
return; return;

View File

@ -498,7 +498,7 @@ export default {
// 绿 // 绿
'服务市场': '/tfwsc', '服务市场': '/tfwsc',
'需求市场': '/txqsc', '需求市场': '/txqsc',
'金融市场': '', '金融市场': 'https://www.unionecredit.com/greenfinance/#/home',
'数据市场': '/tsjsc', '数据市场': '/tsjsc',
}, },
kxtfwzx: '', kxtfwzx: '',