taskid:110 remark:'commit'
This commit is contained in:
@@ -0,0 +1,319 @@
|
||||
<template>
|
||||
<div class="mainContant" v-if="homePage">
|
||||
<a-card class="card" style="margin-right: 1%; margin-bottom: 1%">
|
||||
<div class="top" style="background: rgba(252, 139, 78, 0.05)">
|
||||
<div class="moneyImg"
|
||||
><img width="68px" height="68px" src="../../../../src/icon/carbonAssetsMoney-1.svg"
|
||||
/></div>
|
||||
<div class="moneyTitle">全国碳账户估值(CNY)</div>
|
||||
<div class="moneyTotal" style="color: rgba(229, 102, 22, 1)">300,000.00</div>
|
||||
<div class="moneyDetail"
|
||||
><img width="34px" height="34px" src="../../../../src/icon/carbonAssetsSearch-1.svg"
|
||||
/></div>
|
||||
</div>
|
||||
<div class="title">
|
||||
<img width="24px" height="24px" src="../../../../src/icon/carbonAssetsTitle-1.svg" />
|
||||
<span>全国碳账户余额</span>
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<div class="calculation TLCard">
|
||||
<div class="money">75,000.00</div>
|
||||
<div class="moneyType">期初余额(tCO2)</div>
|
||||
</div>
|
||||
<img width="17px" height="17px" src="../../../../src/icon/carbonAssetsAdd.svg" />
|
||||
<div class="calculation TLCard">
|
||||
<div class="money">20,000.00</div>
|
||||
<div class="moneyType">
|
||||
<img width="20px" height="17px" src="../../../../src/icon/carbonAssetsIncrease.svg" />
|
||||
增加(tCO2)
|
||||
</div>
|
||||
</div>
|
||||
<img width="17px" height="17px" src="../../../../src/icon/carbonAssetsReduce.svg" />
|
||||
<div class="calculation TLCard">
|
||||
<div class="money">20,000.00</div>
|
||||
<div class="moneyType">
|
||||
<img width="20px" height="17px" src="../../../../src/icon/carbonAssetsLower.svg" />
|
||||
减少(tCO2)
|
||||
</div>
|
||||
</div>
|
||||
<img width="17px" height="17px" src="../../../../src/icon/carbonAssetsEqual.svg" />
|
||||
<div class="calculation TLCard">
|
||||
<div class="money">75,000.00</div>
|
||||
<div class="moneyType">期末余额(tCO2)</div>
|
||||
</div>
|
||||
</div>
|
||||
</a-card>
|
||||
<a-card class="card" style="margin-bottom: 1%">
|
||||
<div class="top" style="background: rgba(234, 71, 54, 0.05)">
|
||||
<div class="moneyImg"
|
||||
><img width="68px" height="68px" src="../../../../src/icon/carbonAssetsMoney-2.svg"
|
||||
/></div>
|
||||
<div class="moneyTitle">地方碳账户估值(CNY)</div>
|
||||
<div class="moneyTotal" style="color: rgba(229, 102, 22, 1)">300,000.00</div>
|
||||
<div class="moneyDetail"
|
||||
><img width="34px" height="34px" src="../../../../src/icon/carbonAssetsSearch-2.svg"
|
||||
/></div>
|
||||
</div>
|
||||
<div class="title">
|
||||
<img width="24px" height="24px" src="../../../../src/icon/carbonAssetsTitle-2.svg" />
|
||||
<span>地方碳账户余额</span>
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<div class="calculation TRCard">
|
||||
<div class="money">75,000.00</div>
|
||||
<div class="moneyType">期初余额(tCO2)</div>
|
||||
</div>
|
||||
<img width="17px" height="17px" src="../../../../src/icon/carbonAssetsAdd.svg" />
|
||||
<div class="calculation TRCard">
|
||||
<div class="money">20,000.00</div>
|
||||
<div class="moneyType">
|
||||
<img width="20px" height="17px" src="../../../../src/icon/carbonAssetsIncrease.svg" />
|
||||
增加(tCO2)
|
||||
</div>
|
||||
</div>
|
||||
<img width="17px" height="17px" src="../../../../src/icon/carbonAssetsReduce.svg" />
|
||||
<div class="calculation TRCard">
|
||||
<div class="money">20,000.00</div>
|
||||
<div class="moneyType">
|
||||
<img width="20px" height="17px" src="../../../../src/icon/carbonAssetsLower.svg" />
|
||||
减少(tCO2)
|
||||
</div>
|
||||
</div>
|
||||
<img width="17px" height="17px" src="../../../../src/icon/carbonAssetsEqual.svg" />
|
||||
<div class="calculation TRCard">
|
||||
<div class="money">75,000.00</div>
|
||||
<div class="moneyType">期末余额(tCO2)</div>
|
||||
</div>
|
||||
</div>
|
||||
</a-card>
|
||||
<a-card class="card" style="margin-right: 1%">
|
||||
<div class="top" style="background: rgba(65, 163, 224, 0.05)">
|
||||
<div class="moneyImg"
|
||||
><img width="68px" height="68px" src="../../../../src/icon/carbonAssetsMoney-3.svg"
|
||||
/></div>
|
||||
<div class="moneyTitle">CCER资产估值(CNY)</div>
|
||||
<div class="moneyTotal" style="color: rgba(229, 102, 22, 1)">300,000.00</div>
|
||||
<div class="moneyDetail"
|
||||
><img width="34px" height="34px" src="../../../../src/icon/carbonAssetsSearch-3.svg"
|
||||
/></div>
|
||||
</div>
|
||||
<div class="title">
|
||||
<img width="24px" height="24px" src="../../../../src/icon/carbonAssetsTitle-3.svg" />
|
||||
<span>全国碳账户余额</span>
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<div class="calculation BLCard">
|
||||
<div class="money">75,000.00</div>
|
||||
<div class="moneyType">期初余额(tCO2)</div>
|
||||
</div>
|
||||
<img width="17px" height="17px" src="../../../../src/icon/carbonAssetsAdd.svg" />
|
||||
<div class="calculation BLCard">
|
||||
<div class="money">20,000.00</div>
|
||||
<div class="moneyType">
|
||||
<img width="20px" height="17px" src="../../../../src/icon/carbonAssetsIncrease.svg" />
|
||||
增加(tCO2)
|
||||
</div>
|
||||
</div>
|
||||
<img width="17px" height="17px" src="../../../../src/icon/carbonAssetsReduce.svg" />
|
||||
<div class="calculation BLCard">
|
||||
<div class="money">20,000.00</div>
|
||||
<div class="moneyType">
|
||||
<img width="20px" height="17px" src="../../../../src/icon/carbonAssetsLower.svg" />
|
||||
减少(tCO2)
|
||||
</div>
|
||||
</div>
|
||||
<img width="17px" height="17px" src="../../../../src/icon/carbonAssetsEqual.svg" />
|
||||
<div class="calculation BLCard">
|
||||
<div class="money">75,000.00</div>
|
||||
<div class="moneyType">期末余额(tCO2)</div>
|
||||
</div>
|
||||
</div>
|
||||
</a-card>
|
||||
<a-card class="card">
|
||||
<div class="top" style="background: rgba(37, 192, 150, 0.05)">
|
||||
<div class="moneyImg"
|
||||
><img width="68px" height="68px" src="../../../../src/icon/carbonAssetsMoney-4.svg"
|
||||
/></div>
|
||||
<div class="moneyTitle">全国碳账户估值(CNY)</div>
|
||||
<div class="moneyTotal" style="color: rgba(229, 102, 22, 1)">300,000.00</div>
|
||||
</div>
|
||||
<div class="title" style="justify-content: center">
|
||||
<img
|
||||
width="17px"
|
||||
height="17px"
|
||||
style="transform: rotate(90deg)"
|
||||
src="../../../../src/icon/carbonAssetsEqual.svg" />
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<div class="BRCard">
|
||||
<div class="money">300,000.00</div>
|
||||
<div class="moneyType">全国碳账户资产估值</div>
|
||||
</div>
|
||||
<img width="17px" height="17px" src="../../../../src/icon/carbonAssetsAdd.svg" />
|
||||
<div class="BRCard">
|
||||
<div class="money">300,000.00</div>
|
||||
<div class="moneyType">地方碳账户资产估值</div>
|
||||
</div>
|
||||
<img width="17px" height="17px" src="../../../../src/icon/carbonAssetsAdd.svg" />
|
||||
<div class="BRCard">
|
||||
<div class="money">300,000.00</div>
|
||||
<div class="moneyType">CCER碳资产估值</div>
|
||||
</div>
|
||||
</div>
|
||||
</a-card>
|
||||
</div>
|
||||
<div class="detail" v-else>
|
||||
<carbonAssetsDetail />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import carbonAssetsDetail from './carbonAssetsDetail/index.vue';
|
||||
defineOptions({
|
||||
energyType: 'carbonAssets', // 与页面路由name一致缓存才可生效
|
||||
});
|
||||
const homePage = ref(true);
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.mainContant {
|
||||
background: #f1f2f6;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
.card {
|
||||
width: 49%;
|
||||
height: 49%;
|
||||
.TLCard {
|
||||
background: linear-gradient(180deg, rgba(255, 249, 246, 1) 0%, rgba(255, 255, 255, 1) 100%);
|
||||
border: 1px solid rgba(252, 139, 78, 0.3);
|
||||
}
|
||||
.TRCard {
|
||||
background: linear-gradient(180deg, rgba(254, 245, 244, 1) 0%, rgba(255, 255, 255, 1) 100%);
|
||||
border: 1px solid rgba(241, 100, 69, 0.2);
|
||||
}
|
||||
.BLCard {
|
||||
background: linear-gradient(180deg, rgba(245, 250, 254, 1) 0%, rgba(255, 255, 255, 1) 100%);
|
||||
border: 1px solid rgba(72, 168, 228, 0.3);
|
||||
}
|
||||
}
|
||||
}
|
||||
:deep(.ant-card-body) {
|
||||
height: 100%;
|
||||
}
|
||||
.top {
|
||||
height: 40%;
|
||||
width: 100%;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.moneyImg {
|
||||
width: 20%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.moneyTitle {
|
||||
width: 35%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
opacity: 1;
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
.moneyTotal {
|
||||
width: 35%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
opacity: 1;
|
||||
font-size: 40px;
|
||||
font-weight: 400;
|
||||
line-height: 52px;
|
||||
text-align: left;
|
||||
}
|
||||
.moneyDetail {
|
||||
width: 10%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
.title {
|
||||
height: 20%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
> span {
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 1.2px;
|
||||
line-height: 26px;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
.bottom {
|
||||
height: 40%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
.calculation {
|
||||
width: 22%;
|
||||
height: 100%;
|
||||
opacity: 1;
|
||||
border-radius: 8px;
|
||||
padding: 10px;
|
||||
.money {
|
||||
opacity: 1;
|
||||
font-size: 28px;
|
||||
font-weight: 400;
|
||||
letter-spacing: 0px;
|
||||
line-height: 50px;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
.moneyType {
|
||||
opacity: 1;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
line-height: 45px;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
.BRCard {
|
||||
width: 30%;
|
||||
height: 100%;
|
||||
opacity: 1;
|
||||
background: linear-gradient(180deg, rgba(244, 252, 250, 1) 0%, rgba(255, 255, 255, 1) 100%);
|
||||
border: 1px solid rgba(42, 197, 155, 0.3);
|
||||
padding: 10px;
|
||||
.money {
|
||||
opacity: 1;
|
||||
font-size: 28px;
|
||||
font-weight: 400;
|
||||
letter-spacing: 0px;
|
||||
line-height: 50px;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
.moneyType {
|
||||
opacity: 1;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
line-height: 45px;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user