1.26 个股详情业务结构,发展历程模块完善

This commit is contained in:
尚政杰
2026-01-26 17:53:08 +08:00
parent f296e005b3
commit 67a673cd4d
508 changed files with 44334 additions and 305 deletions

View File

@@ -1,120 +1,101 @@
<template>
<view style="padding: 25rpx 20rpx; box-sizing: border-box;">
<view style="display: flex; align-items: center; font-size: 28rpx;"><text>关键因素</text><text
style="font-size: 24rpx; color: #070707; padding: 0rpx 10rpx; border-radius: 3rpx; background-color: #F2C369; margin-left: 10rpx;">19</text>
<view v-if="keyFactorsInfo" class="flex" style="font-size: 28rpx;"><text>关键因素</text><text
style="font-size: 24rpx; color: #070707; padding: 0rpx 10rpx; border-radius: 3rpx; background-color: #F2C369; margin-left: 10rpx;">{{keyFactorsInfo.total_factors}}</text>
</view>
<view class="keyFactorsList">
<view class="item" v-for="(item, index) in keyFactorsList" :key="index" @click="item.show = !item.show"
style="margin: 20rpx 0; background-color: #FAFAFC; border-radius: 10rpx; padding: 25rpx 20rpx; color: #2B2B2B;">
<view style="display: flex; align-items: center; justify-content: space-between;">
<view style="flex: 1; font-size: 26rpx;"><text>{{item.category_name}}</text><text
style="font-size: 24rpx; color: #070707; padding: 0rpx 10rpx; border-radius: 3rpx; background-color: #F2C369; margin-left: 10rpx;">{{item.factors.length}}</text>
</view>
<image v-if="item.show" style="width: 20rpx; height: 12rpx;"
src="/pagesStock/static/icon/shangJiantou.png" mode="widthFix"></image>
<image v-else style="width: 20rpx; height: 12rpx;" src="/pagesStock/static/icon/xiaJiantou.png"
mode="widthFix"></image>
</view>
<template v-if="item.show">
<view class="fitem" v-for="(fitem,findex) in item.factors" :key="findex"
style="margin: 20rpx 0; padding: 20rpx; background-color: white; border-radius: 10rpx; border: 1rpx solid #E7E7E7; color: #2B2B2B; font-weight: 500; font-size: 26rpx;">
<view class="titleImpactC flex between">
<view>{{fitem.factor_name}}</view>
<view v-if="fitem.impact_direction=='negative'" class="impact negative">负面</view>
<view v-if="fitem.impact_direction=='neutral'" class="impact neutral">中性</view>
<view v-if="fitem.impact_direction=='positive'" class="impact positive">正面</view>
</view>
<view class="valueChgC flex" style="margin-top: 10rpx;">
<view :class="'value '+(fitem.impact_direction)">{{fitem.factor_value}}{{fitem.factor_unit}}
</view>
<view :class="'chgC flex '+(getRateUpOrDown(fitem.year_on_year)?'down':'up')">
<image v-if="getRateUpOrDown(fitem.year_on_year)" class="icon" src="/pagesStock/static/icon/downArrow.png" mode="widthFix"></image>
<image v-else class="icon" src="/pagesStock/static/icon/upArrow.png" mode="widthFix"></image>
<view>{{fitem.year_on_year?fitem.year_on_year:0}}%</view>
</view>
</view>
<view style="margin-top: 10rpx; color: #999999; font-size: 22rpx;">{{fitem.factor_desc}}</view>
<view style="margin-top: 10rpx; color: #999999; font-size: 22rpx;">影响权重: {{fitem.impact_weight}}</view>
</view>
</template>
</view>
</view>
<view v-for="(item, index) in gj_list" :key="index" @click="item.show = !item.show"
style="margin: 20rpx 0; background-color: #FAFAFC; border-radius: 10rpx; padding: 25rpx 20rpx; color: #2B2B2B;">
<view style="display: flex; align-items: center; justify-content: space-between;">
<view style="flex: 1; font-size: 26rpx;"><text>{{item.title}}</text><text
style="font-size: 24rpx; color: #070707; padding: 0rpx 10rpx; border-radius: 3rpx; background-color: #F2C369; margin-left: 10rpx;">{{item.count}}</text>
</view>
<image v-if="item.show" style="width: 20rpx; height: 12rpx;"
src="/pagesStock/static/icon/shangJiantou.png" mode="widthFix"></image>
<image v-else style="width: 20rpx; height: 12rpx;" src="/pagesStock/static/icon/xiaJiantou.png"
mode="widthFix"></image>
</view>
<template v-if="item.show">
<view v-for="child in item.count"
style="margin: 20rpx 0; padding: 20rpx; box-sizing: border-box; background-color: white; border-radius: 10rpx; border: 1rpx solid #E7E7E7; color: #2B2B2B; font-weight: 500; font-size: 26rpx;">
<view style="display: flex; align-items: center; justify-content: space-between;">
<view>净息差</view>
<view
style="background-color: #345423; border-radius: 5rpx; color: white; padding: 0 10rpx; text-align: center; font-size: 20rpx;">
负面</view>
</view>
<view style="display: flex;align-items: center; margin-top: 10rpx;">
<view style="color: #345423; font-weight: bold; font-size: 30rpx; margin-right: 10rpx;">1.79亿元
</view>
<view
style="display: flex; align-items: center; border: 1rpx solid #345423; padding: 0 10rpx; text-align: center; font-size: 20rpx; color: #345423; border-radius: 5rpx;">
<image style="width: 11rpx; height: 15rpx; margin-right: 5rpx;"
src="/pagesStock/static/icon/upArrow.png" mode="widthFix"></image>0.51%
</view>
</view>
<view style="margin-top: 10rpx; color: #999999; font-size: 22rpx;">银行核心盈利能力指标反映存贷利差水平</view>
<view style="margin-top: 10rpx; color: #999999; font-size: 22rpx;">影响权重: 90</view>
</view>
</template>
</view>
<view style="display: flex; align-items: center; font-size: 28rpx;"><text>发展时间线</text>
<view v-if="timelineInfo" class="flex" style="font-size: 28rpx;"><text>发展时间线</text>
<text
style="font-size: 24rpx; color: white; padding: 0rpx 10rpx; border-radius: 3rpx; background-color: #EC3440; margin-left: 10rpx;">正面
19</text>
{{timelineInfo.positive_events}}</text>
<text
style="font-size: 24rpx; color: white; padding: 0rpx 10rpx; border-radius: 3rpx; background-color: #345423; margin-left: 10rpx;">负面
1</text>
{{timelineInfo.negative_events}}</text>
</view>
<view class="timelineList">
<view class="item" v-for="(item,index) in timelineList" :key="index" @click="clickAction">
<view class="impactC flexColumnCenter">
<image v-if="item.impact_metrics.is_positive==1" class="icon" style="margin-top: 20rpx;"
src="/pagesStock/static/icon/yuan_shang.png" mode="widthFix"></image>
<image v-else class="icon" src="/pagesStock/static/icon/yuan_jiang.png" mode="widthFix"></image>
<view :class="'line flex1 '+(item.impact_metrics.is_positive==1?'up':'down')"></view>
</view>
<view
style="flex: 1; margin-left: 10rpx; background-color: #FAFAFC; padding: 24rpx 15rpx; border-radius: 10rpx; font-weight: 500;">
<view class="titleTypeC">
<text class="title">{{item.event_title}}</text>
<text :class="'eventType '+(item.impact_metrics.is_positive==1?'up':'down')">{{item.event_type}}</text>
</view>
<view style="color: #999999; font-size: 20rpx; margin: 15rpx 0;">{{item.event_date}}</view>
<view style="color: #71675D; font-size: 22rpx;">{{item.event_desc}}</view>
<view style="display: flex; align-items: center; margin-top: 30rpx;">
<view style="color: #71675D; font-size: 22rpx; font-weight: 500;">影响度</view>
<view class="progressBgC">
<view :class="'progress '+(item.impact_metrics.is_positive==1?'up':'down')" :style="{width: `${item.impact_metrics.impact_score}%`}">
</view>
</view>
<view style="color: #71675D; font-size: 24rpx; font-weight: 500;">{{item.impact_metrics.impact_score}}</view>
</view>
</view>
</view>
</view>
<view v-for="item in 3" @click="clickAction"
style="display: flex; margin: 20rpx 0; border-radius: 10rpx; box-sizing: border-box; color: #2B2B2B;">
<view style="display: flex; flex-direction: column; align-items: center;">
<image style="width: 30rpx; height: 30rpx; margin-top: 20rpx;"
src="/pagesStock/static/icon/yuan_shang.png" mode="widthFix"></image>
<view
style="flex: 1; width: 1rpx; border-left: 1rpx dashed #EC3440; margin-top: 10rpx; margin-bottom: -30rpx;">
</view>
</view>
<view
style="flex: 1; margin-left: 10rpx; background-color: #FAFAFC; padding: 24rpx 15rpx; border-radius: 10rpx; font-weight: 500;">
<view>
<text style="color: #2A2A2A; font-weight: bold; font-size: 24rpx; margin-right: 10rpx;">不良贷款率连续四年低于1.1%</text>
<text
style="background-color: #FFE7E9; color: #EC3440; padding: 5rpx 10rpx; border-radius: 5rpx; font-size: 20rpx; ">Achievement</text>
</view>
<view style="color: #999999; font-size: 20rpx; margin: 15rpx 0;">2025-06-30</view>
<view style="color: #71675D; font-size: 22rpx;">2025年中报不良率1.06%拨备覆盖率290%资产质量保持股份行领先</view>
<view style="display: flex; align-items: center; margin-top: 30rpx;">
<view style="color: #71675D; font-size: 22rpx; font-weight: 500;">影响度</view>
<view
style="width: 200rpx; height: 10rpx; background-color: #EFEFEF; border-radius: 5rpx; margin: 0 15rpx; overflow: hidden;">
<view
style="height: 100%; border-radius: 5rpx; background:linear-gradient(to right, #FF525D, #EC3440)"
:style="{width: `${95}%`}">
</view>
</view>
<view style="color: #71675D; font-size: 24rpx; font-weight: 500;">95</view>
</view>
</view>
</view>
</view>
</template>
<script>
<script>
import { getRateUpOrDown } from '@/utils/util';
export default {
name: "fzlc-view",
data() {
return {
gj_list: [{
title: '产量与销量指标',
count: 8,
show: false
},
{
title: '价格与成本驱动',
count: 3,
show: false
},
{
title: '市场与客户指标',
count: 2,
show: false
},
{
title: '行业特定指标',
count: 4,
show: false
},
{
title: '风险与异常指标',
count: 2,
show: false
}
]
getRateUpOrDown:getRateUpOrDown
};
},
props: {
keyFactorsInfo:null,
keyFactorsList:Array, //关键因素数组
timelineInfo:null,
timelineList:Array, //发展时间线数组
},
methods: {
clickAction() {
this.$emit('detail')
@@ -123,6 +104,159 @@
}
</script>
<style lang="less">
<style lang="less">
.keyFactorsList
{
.item
{
.fitem
{
.impact
{
border-radius: 5rpx;
padding: 0 10rpx;
font-size: 20rpx;
font-weight: 500;
color: white;
}
.impact.negative
{
background-color: #345423;
}
.impact.neutral
{
background-color: #345423;
}
.impact.positive
{
background-color: #EC3440;
}
.valueChgC
{
.value
{
font-size: 30rpx;
font-weight: bold;
margin-right: 10rpx;
}
.value.negative
{
color: #345423;
}
.value.neutral
{
color:#345423;
}
.value.positive
{
color: #EC3440;
}
.chgC
{
padding: 0 10rpx;
border-radius: 5rpx;
font-size: 20rpx;
.icon
{
margin-right: 5rpx;
width: 11rpx;
height: auto;
}
}
.chgC.down
{
border: 1rpx solid #345423;
color: #345423;
}
.chgC.up
{
border: 1rpx solid #EC3440;
color: #EC3440;
}
}
}
}
}
.timelineList
{
.item
{
display: flex;
margin: 20rpx 0;
border-radius: 10rpx;
.impactC
{
.icon
{
width: 30rpx;
height: auto;
}
.line
{
margin: 10rpx 0 -30rpx;
width: 1rpx;
}
.line.up
{
border-left: 1rpx dashed #EC3440;
}
.line.down
{
border-left: 1rpx dashed #345423;
}
}
.titleTypeC
{
.title
{
margin-right: 10rpx;
font-size: 24rpx;
font-weight: bold;
color: #2A2A2A;
}
.eventType
{
padding: 5rpx 10rpx;
border-radius: 5rpx;
font-size: 20rpx;
font-weight: 500;
}
.eventType.up
{
background-color: #FFE7E9;
color: #EC3440;
}
.eventType.down
{
background-color:#DEEED6;
color: #345423;
}
}
.progressBgC
{
background-color: #EFEFEF;
margin: 0 15rpx;
width: 200rpx;
height: 10rpx;
border-radius: 5rpx;
overflow: hidden;
.progress
{
height: 100%;
border-radius: 5rpx;
}
.progress.up
{
background:linear-gradient(to right, #FF525D, #EC3440)
}
.progress.down
{
background:linear-gradient(to right, #537D3D, #345423)
}
}
}
}
</style>