1.30 财务分析部分模块完善,发展历程弹窗完善
This commit is contained in:
@@ -37,10 +37,10 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex"
|
||||
<view v-if="financialMetricsInfo" class="flex"
|
||||
style="font-size: 22rpx; color: #999999; font-weight: 500; margin: 20rpx; padding: 20rpx;border: 1rpx solid #F5F5F5; border-radius: 10rpx;">
|
||||
<view style="width: 195rpx;">
|
||||
<view style="font-weight: bold; color: #EC3440; font-size: 30rpx;">93.52%</view>
|
||||
<view style="font-weight: bold; color: #EC3440; font-size: 30rpx;">{{financialMetricsInfo.solvency.asset_liability_ratio}}%</view>
|
||||
<view style="margin-top: 10rpx;">资产负债率</view>
|
||||
</view>
|
||||
<view>
|
||||
@@ -49,8 +49,8 @@
|
||||
<text style="color: #A97F53; font-size: 20rpx; padding: 2rpx 5rpx; background-color: #F8F4ED; border: 1rpx solid #F1E7D8; border-radius: 3rpx;">安全边际</text>
|
||||
</view>
|
||||
<view style="margin-top: 10rpx;">
|
||||
<text style="color: #EC3440;">风险</text>
|
||||
<text style="margin-left: 10rpx;">流动比率 0.73|研发费用率 5.48%</text>
|
||||
<text :style="'color: '+(getDebtStatusText(financialMetricsInfo.solvency.asset_liability_ratio).color)">{{getDebtStatusText(financialMetricsInfo.solvency.asset_liability_ratio).text}}</text>
|
||||
<text style="margin-left: 10rpx;">流动比率 {{financialMetricsInfo.solvency.current_ratio}}|研发费用率 {{financialMetricsInfo.expense_ratios.rd_expense_ratio}}%</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -189,7 +189,8 @@
|
||||
};
|
||||
},
|
||||
props: {
|
||||
stockInfo:Object,
|
||||
stockInfo:Object,
|
||||
financialMetricsInfo:Object,
|
||||
barCategoryList:Array,
|
||||
barList:Array,
|
||||
lineList:Array, //折线图数据
|
||||
@@ -251,6 +252,16 @@
|
||||
setTimeout(function() {
|
||||
chart.setOption(that.option2)
|
||||
}, 2000);
|
||||
},
|
||||
/**
|
||||
* 获取资产负债状态
|
||||
*/
|
||||
getDebtStatusText(value) {
|
||||
if (value < 40)
|
||||
return { text: '安全', color: 'green' };
|
||||
if (value < 60) return { text: '适中', color: 'gold' };
|
||||
if (value < 70) return { text: '偏高', color: 'orange' };
|
||||
return { text: '风险', color: 'red' };
|
||||
},
|
||||
itemClick(index) {
|
||||
uni.navigateTo({
|
||||
|
||||
Reference in New Issue
Block a user