Browse Source

股票价格和涨跌幅水平分布;

lihuilin/feature-20251024095243-我的
宋杰 3 weeks ago
parent
commit
a942eef02e
  1. 8
      pages/customStockList/customStockList.vue

8
pages/customStockList/customStockList.vue

@ -74,7 +74,7 @@
<view class="stock-price">
<text class="price">{{ stock.price || '--' }}</text>
<text :class="['change', stock.change >= 0 ? 'up' : 'down']">
{{ stock.change >= 0 ? '+' : '' }}{{ stock.change || '--' }}
{{ stock.change >= 0 ? '+' : '-' }}{{ stock.change || '--' }}
</text>
</view>
</view>
@ -448,15 +448,15 @@
.stock-price {
display: flex;
flex-direction: column;
align-items: flex-end;
flex-direction: row;
align-items: center;
gap: 8px;
}
.price {
font-size: 16px;
font-weight: 500;
color: #333333;
margin-bottom: 4px;
}
.change {

Loading…
Cancel
Save