Files
frontend-app/pages/finance/finance.vue
T

179 lines
4.4 KiB
Vue
Raw Normal View History

2025-08-06 20:25:41 +08:00
<template>
<view class="finance_warp">
2025-08-05 15:25:23 +08:00
<view class="finance_header_warp">
<up-image src="/static/common/left.png" width="20" height="20" bgColor="#f1f6ff00" @click="jumpMine"></up-image>
<view class="finance_header_type_warp">
2025-08-06 20:25:41 +08:00
<view :class="type === 1 ? 'finance_header_item_warp finance_header_item_sel_warp' : 'finance_header_item_warp'"
@click="type = 1">股权架构</view>
<view :class="type === 2 ? 'finance_header_item_warp finance_header_item_sel_warp' : 'finance_header_item_warp'"
@click="type = 2">营收数据</view>
2025-08-05 15:25:23 +08:00
</view>
</view>
<view class="finance_content_warp" v-if="type === 1">
<view class="finance_image_comm">
2025-08-06 21:26:18 +08:00
<up-image src="https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/gqjg.png" width="310" height="310"
bgColor="#f1f6ff00" @click="jumpMine"></up-image>
2025-08-05 15:25:23 +08:00
</view>
<view class="finance_card_comm">
2025-08-06 20:25:41 +08:00
<view class="finance_card_item_comm" v-for="(item, index) in equityStructureData" :key="index">
<view class="finance_card_item_title">
<view class="finance_card_item_y_comm" :style="{ 'background': item.color }"></view>{{ item.title }}
</view>
<view class="finance_card_item_value">净利润分红占比:<text class="_zb_warp" :style="{ 'color': item.color }">{{
item.zb }}</text></view>
2025-08-05 15:25:23 +08:00
</view>
</view>
</view>
<view class="finance_content_warp" v-if="type === 2">
<view class="finance_image_comm">
2025-08-06 21:26:18 +08:00
<up-image src="https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/yssj.png" width="332" height="280"
bgColor="#f1f6ff00" @click="jumpMine"></up-image>
2025-08-05 15:25:23 +08:00
</view>
<view class="finance_card_comm">
2025-08-06 20:25:41 +08:00
<view class="finance_card_item_comm" v-for="(item, index) in revenueData" :key="index">
<view class="finance_card_item_title">
<view class="finance_card_item_y_comm" :style="{ 'background': item.color }"></view>{{ item.title }}
</view>
<view class="finance_card_item_value">金额:<text class="_zb_warp" :style="{ 'color': item.color }">{{ item.zb
}}</text></view>
2025-08-05 15:25:23 +08:00
</view>
</view>
2025-08-06 20:25:41 +08:00
</view>
</view>
</template>
<script>
export default {
data() {
return {
type: 1,
equityStructureData: [
{
color: "#FC5E05",
title: "市场股东",
zb: "61%",
}, {
color: "#FCC139",
title: "原始股东",
zb: "22%",
}, {
color: "#BC52FD",
title: "团队激励",
zb: "10%",
}, {
color: "#0474E0",
title: "机构投资",
zb: "7%",
}
],// 股权架构
revenueData: [
{
color: "#FC5E05",
title: "股东分红",
zb: "2514.71",
}, {
color: "#FCC139",
title: "运营支撑",
zb: "1508.83",
}, {
color: "#BC52FD",
title: "市场品牌推广",
zb: "502.94",
}, {
color: "#0474E0",
title: "基金投资",
zb: "502.94",
}
],// 营收数据
};
},
methods: {
jumpMine() {
uni.switchTab({ url: '/pages/mine/mine' });
}
}
}
</script>
<style lang="scss" scoped>
.finance_warp {
2025-08-05 15:25:23 +08:00
height: 100%;
2025-08-06 20:25:41 +08:00
.finance_header_warp {
2025-08-05 15:25:23 +08:00
position: relative;
padding: 100rpx 30rpx 30rpx 30rpx;
border-bottom: 1rpx solid #EEEEEE;
display: flex;
align-items: center;
2025-08-06 20:25:41 +08:00
.finance_header_type_warp {
2025-08-05 15:25:23 +08:00
position: absolute;
left: 30%;
display: flex;
align-items: center;
background: #EEEEEE;
border-radius: 34rpx;
}
2025-08-06 20:25:41 +08:00
.finance_header_item_warp {
2025-08-05 15:25:23 +08:00
padding: 16rpx 30rpx;
font-weight: bold;
font-size: 28rpx;
color: #666666;
}
2025-08-06 20:25:41 +08:00
.finance_header_item_sel_warp {
2025-08-05 15:25:23 +08:00
background: #FF8431;
color: #EEEEEE;
border-radius: 34rpx;
}
}
2025-08-06 20:25:41 +08:00
.finance_content_warp {
2025-08-05 15:25:23 +08:00
padding: 0rpx 30rpx 30rpx;
2025-08-06 20:25:41 +08:00
.finance_image_comm {
2025-08-05 15:25:23 +08:00
display: flex;
justify-content: center;
margin-top: 60rpx;
}
2025-08-06 20:25:41 +08:00
.finance_card_comm {
2025-08-05 15:25:23 +08:00
background: #FFFFFF;
box-shadow: 0rpx 0rpx 29rpx 0rpx #E5E5E5;
border-radius: 30rpx;
padding: 30rpx;
margin-top: 50rpx;
}
2025-08-06 20:25:41 +08:00
.finance_card_item_comm {
2025-08-05 15:25:23 +08:00
margin-bottom: 30rpx;
}
2025-08-06 20:25:41 +08:00
.finance_card_item_title {
2025-08-05 15:25:23 +08:00
display: flex;
align-items: center;
}
2025-08-06 20:25:41 +08:00
.finance_card_item_value {
2025-08-05 15:25:23 +08:00
font-weight: 500;
font-size: 26rpx;
color: #666666;
margin-top: 10rpx;
2025-08-06 20:25:41 +08:00
._zb_warp {
2025-08-05 15:25:23 +08:00
font-weight: 800;
font-size: 32rpx;
}
}
2025-08-06 20:25:41 +08:00
.finance_card_item_y_comm {
2025-08-05 15:25:23 +08:00
width: 28rpx;
height: 28rpx;
border-radius: 50%;
margin-right: 10rpx;
}
}
2025-08-06 20:25:41 +08:00
}
</style>