涨停分析,异常数据对接,词云优化

This commit is contained in:
renzhijun
2026-02-06 10:49:28 +08:00
parent 21e16f543f
commit 8445e95ba3
3 changed files with 315 additions and 339 deletions

View File

@@ -101,7 +101,7 @@
color: 'white',
fontSize: '24rpx',
fontWeight: '500'
}" >
}" @click="bkydAction(index)" >
<view class="single-line-ellipsis">{{item.title}}</view>
<view class="count-text">{{item.count}}</view>
@@ -138,7 +138,7 @@
<view v-show="activeType === 0" style="width: 100%; height: 500rpx;">
<l-echart ref="chartRef"></l-echart>
</view>
<WordCloud v-show="activeType === 1" :wordData="wordData" :width="330" :height="330" />
<WordCloud v-show="activeType === 1" :wordData="wordData" :width="330" :height="330" @rendered="onWordCloudRendered" />
</view>
@@ -556,6 +556,10 @@
//}
},
methods: {
// 词云绘制完成
onWordCloudRendered() {
uni.hideLoading();
},
getStockHeatType(stock) {
// 假设通过连板数计算热度(可根据实际业务逻辑调整)
const days = stock.continuous_days_num || 0;
@@ -725,9 +729,19 @@ getStockHeatType(stock) {
break;
case 1:
//this.$refs.chartRef && this.initPieChart(); // 增加存在性判断
uni.showLoading({
title: '词云生成中...',
mask: true // 防止用户误触
});
this.initWordCloud();
break;
case 2:
uni.showLoading({
title: '词云生成中...',
mask: true // 防止用户误触
});
this.initWordCloud();
break;
}
@@ -916,7 +930,9 @@ getStockHeatType(stock) {
}];
}
setTimeout(() => {
uni.hideLoading();
}, 2000);
//console.log('父页面设置词云数据:', JSON.stringify(this.wordData));
},