fix: 行业标签只显示二级,精选新闻显示评分

This commit is contained in:
傅光孟 2026-02-10 10:19:36 +08:00
parent 9934aba290
commit a0ae694e84
3 changed files with 5 additions and 3 deletions

View File

@ -6,7 +6,7 @@
</view> </view>
<view class="tag-box"> <view class="tag-box">
<view v-for="(item, index) in topConceptList" :key="index" class="tag"> <view v-for="(item, index) in topConceptList" :key="index" class="tag">
{{ item.content.split("-")[1] }} {{ item.content?.split("-")[1] }}
</view> </view>
</view> </view>
<view class="tag-content"> <view class="tag-content">

View File

@ -9,7 +9,9 @@
v-for="(item, index) in industryList" v-for="(item, index) in industryList"
:class="['tag', { 'tag-active': active === index }]" :class="['tag', { 'tag-active': active === index }]"
@click="handleClickTag(index, item)" @click="handleClickTag(index, item)"
>{{ item.content }}</view >
{{ item.content?.split("-")[1] }}
</view
> >
</view> </view>
<view class="tag-content" @click="goDetail(oneData)"> <view class="tag-content" @click="goDetail(oneData)">

View File

@ -54,7 +54,7 @@
<view class="news-top"> <view class="news-top">
<view class="time">{{ news.timeStr }}</view> <view class="time">{{ news.timeStr }}</view>
<view class="source"> <view class="source">
<!-- <view class="star" :style="{ width: `${4 * 20}rpx` }"></view> --> <view class="star" v-if="news.score" :style="{ width: `${(news.score/2) * 20}rpx` }"></view>
<view class="t-1">来自</view> <view class="t-1">来自</view>
<view class="t-2">中国证券报</view> <view class="t-2">中国证券报</view>
</view> </view>