feat: 企业工作台界面样式调整

This commit is contained in:
liulujian 2026-04-28 22:18:35 +08:00
parent ee3ce43c8e
commit e54bd8af41
22 changed files with 914 additions and 1020 deletions

View File

@ -27,7 +27,8 @@
"Bash(\"/d/Program Files/apache-maven/apache-maven-3.6.3/bin/mvn\" compile -pl txw-mhzc-service-biz -am)", "Bash(\"/d/Program Files/apache-maven/apache-maven-3.6.3/bin/mvn\" compile -pl txw-mhzc-service-biz -am)",
"Bash(\"/d/Program Files/apache-maven/apache-maven-3.6.3/bin/mvn\" clean package -pl txw-mhzc-service-biz -am -DskipTests)", "Bash(\"/d/Program Files/apache-maven/apache-maven-3.6.3/bin/mvn\" clean package -pl txw-mhzc-service-biz -am -DskipTests)",
"Bash(\"/d/Program Files/jdk8/bin/java\" -Xms256m -Xmx512m -Duser.timezone=Asia/Shanghai -jar target/txw-mhzc-service-biz.jar --spring.profiles.active=local)", "Bash(\"/d/Program Files/jdk8/bin/java\" -Xms256m -Xmx512m -Duser.timezone=Asia/Shanghai -jar target/txw-mhzc-service-biz.jar --spring.profiles.active=local)",
"Bash(mvn compile *)" "Bash(mvn compile *)",
"WebFetch(domain:www.figma.com)"
] ]
} }
} }

View File

@ -41,7 +41,7 @@
<div class="footer-column"> <div class="footer-column">
<div class="footer-title">友情链接</div> <div class="footer-title">友情链接</div>
<div class="footer-links"> <div class="footer-links">
<div class="footer-link-item">上海市企业走出去综合服务平台</div> <a class="footer-link-item" href="https://segg.sh.gov.cn/" target="_blank" rel="noopener">上海市企业走出去综合服务平台</a>
</div> </div>
</div> </div>
@ -141,6 +141,7 @@ export default {
font-size: 14px; font-size: 14px;
transition: color 0.3s; transition: color 0.3s;
color: rgba(85, 102, 89, 1); color: rgba(85, 102, 89, 1);
cursor: pointer;
&:hover { &:hover {
color: #4caf50; color: #4caf50;

View File

@ -267,6 +267,17 @@ export default {
} else { } else {
this.loginFlag = false; this.loginFlag = false;
} }
//
this.updateCurPageByRoute();
},
watch: {
$route: {
handler() {
this.updateCurPageByRoute();
},
immediate: false,
},
}, },
beforeUnmount() { }, beforeUnmount() { },
methods: { methods: {
@ -301,6 +312,13 @@ export default {
return; return;
} }
// query /gxnlpt?anchor=content-1
const pathWithoutQuery = path.split('?')[0];
if (this.routeToMenuMap[pathWithoutQuery]) {
this.curPage = this.routeToMenuMap[pathWithoutQuery];
return;
}
// //
if (path.includes('tfwsc') || path.includes('txqsc') || path.includes('tjrsc') || path.includes('tsjsc')) { if (path.includes('tfwsc') || path.includes('txqsc') || path.includes('tjrsc') || path.includes('tsjsc')) {
this.curPage = 'fwsc'; this.curPage = 'fwsc';

View File

@ -6,7 +6,7 @@
<template> <template>
<div style="height: 100%" class="htglMenu"> <div style="height: 100%" class="htglMenu">
<t-menu style="width: 220px; background: #fff" v-model="activeMenuId" :collapsed="collapsed" :defaultExpanded="expanded" @change="gotoPage"> <t-menu style="width: 220px; background: #fff" v-model="activeMenuId" :collapsed="collapsed" :defaultExpanded="expanded" @change="gotoPage">
<div class="title">用户中心</div> <div class="title">企业工作台</div>
<!-- 循环实现 --> <!-- 循环实现 -->
<template v-for="item in cdList"> <template v-for="item in cdList">
<t-menu-item v-if="!item.children" :value="item.id" :title="item.title" :key="item.id"> <t-menu-item v-if="!item.children" :value="item.id" :title="item.title" :key="item.id">
@ -83,69 +83,98 @@ export default {
{ {
id: 'gzt', id: 'gzt',
title: '工作台', title: '工作台',
icon: 'user', icon: '',
name: 'gzt', name: 'gzt',
}, },
{ {
id: 'qyrenzheng', id: 'qyzh',
title: '企业认证', title: '企业账号',
icon: 'user', icon: '',
name: 'qyrenzheng', name: '',
children: [
{
id: 'qyrenzheng',
title: '企业认证',
icon: 'user',
name: 'qyrenzheng',
},
{
id: 'qyruzhu',
title: '企业入驻',
icon: 'user',
name: 'qyruzhu',
},
],
}, },
{ {
id: 'qyruzhu', id: 'qxgl',
title: '企业入驻', title: '供需管理',
icon: 'user', icon: '',
name: 'qyruzhu', name: '',
children: [
{
id: 'tfwgj',
title: '碳服务供给',
icon: 'user',
name: 'tfwgj',
},
{
id: 'tfwxq',
title: '碳服务需求',
icon: 'user',
name: 'tfwxq',
},
]
}, },
{ {
id: 'tfwgj', id: 'xxzx',
title: '碳服务供给',
icon: 'user',
name: 'tfwgj',
},
{
id: 'tfwxq',
title: '碳服务需求',
icon: 'user',
name: 'tfwxq',
},
{
id: 'ggwhgl',
title: '消息中心', title: '消息中心',
icon: 'user', icon: '',
name: 'ggwhgl', name: '',
children: [
{
id: 'xttz',
title: '系统通知',
icon: '',
name: 'ggwhgl',
},
]
}, },
{ {
id: 'lsjy', id: 'tlgl',
title: '绿色交易', title: '碳链管理',
icon: 'user', icon: '',
name: 'lsjy', name: '',
}, { children: [
id: 'zljggl',
title: '质证结果管理', {
icon: 'user', id: 'zljggl',
name: 'zljggl', title: '质证结果管理',
iframeUrl: "https://ctn-web-pre.lingshu.net/proof-result-mgt?type=carbon-certify", icon: 'user',
}, name: 'zljggl',
{ iframeUrl: "https://ctn-web-pre.lingshu.net/proof-result-mgt?type=carbon-certify",
id: 'cunzhengjilu', },
title: '存证记录管理', {
icon: 'user', id: 'cunzhengjilu',
name: 'cunzhengjilu', title: '存证记录管理',
iframeUrl: "https://ctn-web-pre.lingshu.net/cert-record-mgt", icon: 'user',
}, { name: 'cunzhengjilu',
id: 'tgjlgl', iframeUrl: "https://ctn-web-pre.lingshu.net/cert-record-mgt",
title: '托管记录管理', }, {
icon: 'user', id: 'tgjlgl',
name: 'tgjlgl', title: '托管记录管理',
iframeUrl: "https://ctn-web-pre.lingshu.net/hosting-record-mgt", icon: 'user',
}, { name: 'tgjlgl',
id: 'chazhengjilu', iframeUrl: "https://ctn-web-pre.lingshu.net/hosting-record-mgt",
title: '查证记录管理', }, {
icon: 'user', id: 'chazhengjilu',
name: 'chazhengjilu', title: '查证记录管理',
iframeUrl: "https://ctn-web-pre.lingshu.net/query-record-mgt", icon: 'user',
name: 'chazhengjilu',
iframeUrl: "https://ctn-web-pre.lingshu.net/query-record-mgt",
},
]
}, },
], ],
ejcdList: [], ejcdList: [],

View File

@ -6,7 +6,6 @@
<div class="gxnlpt-tab-box" v-for="(item, index) in GXNLPTtabList" :key="index"> <div class="gxnlpt-tab-box" v-for="(item, index) in GXNLPTtabList" :key="index">
<t-anchor-item :href="item.href" :title="item.title"></t-anchor-item> <t-anchor-item :href="item.href" :title="item.title"></t-anchor-item>
<img class="icon-img" :src="getIconUrl(item.icon)" alt="" /> <img class="icon-img" :src="getIconUrl(item.icon)" alt="" />
<!-- <a :href="item.href" target="_self" class="">{{item.title}}</a> -->
</div> </div>
</t-anchor> </t-anchor>
<div id="anchor-container"> <div id="anchor-container">
@ -33,13 +32,15 @@
</div> </div>
</div> </div>
</div> </div>
<div class="bottom-box"></div>
</div> </div>
</div> </div>
</div> </div>
<!-- 底部信息区 -->
<Footer style="width:100%" />
</div> </div>
</template> </template>
<script> <script>
import Footer from '@/pages/index/components/footer/index.vue';
export default { export default {
data() { data() {
return { return {
@ -173,10 +174,28 @@ export default {
], ],
}; };
}, },
components: {
Footer,
},
mounted() {
const anchor = this.$route.query.anchor || this.$route.params.anchor;
if (anchor) {
this.$nextTick(() => {
const el = document.getElementById(anchor);
if (el) {
el.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
});
}
},
methods: { methods: {
handleClick({ e, href, title }) { handleClick({ e, href, title }) {
e.preventDefault(); e.preventDefault();
console.log('click', href, title); const id = href.replace('#', '');
const el = document.getElementById(id);
if (el) {
el.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
}, },
getIconUrl(iconName) { getIconUrl(iconName) {
// 使require // 使require
@ -199,15 +218,11 @@ export default {
background-image: linear-gradient(180deg, #f2fdf0, #e6f7fd); background-image: linear-gradient(180deg, #f2fdf0, #e6f7fd);
} }
.anchor-container-demo { .anchor-container-demo {
// display: flex; display: flex;
flex-direction: column;
} }
#anchor-container { #anchor-container {
flex-grow: 1; flex: 1;
height: 770px;
overflow: auto;
}
#anchor-container::-webkit-scrollbar {
display: none;
} }
.gxnlpt-main { .gxnlpt-main {
max-width: 1448px; max-width: 1448px;
@ -326,9 +341,6 @@ export default {
} }
} }
} }
.bottom-box {
height: 380px;
}
.anchor-container-box-img-img { .anchor-container-box-img-img {
position: absolute; position: absolute;
top: 50%; top: 50%;

View File

@ -1,27 +1,23 @@
<template> <template>
<div class="account-shortcuts"> <div class="account-shortcuts">
<div class="shortcuts-grid"> <div class="shortcuts-row">
<button <button
v-for="(item, index) in shortcuts" v-for="item in shortcuts"
:key="item.label" :key="item.label"
class="shortcut-item" class="shortcut-item"
:style="{ '--delay': `${index * 0.06}s` }"
@click="handleClick(item.to)" @click="handleClick(item.to)"
> >
<div class="item-icon" :style="{ background: item.bgColor, color: item.color }"> <div class="item-icon" :style="{ background: item.bgColor }">
<component :is="getIconComponent(item.icon)" /> <component :is="getIconComponent(item.icon)" :style="{ color: item.color }" />
</div> </div>
<span class="item-label">{{ item.label }}</span> <span class="item-label">{{ item.label }}</span>
<div class="item-arrow">
<ArrowRightIcon />
</div>
</button> </button>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { MailIcon, UserIcon, EditIcon, LockOnIcon, ArrowRightIcon } from 'tdesign-icons-vue'; import { MailIcon, UserIcon, EditIcon, LockOnIcon } from 'tdesign-icons-vue';
const iconMap = { const iconMap = {
mail: MailIcon, mail: MailIcon,
@ -37,15 +33,13 @@ export default {
UserIcon, UserIcon,
EditIcon, EditIcon,
LockOnIcon, LockOnIcon,
ArrowRightIcon,
}, },
data() { data() {
return { return {
shortcuts: [ shortcuts: [
{ label: '消息中心', icon: 'mail', to: '/yhzx/ggwhgl', bgColor: '#FCE4EC', color: '#E91E63' }, { label: '我的认证', icon: 'user', to: '/yhzx/qyrenzheng', bgColor: '#E6F8F0', color: '#344F3D' },
{ label: '我的认证', icon: 'user', to: '/yhzx/qyrenzheng', bgColor: '#E3F2FD', color: '#2196F3' }, { label: '账号编辑', icon: 'edit', to: '/yhzx/qyrenzheng', bgColor: '#E6F8F0', color: '#344F3D' },
{ label: '账号编辑', icon: 'edit', to: '/yhzx/qyrenzheng', bgColor: '#FFF8E1', color: '#FF9800' }, { label: '修改密码', icon: 'lock-on', to: '/yhzx/zhanghugl', bgColor: '#E6F8F0', color: '#344F3D' },
{ label: '修改密码', icon: 'lock-on', to: '/yhzx/zhanghugl', bgColor: '#E8F5E9', color: '#4CAF50' },
], ],
}; };
}, },
@ -62,127 +56,60 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
@green-primary: #48C666; @green-primary: #48C666;
@green-dark: #2D8A45; @text-dark: #003B1A;
@green-light: #E8FFEA;
@text-dark: #1A2B3C;
@text-muted: #6B7C8D;
@text-light: #94A3B8;
@bg-card: #FFFFFF; @bg-card: #FFFFFF;
@border-light: rgba(0, 0, 0, 0.06);
@shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.1);
.account-shortcuts { .account-shortcuts {
.shortcuts-grid { .shortcuts-row {
display: grid; display: flex;
grid-template-columns: repeat(4, 1fr); gap: 0;
gap: 12px;
} }
} }
.shortcut-item { .shortcut-item {
position: relative;
display: flex; display: flex;
padding: 20px 12px;
overflow: hidden;
cursor: pointer;
background: @bg-card;
border: 1px solid @border-light;
border-radius: 14px;
animation: fadeIn 0.4s ease backwards;
animation-delay: var(--delay);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
gap: 10px; gap: 8px;
padding: 12px;
&::before { cursor: pointer;
position: absolute; background: @bg-card;
top: 0; border: none;
right: 0; border-radius: 4px;
left: 0; transition: background 0.2s ease;
height: 3px; flex: 1;
background: linear-gradient(90deg, @green-primary, @green-dark); min-width: 0;
content: '';
transform: scaleX(0);
transition: transform 0.3s ease;
}
&:hover { &:hover {
border-color: transparent; background: #F5F7FA;
transform: translateY(-3px);
box-shadow: @shadow-hover;
&::before {
transform: scaleX(1);
}
.item-icon {
transform: scale(1.1);
}
.item-arrow {
opacity: 1;
transform: translateX(0);
}
}
&:active {
transform: translateY(-1px);
} }
.item-icon { .item-icon {
display: flex; display: flex;
width: 48px; width: 36px;
height: 48px; height: 36px;
font-size: 22px; font-size: 16px;
border-radius: 12px; border-radius: 6px;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.item-label { .item-label {
font-size: 13px; font-size: 12px;
font-weight: 600; font-weight: 400;
color: @text-dark; color: @text-dark;
text-align: center; text-align: center;
} line-height: 1.67;
.item-arrow {
position: absolute;
top: 50%;
right: 12px;
display: flex;
font-size: 14px;
color: @green-primary;
opacity: 0;
transform: translateX(-4px);
transition: all 0.3s ease;
align-items: center;
}
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
} }
} }
@media (max-width: 1200px) { @media (max-width: 1200px) {
.account-shortcuts .shortcuts-grid { .account-shortcuts .shortcuts-row {
grid-template-columns: repeat(2, 1fr); flex-wrap: wrap;
} }
}
@media (max-width: 480px) { .shortcut-item {
.account-shortcuts .shortcuts-grid { min-width: 33.33%;
grid-template-columns: 1fr 1fr;
gap: 10px;
} }
} }
</style> </style>

View File

@ -0,0 +1,210 @@
<template>
<div class="panel-card carbon-service-table">
<div class="table-wrapper">
<table class="data-table">
<thead>
<tr>
<th class="col-title">标题</th>
<th class="col-industry">所属行业</th>
<th class="col-scope">服务范围</th>
<th class="col-time">创建时间</th>
<th class="col-status">状态</th>
<th class="col-action">操作</th>
</tr>
</thead>
<tbody>
<tr v-for="item in tableData" :key="item.id">
<td class="col-title">{{ item.title }}</td>
<td class="col-industry">{{ item.industry }}</td>
<td class="col-scope">{{ item.scope }}</td>
<td class="col-time">{{ item.createTime }}</td>
<td class="col-status">
<span class="status-dot" :class="item.status === 'online' ? 'status--online' : 'status--offline'"></span>
{{ item.status === 'online' ? '已上线' : '未上线' }}
</td>
<td class="col-action">
<a class="action-link" @click="handleView(item)">查看</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</template>
<script>
import { ListIcon } from 'tdesign-icons-vue';
export default {
name: 'CarbonServiceTable',
components: {
ListIcon,
},
data() {
return {
tableData: [
{ id: 1, title: '碳服务供给信息', industry: '制造业', scope: '全国', createTime: '2026-04-20', status: 'online' },
{ id: 2, title: '碳服务供给信息', industry: '制造业', scope: '全国', createTime: '2026-04-18', status: 'online' },
{ id: 3, title: '碳服务供给信息', industry: '制造业', scope: '全国', createTime: '2026-04-15', status: 'offline' },
{ id: 4, title: '碳服务供给信息', industry: '制造业', scope: '全国', createTime: '2026-04-10', status: 'online' },
{ id: 5, title: '碳服务供给信息', industry: '制造业', scope: '全国', createTime: '2026-04-08', status: 'offline' },
],
};
},
methods: {
handleView(item) {
console.log('查看详情', item);
},
},
};
</script>
<style lang="less" scoped>
@green-primary: #48C666;
@green-dark: #2D8A45;
@green-light: #E8FFEA;
@text-dark: #1A2B3C;
@text-muted: #6B7C8D;
@text-light: #94A3B8;
@bg-card: #FFFFFF;
@border-light: rgba(0, 0, 0, 0.06);
@shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.04);
@shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
.carbon-service-table {
overflow: hidden;
background: @bg-card;
border: 1px solid @border-light;
border-radius: 4px;
box-shadow: @shadow-card;
}
.panel-header {
display: flex;
align-items: center;
gap: 14px;
padding: 18px 24px 16px;
background: linear-gradient(180deg, #FAFFFE 0%, @bg-card 100%);
border-bottom: 1px solid @border-light;
.header-icon {
display: flex;
width: 40px;
height: 40px;
font-size: 20px;
color: #fff;
background: linear-gradient(135deg, @green-primary 0%, @green-dark 100%);
border-radius: 10px;
box-shadow: 0 4px 12px rgba(72, 198, 102, 0.3);
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.header-text {
flex: 1;
min-width: 0;
}
.panel-title {
margin: 0;
font-size: 16px;
font-weight: 600;
line-height: 1.4;
color: @text-dark;
}
}
.table-wrapper {
overflow-x: auto;
}
.data-table {
width: 100%;
border-collapse: collapse;
th,
td {
padding: 14px 16px;
text-align: left;
font-size: 13px;
border-bottom: 1px solid @border-light;
}
th {
font-weight: 600;
color: @text-muted;
background: #FAFBFC;
}
td {
color: @text-dark;
}
tbody tr {
transition: background 0.2s ease;
&:hover {
background: rgba(72, 198, 102, 0.03);
}
&:last-child td {
border-bottom: none;
}
}
.col-title {
min-width: 200px;
}
.col-industry {
min-width: 100px;
}
.col-scope {
min-width: 80px;
}
.col-time {
min-width: 120px;
color: @text-muted;
}
.col-status {
min-width: 100px;
.status-dot {
display: inline-block;
width: 6px;
height: 6px;
margin-right: 6px;
border-radius: 50%;
vertical-align: middle;
&.status--online {
background: @green-primary;
}
&.status--offline {
background: #F56161;
}
}
}
.col-action {
min-width: 60px;
}
.action-link {
font-size: 14px;
font-weight: 500;
color: #3491FA;
cursor: pointer;
transition: color 0.2s ease;
&:hover {
color: @green-dark;
}
}
}
</style>

View File

@ -1,41 +1,44 @@
<template> <template>
<div class="enterprise-cert"> <div class="enterprise-cert">
<div class="cert-header"> <div class="cert-bg"></div>
<div class="cert-icon"> <div class="cert-content">
<UserIcon /> <div class="cert-header">
</div> <div class="cert-title">
<div class="cert-title"> <h3>企业认证</h3>
<h3>企业认证</h3> <span class="cert-status" v-show="certData.qymc">{{ statusText }}</span>
<span class="cert-status" :class="statusClass">{{ statusText }}</span>
</div>
</div>
<div class="cert-body">
<template v-if="certData.qymc">
<div class="cert-info">
<div class="info-row">
<span class="info-label">企业名称</span>
<span class="info-value">{{ certData.qymc }}</span>
</div>
<div class="info-row">
<span class="info-label">统一社会信用代码</span>
<span class="info-value">{{ certData.nsrsbh }}</span>
</div>
<div class="info-row">
<span class="info-label">认证时间</span>
<span class="info-value">{{ formatDate(certData.lrrq) }}</span>
</div>
</div> </div>
</template> </div>
<template v-else> <div class="cert-body">
<div class="cert-empty"> <template v-if="certData.qymc">
<span>暂未认证企业信息</span> <div class="cert-info">
</div> <div class="info-row">
</template> <span class="name-icon"></span>
<div class="cert-actions"> <!-- <span class="info-label">企业名称</span> -->
<button class="cert-btn" @click="handleClick"> <span class="info-value">{{ certData.qymc }}</span>
<span>{{ certData.qymc ? '查看详情' : '立即认证' }}</span> </div>
<ArrowRightIcon /> <div class="info-row">
</button> <span class="eid-icon"></span>
<!-- <span class="info-label">统一社会信用代码</span> -->
<span class="info-value">{{ certData.nsrsbh }}</span>
</div>
<div class="info-row">
<span class="cert-icon"></span>
<span class="info-label">认证时间</span>
<span class="info-value">{{ formatDate(certData.lrrq) }}</span>
</div>
</div>
</template>
<template v-else>
<div class="cert-empty">
<span>暂未认证企业信息</span>
</div>
</template>
<!-- <div class="cert-actions">
<button class="cert-btn" @click="handleClick">
<span>{{ certData.qymc ? '查看详情' : '立即认证' }}</span>
<ArrowRightIcon />
</button>
</div> -->
</div> </div>
</div> </div>
</div> </div>
@ -43,29 +46,20 @@
<script> <script>
import api from '@/pages/index/api/gxzx/index.js'; import api from '@/pages/index/api/gxzx/index.js';
import { UserIcon, ArrowRightIcon } from 'tdesign-icons-vue'; import { ArrowRightIcon } from 'tdesign-icons-vue';
export default { export default {
name: 'EnterpriseCert', name: 'EnterpriseCert',
components: { components: {
UserIcon,
ArrowRightIcon, ArrowRightIcon,
}, },
data() { data() {
return { return {
certData: {}, certData: {
qymc: '',
},
}; };
}, },
computed: {
statusText() {
if (!this.certData.qymc) return '未认证';
return '已认证';
},
statusClass() {
if (!this.certData.qymc) return 'status--unreviewed';
return 'status--certified';
},
},
mounted() { mounted() {
this.fetchCertData(); this.fetchCertData();
}, },
@ -95,142 +89,160 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@green-primary: #48C666; @green-primary: #00B42A;
@green-dark: #2D8A45; @green-dark: #008530;
@green-light: #E8FFEA; @green-light: #E8FFEA;
@text-dark: #1A2B3C; @text-dark: #1D2129;
@text-muted: #6B7C8D; @text-muted: #4E5969;
@text-light: #94A3B8; @text-light: #86909C;
@bg-card: #FFFFFF; @bg-card: #FFFFFF;
@border-light: rgba(0, 0, 0, 0.06);
@shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.1);
.enterprise-cert { .enterprise-cert {
width: 100%; position: relative;
width: 280px;
height: 170px;
overflow: hidden; overflow: hidden;
background: @bg-card; background: @bg-card;
border: 1px solid @border-light; border-radius: 4px;
border-radius: 16px; box-shadow: 0 4px 8px 0 rgba(0, 185, 107, 0.2);
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); }
transition: box-shadow 0.3s ease;
&:hover { .cert-bg {
box-shadow: @shadow-hover; position: absolute;
} top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('./cert-bg.png');
background-size: cover;
background-position: center;
opacity: 0.6;
pointer-events: none;
}
.cert-content {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
height: 100%;
padding: 20px;
} }
.cert-header { .cert-header {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 12px; gap: 10px;
padding: 16px 20px; margin-bottom: 16px;
background: linear-gradient(180deg, #FAFFFE 0%, @bg-card 100%);
border-bottom: 1px solid @border-light;
.cert-icon {
display: flex;
width: 40px;
height: 40px;
font-size: 20px;
color: #fff;
background: linear-gradient(135deg, @green-primary 0%, @green-dark 100%);
border-radius: 10px;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.cert-title { .cert-title {
flex: 1; width: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 10px; gap: 8px;
justify-content: space-between;
h3 { h3 {
margin: 0; margin: 0;
font-size: 15px; font-size: 16px;
font-weight: 600; font-weight: 600;
color: @text-dark; color: @text-dark;
} }
.cert-status { .cert-status {
padding: 3px 10px; width: 70px;
font-size: 11px; height: 22px;
font-weight: 600; background-image: url('./cert-label.png');
border-radius: 20px; background-size: 100% 100%;
background-position: center;
&.status--certified {
color: @green-dark;
background: @green-light;
}
&.status--pending {
color: #F9A825;
background: #FFF8E1;
}
&.status--unreviewed {
color: @text-muted;
background: #F5F5F5;
}
} }
} }
} }
.cert-body { .cert-body {
padding: 16px 20px; flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
} }
.cert-info { .cert-info {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 12px;
margin-bottom: 14px;
.info-row { .info-row {
display: flex; display: flex;
justify-content: space-between; justify-content: flex-start;
align-items: center; align-items: center;
.info-label { .info-label {
font-size: 12px; font-size: 14px;
color: @text-muted; color: #344F3D;
margin: 0 4px;
} }
.info-value { .info-value {
font-size: 12px; font-size: 14px;
font-weight: 500; // font-weight: 500;
color: @text-dark; color: #344F3D;
} }
} }
.name-icon {
display: flex;
width: 20px;
height: 20px;
background-image: url('./cert-icon.png');
background-size: 100% 100%;
background-position: center;
margin-right: 4px;
}
.eid-icon {
display: flex;
width: 20px;
height: 20px;
background-image: url('./eid-icon.png');
background-size: 100% 100%;
background-position: center;
margin-right: 4px;
}
.cert-icon {
display: flex;
width: 20px;
height: 20px;
background-image: url('./cert-icon.png');
background-size: 100% 100%;
background-position: center;
}
} }
.cert-empty { .cert-empty {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
height: 60px; flex: 1;
margin-bottom: 14px; font-size: 12px;
font-size: 13px;
color: @text-muted; color: @text-muted;
} }
.cert-actions { .cert-actions {
margin-top: auto;
.cert-btn { .cert-btn {
display: flex; display: flex;
width: 100%; width: 100%;
padding: 10px; padding: 8px;
font-size: 13px; font-size: 12px;
font-weight: 600; font-weight: 600;
color: @green-primary; color: @green-primary;
cursor: pointer; cursor: pointer;
background: @green-light; background: @green-light;
border: 1px solid rgba(72, 198, 102, 0.2); border: 1px solid rgba(0, 180, 42, 0.2);
border-radius: 8px; border-radius: 4px;
transition: all 0.3s ease; transition: all 0.3s ease;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 6px; gap: 4px;
&:hover { &:hover {
color: #fff; color: #fff;
@ -239,7 +251,7 @@ export default {
} }
.t-icon { .t-icon {
font-size: 14px; font-size: 12px;
transition: transform 0.3s ease; transition: transform 0.3s ease;
} }

View File

@ -1,11 +1,7 @@
<template> <template>
<div class="policy-news"> <div class="policy-news">
<div class="panel-header"> <div class="panel-header">
<div class="header-icon">
<NotificationIcon />
</div>
<h3 class="header-title">{{ title }}</h3> <h3 class="header-title">{{ title }}</h3>
<span class="header-tag">政策</span>
</div> </div>
<div class="news-list"> <div class="news-list">
<div <div
@ -15,25 +11,24 @@
:style="{ '--delay': `${index * 0.08}s` }" :style="{ '--delay': `${index * 0.08}s` }"
> >
<div class="item-indicator"> <div class="item-indicator">
<div class="indicator-dot" :style="{ background: item.leftBorderColor }"></div> <div class="date-block">
<div class="indicator-line" :style="{ background: item.leftBorderColor }"></div> <span class="date-day">{{ item.day || '18' }}</span>
<span class="date-month">{{ item.month || '2026.04' }}</span>
</div>
<div class="date-line"></div>
</div> </div>
<div class="item-content"> <div class="item-content">
<p class="item-title">{{ item.title }}</p> <p class="item-title">{{ item.title }}</p>
<div class="item-meta"> <p class="item-desc">{{ item.desc || item.content }}</p>
<span class="meta-tag" :style="{ background: `${item.leftBorderColor}20`, color: item.leftBorderColor }">
{{ item.tag || '重要' }}
</span>
</div>
</div> </div>
</div> </div>
</div> </div>
<div class="panel-footer"> <!-- <div class="panel-footer">
<span class="more-link"> <span class="more-link">
查看全部 查看全部
<ArrowRightIcon /> <ArrowRightIcon />
</span> </span>
</div> </div> -->
</div> </div>
</template> </template>
@ -56,22 +51,21 @@ export default {
default: () => [ default: () => [
{ {
id: 1, id: 1,
title: '关于做好2026年全国碳排放权交易市场有关工作的通知', title: '"十五五"新图景:增绿降碳 加减之间再造万亿级新机遇',
leftBorderColor: '#3491FA', content: '"十五五"规划纲要中提出,加快经济社会发展全面绿色转型。当前,一场增绿降碳的变革正在重塑我们的生产生活方式,持续激发绿色发展动能。',
day: '18',
month: '2026.04',
tag: '官方', tag: '官方',
}, },
{ {
id: 2, id: 2,
title: '第一财经研究院碳市场月报2026年全国碳市场相关工作安排出炉', title: '全球最大输送容量海上风电项目进入首个集中施工期',
leftBorderColor: '#F9A825', content: '粤西海域离岸70公里外水深超50米一场绿色能源的接力正在加紧进行。全球最大输送容量海上风电项目现在进入开春后的首个集中施工期。',
day: '17',
month: '2026.04',
tag: '研究', tag: '研究',
}, },
{
id: 3,
title: '2026年全国碳市场重点工作从存证到清缴一步都不能少',
leftBorderColor: '#78909C',
tag: '解读',
},
], ],
}, },
}, },
@ -82,9 +76,9 @@ export default {
@green-primary: #48C666; @green-primary: #48C666;
@green-dark: #2D8A45; @green-dark: #2D8A45;
@green-light: #E8FFEA; @green-light: #E8FFEA;
@text-dark: #1A2B3C; @text-dark: #333333;
@text-muted: #6B7C8D; @text-muted: #666666;
@text-light: #94A3B8; @text-light: #999999;
@bg-card: #FFFFFF; @bg-card: #FFFFFF;
@bg-panel: #F8FAFB; @bg-panel: #F8FAFB;
@border-light: rgba(0, 0, 0, 0.06); @border-light: rgba(0, 0, 0, 0.06);
@ -95,7 +89,8 @@ export default {
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
background: @bg-card; background: @bg-card;
border-radius: 16px; border: 1px solid @border-light;
border-radius: 4px;
box-shadow: @shadow-soft; box-shadow: @shadow-soft;
transition: box-shadow 0.3s ease; transition: box-shadow 0.3s ease;
@ -139,15 +134,18 @@ export default {
letter-spacing: 0.5px; letter-spacing: 0.5px;
color: @green-primary; color: @green-primary;
background: @green-light; background: @green-light;
border-radius: 20px; border-radius: 4px;
} }
} }
.news-list { .news-list {
display: flex; display: flex;
padding: 12px 20px; padding: 12px 20px;
flex-direction: column; // flex-direction: column;
gap: 4px; gap: 32px;
// display: grid;
// grid-template-columns: 1fr 1fr;
// gap: 20px;
} }
.news-item { .news-item {
@ -158,66 +156,86 @@ export default {
animation-delay: var(--delay); animation-delay: var(--delay);
transition: all 0.25s ease; transition: all 0.25s ease;
align-items: stretch; align-items: stretch;
gap: 16px;
min-width: 0;
&:last-child { &:last-child {
border-bottom: none; border-bottom: none;
} }
&:hover { &:hover {
transform: translateX(4px);
.item-title { .item-title {
color: @green-dark; color: @green-primary;
}
.indicator-dot {
transform: scale(1.3);
} }
} }
.item-indicator { .item-indicator {
display: flex; display: flex;
width: 20px; width: 55px;
padding-top: 4px; // flex-direction: column;
flex-direction: column; align-items: flex-start;
align-items: center;
flex-shrink: 0; flex-shrink: 0;
gap: 14px;
.indicator-dot { .date-block {
width: 8px; display: flex;
height: 8px; flex-direction: column;
border-radius: 50%; align-items: center;
transition: transform 0.25s ease; gap: 0;
} }
.indicator-line { .date-day {
width: 2px; font-family: 'San Francisco Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
margin-top: 6px; font-size: 24px;
border-radius: 1px; font-weight: 500;
opacity: 0.4; line-height: 1.19;
flex: 1; color: @text-dark;
}
.date-month {
font-size: 14px;
font-weight: 400;
color: @text-light;
line-height: 1.27;
}
.date-line {
width: 0;
height: 72px;
border-left: 1px dashed #E7E7E7;
} }
} }
.item-content { .item-content {
display: flex; display: flex;
min-width: 0; min-width: 0;
padding-left: 12px; overflow: hidden;
flex: 1;
flex-direction: column; flex-direction: column;
gap: 8px; // gap: 9px;
} }
.item-title { .item-title {
overflow: hidden;
font-size: 16px;
font-weight: 500;
line-height: 1.4;
margin: 0;
color: @text-dark;
white-space: nowrap;
text-overflow: ellipsis;
transition: color 0.25s ease;
}
.item-desc {
display: -webkit-box; display: -webkit-box;
overflow: hidden; overflow: hidden;
font-size: 13px; font-size: 14px;
line-height: 1.6; font-weight: 400;
color: @text-dark; line-height: 1.57;
color: @text-muted;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
line-clamp: 2; line-clamp: 2;
transition: color 0.25s ease;
} }
.item-meta { .item-meta {

View File

@ -1,29 +1,23 @@
<template> <template>
<div class="quick-actions"> <div class="quick-actions">
<div class="actions-grid"> <div class="actions-row">
<button <button
v-for="(action, index) in actions" v-for="action in actions"
:key="action.label" :key="action.label"
class="action-item" class="action-item"
:style="{ '--delay': `${index * 0.06}s` }"
@click="handleClick(action.to)" @click="handleClick(action.to)"
> >
<div class="item-icon-wrap"> <div class="item-icon" :style="{ background: action.bgColor }">
<div class="item-icon" :style="{ background: action.bgColor, color: action.color }"> <component :is="getIconComponent(action.icon)" :style="{ color: action.color }" />
<component :is="getIconComponent(action.icon)" />
</div>
</div> </div>
<span class="item-label">{{ action.label }}</span> <span class="item-label">{{ action.label }}</span>
<div class="item-arrow">
<ArrowRightIcon />
</div>
</button> </button>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { UploadIcon, CloudUploadIcon, EditIcon, BulletpointIcon, ArrowRightIcon } from 'tdesign-icons-vue'; import { UploadIcon, CloudUploadIcon, EditIcon, BulletpointIcon } from 'tdesign-icons-vue';
const iconMap = { const iconMap = {
upload: UploadIcon, upload: UploadIcon,
@ -39,15 +33,14 @@ export default {
CloudUploadIcon, CloudUploadIcon,
EditIcon, EditIcon,
BulletpointIcon, BulletpointIcon,
ArrowRightIcon,
}, },
data() { data() {
return { return {
actions: [ actions: [
{ label: '发布服务', to: '/yhzx/tfwgj', icon: 'upload', bgColor: '#E8FFEA', color: '#48C666' }, { label: '发布服务', to: '/yhzx/tfwgj', icon: 'upload', bgColor: '#E6F8F0', color: '#344F3D' },
{ label: '发布数据', to: '/yhzx/tfwgj?action=publishData', icon: 'cloud-upload', bgColor: '#E3F2FD', color: '#2196F3' }, { label: '发布数据', to: '/yhzx/tfwgj?action=publishData', icon: 'cloud-upload', bgColor: '#E6F8F0', color: '#344F3D' },
{ label: '发布需求', to: '/yhzx/tfwxq', icon: 'edit', bgColor: '#FFF8E1', color: '#FF9800' }, { label: '发布需求', to: '/yhzx/tfwxq', icon: 'edit', bgColor: '#E6F8F0', color: '#344F3D' },
{ label: '申请', to: '/yhzx/zzgl', icon: 'bulletpoint', bgColor: '#FCE4EC', color: '#E91E63' }, { label: '质申请', to: '/yhzx/zzgl', icon: 'bulletpoint', bgColor: '#E6F8F0', color: '#344F3D' },
], ],
}; };
}, },
@ -64,131 +57,63 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
@green-primary: #48C666; @green-primary: #48C666;
@green-dark: #2D8A45; @text-dark: #003B1A;
@green-light: #E8FFEA; @text-link: #008CFF;
@text-dark: #1A2B3C;
@text-muted: #6B7C8D;
@bg-card: #FFFFFF; @bg-card: #FFFFFF;
@border-light: rgba(0, 0, 0, 0.06); @border-light: #E5E6EB;
@shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.1);
.quick-actions { .quick-actions {
.actions-grid { .actions-row {
display: grid; display: flex;
grid-template-columns: repeat(4, 1fr); flex-wrap: wrap;
gap: 12px; gap: 8px;
} }
} }
.action-item { .action-item {
position: relative;
display: flex; display: flex;
padding: 20px 12px;
overflow: hidden;
cursor: pointer;
background: @bg-card;
border: 1px solid @border-light;
border-radius: 14px;
animation: fadeIn 0.4s ease backwards;
animation-delay: var(--delay);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
gap: 10px; gap: 8px;
padding: 12px;
&::before { cursor: pointer;
position: absolute; background: @bg-card;
top: 0; border: none;
right: 0; border-radius: 4px;
left: 0; transition: background 0.2s ease;
height: 3px; width: calc(33.33% - 6px);
background: linear-gradient(90deg, @green-primary, @green-dark); min-width: 0;
content: '';
transform: scaleX(0);
transition: transform 0.3s ease;
}
&:hover { &:hover {
border-color: transparent; background: #F5F7FA;
transform: translateY(-3px);
box-shadow: @shadow-hover;
&::before {
transform: scaleX(1);
}
.item-icon {
transform: scale(1.1);
}
.item-arrow {
opacity: 1;
transform: translateX(0);
}
}
&:active {
transform: translateY(-1px);
}
.item-icon-wrap {
display: flex;
align-items: center;
justify-content: center;
} }
.item-icon { .item-icon {
display: flex; display: flex;
width: 48px; width: 36px;
height: 48px; height: 36px;
font-size: 22px; font-size: 16px;
border-radius: 12px; border-radius: 6px;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.item-label { .item-label {
font-size: 13px; font-size: 12px;
font-weight: 600; font-weight: 400;
color: @text-dark; color: @text-dark;
text-align: center; text-align: center;
} line-height: 1.67;
.item-arrow {
position: absolute;
top: 50%;
right: 12px;
display: flex;
font-size: 14px;
color: @green-primary;
opacity: 0;
transform: translateX(-4px);
transition: all 0.3s ease;
}
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
} }
} }
@media (max-width: 1200px) { @media (max-width: 1200px) {
.quick-actions .actions-grid { .quick-actions .actions-row {
grid-template-columns: repeat(2, 1fr); flex-wrap: wrap;
} }
}
@media (max-width: 480px) { .action-item {
.quick-actions .actions-grid { min-width: 33.33%;
grid-template-columns: 1fr 1fr;
gap: 10px;
} }
} }
</style> </style>

View File

@ -1,221 +1,105 @@
<template> <template>
<div class="stats-card" :class="{ 'is-clickable': to }" @click="goTo"> <div class="stats-card">
<div class="card-glow"></div>
<div class="card-inner"> <div class="card-inner">
<div class="card-icon-wrap" :style="iconWrapStyle"> <div class="card-icon-wrap" :style="{ backgroundImage: `url(${iconUrl})` }"></div>
<div class="icon-inner" :style="iconInnerStyle">
<component :is="iconComponent" />
</div>
</div>
<div class="card-content"> <div class="card-content">
<div class="card-title">{{ title }}</div>
<div class="card-value"> <div class="card-value">
<span class="value-num">{{ count }}</span> <span class="value-num">{{ count }}</span>
<span class="value-unit">{{ unit }}</span> <span class="value-unit">{{ unit }}</span>
</div> </div>
<div class="card-title">{{ title }}</div>
</div> </div>
</div> </div>
<div class="card-shine"></div>
</div> </div>
</template> </template>
<script> <script>
import { UploadIcon, SearchIcon, SwapIcon, MailIcon } from 'tdesign-icons-vue';
const iconMap = {
upload: UploadIcon,
search: SearchIcon,
swap: SwapIcon,
mail: MailIcon,
};
export default { export default {
name: 'StatsCard', name: 'StatsCard',
components: {
UploadIcon,
SearchIcon,
SwapIcon,
MailIcon,
},
props: { props: {
title: String, title: String,
count: [String, Number], count: [String, Number],
unit: { type: String, default: '' }, unit: { type: String, default: '个' },
bgColor: { type: String, default: '#E8F5E9' }, bgColor: { type: String, default: '#E8F5E9' },
borderColor: { type: String, default: '#48C666' }, borderColor: { type: String, default: '#48C666' },
iconName: String, iconName: String,
to: String, to: String,
}, },
computed: { computed: {
iconWrapStyle() { iconUrl() {
return { const iconMap = {
background: `linear-gradient(135deg, ${this.bgColor} 0%, ${this.lightenColor(this.bgColor)} 100%)`, upload: require('./stats-1.png'),
boxShadow: this.borderColor !== 'transparent' search: require('./stats-2.png'),
? `0 8px 24px rgba(72, 198, 102, 0.25), inset 0 1px 0 rgba(255,255,255,0.4)` swap: require('./stats-3.png'),
: `0 4px 16px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.4)`, mail: require('./stats-4.png'),
}; };
}, return iconMap[this.iconName] || iconMap.upload;
iconInnerStyle() {
return {
color: this.borderColor !== 'transparent' ? this.borderColor : '#666',
};
},
iconComponent() {
return iconMap[this.iconName] || UploadIcon;
},
},
methods: {
lightenColor(hex) {
// Simple lighten: blend with white
const r = parseInt(hex.slice(1, 3), 16);
const g = parseInt(hex.slice(3, 5), 16);
const b = parseInt(hex.slice(5, 7), 16);
return `rgb(${Math.min(255, r + 60)}, ${Math.min(255, g + 60)}, ${Math.min(255, b + 60)})`;
},
goTo() {
if (this.to) {
this.$router.push(this.to);
}
}, },
}, },
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@green-primary: #48C666; @text-dark: #003B1A;
@green-dark: #2D8A45; @text-muted: #344F3D;
@green-light: #E8FFEA; @text-unit: #6B8575;
@bg-card: #FFFFFF; @border-light: #E5E6EB;
@text-dark: #1A2B3C;
@text-muted: #6B7C8D;
@shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.06);
@shadow-hover: 0 8px 32px rgba(72, 198, 102, 0.18);
.stats-card { .stats-card {
position: relative; width: 100%;
width: 180px; }
height: 100px;
overflow: hidden;
cursor: default;
background: @bg-card;
border-radius: 16px;
box-shadow: @shadow-soft;
transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
&.is-clickable { .card-inner {
cursor: pointer; display: flex;
align-items: center;
gap: 12px;
padding: 0 0 0 20px;
}
.card-icon-wrap {
width: 56px;
height: 56px;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
flex-shrink: 0;
}
.card-content {
min-width: 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.card-value {
display: flex;
align-items: flex-end;
gap: 7px;
.value-num {
font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
font-size: 28px;
font-weight: 600;
line-height: 1.14;
color: @text-dark;
} }
&:hover { .value-unit {
transform: translateY(-4px) scale(1.02);
box-shadow: @shadow-hover;
.card-glow {
opacity: 1;
}
.card-shine {
opacity: 1;
transform: translateX(100%);
}
.card-icon-wrap {
transform: scale(1.08);
}
}
.card-glow {
position: absolute;
top: -50%;
right: -50%;
width: 100%;
height: 100%;
pointer-events: none;
background: radial-gradient(circle, rgba(72, 198, 102, 0.15) 0%, transparent 70%);
opacity: 0;
transition: opacity 0.35s;
}
.card-inner {
position: relative;
z-index: 1;
display: flex;
height: 100%;
padding: 16px 18px;
align-items: center;
gap: 16px;
}
.card-icon-wrap {
display: flex;
width: 52px;
height: 52px;
border-radius: 14px;
transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
align-items: center;
justify-content: center;
flex-shrink: 0;
.icon-inner {
display: flex;
font-size: 22px;
align-items: center;
justify-content: center;
}
}
.card-content {
min-width: 0;
flex: 1;
}
.card-value {
display: flex;
margin-bottom: 4px;
align-items: baseline;
gap: 3px;
.value-num {
font-family: 'DIN Alternate', 'Helvetica Neue', Arial, sans-serif;
font-size: 32px;
font-weight: 700;
line-height: 1;
letter-spacing: -1px;
color: @text-dark;
}
.value-unit {
font-size: 12px;
font-weight: 500;
color: @text-muted;
}
}
.card-title {
overflow: hidden;
font-size: 13px; font-size: 13px;
font-weight: 500; font-weight: 400;
color: @text-muted; color: @text-unit;
text-overflow: ellipsis; line-height: 1.54;
white-space: nowrap;
}
.card-shine {
position: absolute;
top: 0;
left: 0;
width: 200%;
height: 100%;
pointer-events: none;
background: linear-gradient(
90deg,
transparent 0%,
rgba(255, 255, 255, 0.4) 50%,
transparent 100%
);
opacity: 0;
transform: translateX(-100%);
transition: all 0.6s ease;
} }
} }
</style>
.card-title {
overflow: hidden;
font-size: 13px;
font-weight: 400;
color: @text-muted;
text-overflow: ellipsis;
white-space: nowrap;
line-height: 1.54;
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -1,490 +1,340 @@
<template> <template>
<div class="gzt-page"> <div class="dashboard-container">
<!-- 装饰背景 --> <!-- 主内容区域 - 左右布局 -->
<div class="bg-decoration"> <section class="main-content">
<div class="deco-circle deco-circle--1"></div> <!-- 左侧内容区 - 整块白色背景 -->
<div class="deco-circle deco-circle--2"></div> <div class="content-left">
<div class="deco-dots"></div> <div class="left-panel">
</div> <!-- 欢迎登录 + 日期 -->
<header class="panel-section welcome-section">
<div class="gzt-container"> <div class="header-left">
<!-- 第一行欢迎区域 + 企业认证 --> <h1 class="welcome-title">欢迎登录</h1>
<div class="top-row">
<!-- 左侧欢迎 + 统计 -->
<div class="left-column">
<div class="welcome-section">
<div class="welcome-left">
<h1 class="welcome-title">欢迎回来</h1>
<p class="welcome-subtitle">{{ currentGreeting }}祝您工作顺利</p>
</div> </div>
<div class="welcome-right"> <div class="header-right">
<div class="time-widget"> <span class="current-date">{{ currentDate }}</span>
<div class="time-date">{{ currentDate }}</div>
<div class="time-weekday">{{ currentWeekday }}</div>
</div>
</div> </div>
</div> </header>
<!-- 统计卡片区域 --> <div class="section-divider"></div>
<div class="stats-section">
<div class="stats-grid"> <!-- 统计块 -->
<div class="panel-section stats-section">
<div class="stats-row">
<StatsCard <StatsCard
title="我的供给" title="我的供给"
:count="5" :count="5"
unit="条" unit="条"
bgColor="#E8FFEA" bg-color="#E3F2FD"
borderColor="#48C666" border-color="#1890FF"
iconName="upload" icon-name="upload"
to="/yhzx/wdgj"
/> />
<StatsCard <StatsCard
title="我的需求" title="我的需求"
:count="2" :count="2"
unit="条" unit="条"
bgColor="#E3F2FD" bg-color="#E8F5E9"
borderColor="#2196F3" border-color="#00B42A"
iconName="search" icon-name="search"
to="/yhzx/wdxq"
/> />
<StatsCard <StatsCard
title="绿色交易" title="绿色交易"
:count="1" :count="1"
unit="条" unit="条"
bgColor="#FFF8E1" bg-color="#E8FFEA"
borderColor="#FF9800" border-color="#00B42A"
iconName="swap" icon-name="swap"
to="/yhzx/lsjy"
/> />
<StatsCard <StatsCard
title="待处理消息" title="待处理消息"
:count="6" :count="6"
unit="条" unit="条"
bgColor="#FCE4EC" bg-color="#FFF7E6"
borderColor="#E91E63" border-color="#FF7D00"
iconName="mail" icon-name="mail"
to="/yhzx/ggwhgl"
/> />
</div> </div>
</div> </div>
</div>
<!-- 右侧企业认证 --> <div class="section-divider"></div>
<div class="right-column">
<EnterpriseCert /> <!-- 碳服务供给表格 -->
<div class="panel-section table-section">
<CarbonServiceTable />
</div>
<div class="section-divider"></div>
<!-- 政策公告 - 左右两个 -->
<div class="panel-section policy-section">
<PolicyNews />
</div>
</div> </div>
</div> </div>
<!-- 主要内容区 --> <!-- 右侧边栏 -->
<div class="main-content"> <aside class="content-right">
<!-- 左侧功能区 --> <!-- 企业认证卡片 -->
<div class="left-panel"> <EnterpriseCert />
<!-- 常用功能 -->
<div class="panel-card">
<div class="panel-header">
<div class="header-icon">
<AppIcon />
</div>
<div class="header-text">
<h2 class="panel-title">常用功能</h2>
<p class="panel-desc">快速访问核心功能</p>
</div>
</div>
<div class="panel-body">
<QuickActions />
</div>
</div>
<!-- 账号管理 --> <!-- 快捷入口 + 账号管理 -->
<div class="panel-card account-panel"> <div class="right-section">
<div class="panel-header"> <div class="section-header">
<div class="header-icon header-icon--account"> <h3 class="header-title">快捷入口</h3>
<SettingIcon /> <a class="header-link">管理</a>
</div>
<div class="header-text">
<h2 class="panel-title">账号管理</h2>
<p class="panel-desc">账户设置与安全</p>
</div>
</div>
<div class="panel-body">
<AccountShortcuts />
</div>
</div> </div>
</div> <QuickActions />
<!-- 右侧政策公告 --> <div class="section-divider"></div>
<div class="right-panel">
<PolicyNews /> <div class="section-header">
<h3 class="header-title">账号管理</h3>
</div>
<AccountShortcuts />
</div> </div>
</div> </aside>
</div> </section>
</div> </div>
</template> </template>
<script> <script>
import { AppIcon, SettingIcon } from 'tdesign-icons-vue';
import StatsCard from './components/StatsCard.vue'; import StatsCard from './components/StatsCard.vue';
import QuickActions from './components/QuickActions.vue'; import CarbonServiceTable from './components/CarbonServiceTable.vue';
import PolicyNews from './components/PolicyNews.vue'; import PolicyNews from './components/PolicyNews.vue';
import AccountShortcuts from './components/AccountShortcuts.vue';
import EnterpriseCert from './components/EnterpriseCert.vue'; import EnterpriseCert from './components/EnterpriseCert.vue';
import QuickActions from './components/QuickActions.vue';
import AccountShortcuts from './components/AccountShortcuts.vue';
import { SettingIcon } from 'tdesign-icons-vue';
export default { export default {
name: 'GztIndex', name: 'DashboardIndex',
components: { components: {
AppIcon,
SettingIcon,
StatsCard, StatsCard,
QuickActions, CarbonServiceTable,
PolicyNews, PolicyNews,
AccountShortcuts,
EnterpriseCert, EnterpriseCert,
QuickActions,
AccountShortcuts,
}, },
data() { computed: {
return { currentDate() {
currentDate: '',
currentWeekday: '',
currentGreeting: '',
};
},
mounted() {
this.updateDateTime();
},
methods: {
updateDateTime() {
const now = new Date(); const now = new Date();
const hours = now.getHours(); const year = now.getFullYear();
const month = now.getMonth() + 1;
const day = now.getDate();
const weekdays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']; const weekdays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
this.currentDate = `${now.getFullYear()}${now.getMonth() + 1}${now.getDate()}`; const weekday = weekdays[now.getDay()];
this.currentWeekday = weekdays[now.getDay()]; return `${year}${month}${day}${weekday}`;
if (hours < 12) {
this.currentGreeting = '早上好';
} else if (hours < 14) {
this.currentGreeting = '中午好';
} else if (hours < 18) {
this.currentGreeting = '下午好';
} else {
this.currentGreeting = '晚上好';
}
}, },
}, },
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@bg-page: #F5F7FA;
@bg-card: #FFFFFF;
@text-dark: #003B1A;
@text-muted: #4E5969;
@text-light: #86909C;
@border-light: #E5E6EB;
@shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.04);
@green-primary: #48C666; @green-primary: #48C666;
@green-dark: #2D8A45; @green-dark: #2D8A45;
@green-light: #E8FFEA; @link-color: #008CFF;
@green-soft: rgba(72, 198, 102, 0.08); @link-hover: #0066CC;
@text-dark: #1A2B3C;
@text-muted: #6B7C8D;
@text-light: #94A3B8;
@bg-page: #F4F7F6;
@bg-card: #FFFFFF;
@border-light: rgba(0, 0, 0, 0.06);
@shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.04);
@shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
// ========== ========== .dashboard-container {
.gzt-page { min-height: 100vh;
position: relative; padding: 24px;
min-height: 100%;
padding: 28px 32px;
overflow: hidden;
background: @bg-page; background: @bg-page;
} }
.bg-decoration { //
position: absolute; .main-content {
overflow: hidden;
pointer-events: none;
inset: 0;
.deco-circle {
position: absolute;
border-radius: 50%;
opacity: 0.5;
&--1 {
top: -120px;
right: -80px;
width: 400px;
height: 400px;
background: radial-gradient(circle, rgba(72, 198, 102, 0.12) 0%, transparent 70%);
}
&--2 {
bottom: -100px;
left: -100px;
width: 350px;
height: 350px;
background: radial-gradient(circle, rgba(45, 138, 69, 0.08) 0%, transparent 70%);
}
&--dots {
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: radial-gradient(circle, rgba(0,0,0,0.03) 1px, transparent 1px);
background-size: 24px 24px;
}
}
}
.gzt-container {
position: relative;
z-index: 1;
max-width: 1280px;
margin: 0 auto;
}
// ========== ==========
.top-row {
display: grid; display: grid;
grid-template-columns: 1fr 300px; grid-template-columns: 1fr 300px;
gap: 20px; gap: 24px;
margin-bottom: 24px; align-items: start;
animation: fadeSlideUp 0.5s ease backwards;
} }
.left-column { //
display: flex; .content-left {
flex-direction: column; min-width: 0;
gap: 16px;
} }
.right-column { //
display: flex; .left-panel {
width: 300px; padding: 20px;
flex-shrink: 0; background: @bg-card;
border-radius: 4px;
box-shadow: @shadow-soft;
overflow: hidden;
} }
// ========== ========== //
.panel-section {
// padding: 24px 28px;
}
// 线
.section-divider {
height: 1px;
background: @border-light;
}
//
.welcome-section { .welcome-section {
display: flex; display: flex;
padding: 20px 24px;
background: linear-gradient(135deg, #FFF 0%, #FAFFFE 50%, @green-soft 100%);
border: 1px solid rgba(72, 198, 102, 0.1);
border-radius: 16px;
box-shadow: @shadow-soft;
align-items: flex-start;
justify-content: space-between; justify-content: space-between;
} align-items: flex-start;
padding-bottom: 20px;
.welcome-left { .header-left {
.welcome-badge { .welcome-title {
display: inline-flex; margin: 0;
padding: 5px 12px; font-size: 24px;
margin-bottom: 8px; font-weight: 700;
font-size: 12px;
font-weight: 600;
color: @green-dark;
background: @green-light;
border: 1px solid rgba(72, 198, 102, 0.2);
border-radius: 20px;
align-items: center;
gap: 6px;
.t-icon {
font-size: 13px;
}
}
.welcome-title {
margin: 0 0 6px;
font-size: 24px;
font-weight: 700;
letter-spacing: -0.5px;
color: @text-dark;
}
.welcome-subtitle {
margin: 0;
font-size: 13px;
color: @text-muted;
}
}
.welcome-right {
.time-widget {
padding: 8px 12px;
text-align: right;
background: rgba(255, 255, 255, 0.8);
border: 1px solid @border-light;
border-radius: 8px;
.time-date {
margin-bottom: 2px;
font-size: 12px;
font-weight: 600;
color: @text-dark; color: @text-dark;
} }
}
.time-weekday { .header-right {
font-size: 11px; .current-date {
font-size: 14px;
font-weight: 500;
color: @text-muted; color: @text-muted;
} }
} }
} }
// ========== ========== //
.stats-section { .stats-section {
animation: fadeSlideUp 0.5s ease backwards; padding-top: 20px;
animation-delay: 0.1s; padding-bottom: 20px;
}
.section-header { .stats-row {
display: flex; display: flex;
align-items: center; gap: 0;
gap: 12px;
margin-bottom: 16px;
.header-line { & > :not(:last-child) {
width: 32px; padding-right: 16px;
height: 4px; margin-right: 16px;
background: linear-gradient(90deg, @green-primary, @green-dark); border-right: 1px dashed @border-light;
border-radius: 2px; }
}
.section-label {
font-size: 13px;
font-weight: 600;
letter-spacing: 1px;
color: @text-muted;
text-transform: uppercase;
} }
} }
.stats-grid { //
display: flex; .table-section {
gap: 20px; padding-top: 20px;
flex-wrap: wrap; padding-bottom: 20px;
} }
// ========== ========== //
.main-content { .policy-section {
display: grid; padding-top: 20px;
grid-template-columns: 1fr 300px;
gap: 24px;
animation: fadeSlideUp 0.5s ease backwards;
animation-delay: 0.2s;
} }
.left-panel { //
.content-right {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 24px; gap: 20px;
} width: 280px;
.right-panel {
width: 300px;
flex-shrink: 0; flex-shrink: 0;
}
.panel-card { .right-section {
overflow: hidden; padding: 20px;
background: @bg-card; background: @bg-card;
border: 1px solid @border-light; border-radius: 4px;
border-radius: 20px; box-shadow: @shadow-soft;
box-shadow: @shadow-card; overflow: hidden;
} }
.panel-header { .section-header {
display: flex;
align-items: center;
gap: 14px;
padding: 18px 24px 16px;
background: linear-gradient(180deg, #FAFFFE 0%, @bg-card 100%);
border-bottom: 1px solid @border-light;
.header-icon {
display: flex; display: flex;
width: 40px; align-items: flex-end;
height: 40px; justify-content: space-between;
font-size: 20px; gap: 4px;
color: #fff; padding-bottom: 16px;
background: linear-gradient(135deg, @green-primary 0%, @green-dark 100%);
border-radius: 10px;
box-shadow: 0 4px 12px rgba(72, 198, 102, 0.3);
align-items: center;
justify-content: center;
flex-shrink: 0;
&--account { .header-title {
background: linear-gradient(135deg, #78909C 0%, #546E7A 100%); margin: 0;
box-shadow: 0 4px 12px rgba(120, 144, 156, 0.3); font-size: 16px;
font-weight: 500;
color: @text-dark;
line-height: 1.5;
}
.header-link {
font-size: 14px;
font-weight: 400;
color: @link-color;
text-decoration: none;
cursor: pointer;
&:hover {
color: @link-hover;
}
} }
} }
.header-text { .section-divider {
flex: 1; height: 0;
min-width: 0; margin: 20px 0;
} border-top: 1px solid @border-light;
.panel-title {
margin: 0;
font-size: 16px;
font-weight: 600;
line-height: 1.4;
color: @text-dark;
}
.panel-desc {
margin: 2px 0 0;
font-size: 12px;
line-height: 1.4;
color: @text-light;
} }
} }
.panel-body { //
padding: 18px 24px; @media (max-width: 1400px) {
} .main-content {
grid-template-columns: 1fr 280px;
// ========== ==========
@keyframes fadeSlideUp {
from {
opacity: 0;
transform: translateY(16px);
} }
to {
opacity: 1; .content-right {
transform: translateY(0); width: 280px;
.right-section {
padding: 16px;
}
} }
} }
// ========== ========== @media (max-width: 1200px) {
@media (max-width: 1024px) {
.main-content { .main-content {
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
.stats-grid { .content-right {
gap: 16px; width: 100%;
flex-direction: row;
& > * {
flex: 1;
}
}
.stats-section .stats-row {
grid-template-columns: repeat(2, 1fr);
}
.policy-section {
grid-template-columns: 1fr;
} }
} }
@media (max-width: 768px) { @media (max-width: 768px) {
.gzt-page { .dashboard-container {
padding: 20px 16px; padding: 16px;
} }
.welcome-section { .welcome-section {
flex-direction: column; flex-direction: column;
padding: 20px; gap: 12px;
} }
.welcome-right { .stats-section .stats-row {
margin-top: 16px; grid-template-columns: 1fr;
.time-widget {
text-align: left;
}
}
.stats-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
} }
} }
</style> </style>

View File

@ -103,7 +103,7 @@
</div> </div>
<div class="capability-grid"> <div class="capability-grid">
<div class="capability-card" v-for="(item, index) in capabilityList" :key="index"> <div class="capability-card" v-for="(item, index) in capabilityList" :key="index" @click="handleCapabilityClick(item)">
<div class="capability-card-content"> <div class="capability-card-content">
<img :src="item.icon" :alt="item.name" class="capability-icon" /> <img :src="item.icon" :alt="item.name" class="capability-icon" />
<span class="capability-name">{{ item.name }}</span> <span class="capability-name">{{ item.name }}</span>
@ -260,12 +260,12 @@ export default {
// require('@/pages/index/assets/home-top-bg3.jpg'), // require('@/pages/index/assets/home-top-bg3.jpg'),
], ],
capabilityList: [ capabilityList: [
{ name: '碳核算平台', icon: require('@/pages/index/assets/home-thspt-icon.png') }, { name: '碳核算平台', icon: require('@/pages/index/assets/home-thspt-icon.png'), anchor: 'content-1' },
{ name: '碳交易平台', icon: require('@/pages/index/assets/home-tjypt-icon.png') }, { name: '碳交易平台', icon: require('@/pages/index/assets/home-tjypt-icon.png'), anchor: 'content-3' },
{ name: '碳认证机构', icon: require('@/pages/index/assets/home-trzjg-icon.png') }, { name: '碳认证机构', icon: require('@/pages/index/assets/home-trzjg-icon.png'), anchor: 'content-2' },
{ name: '碳金融服务', icon: require('@/pages/index/assets/home-tjrfw-icon.png') }, { name: '碳金融服务', icon: require('@/pages/index/assets/home-tjrfw-icon.png'), anchor: 'content-4' },
{ name: '碳技术咨询', icon: require('@/pages/index/assets/home-tjszx-icon.png') }, { name: '碳技术咨询', icon: require('@/pages/index/assets/home-tjszx-icon.png'), anchor: 'content-5' },
{ name: '更多能力', icon: require('@/pages/index/assets/home-gdnl-icon.png') } { name: '更多能力', icon: require('@/pages/index/assets/home-gdnl-icon.png'), anchor: '' }
], ],
coreList: [ coreList: [
{ {
@ -460,6 +460,13 @@ export default {
console.log('点击企业出海:', item.title); console.log('点击企业出海:', item.title);
this.$message.info(`${item.title} - ${item.btnText}`); this.$message.info(`${item.title} - ${item.btnText}`);
}, },
handleCapabilityClick(item) {
if (item.anchor) {
this.$router.push({ path: '/gxnlpt', query: { anchor: item.anchor } });
} else {
this.$router.push('/gxnlpt');
}
},
// //
handleNewsClick(item) { handleNewsClick(item) {
if (item.src) { if (item.src) {

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="change-password-page"> <div class="change-password-page">
<div class="page-header"> <div class="page-header">
<div class="page-title">账号管理</div> <div class="page-title">修改密码</div>
</div> </div>
<div class="page-content"> <div class="page-content">
<t-form <t-form