fix: 1. 修复detail页面股票搜索下拉渲染问题,适配后端小写字段;2. 优化货币下拉显示,缩短为仅显示代码

This commit is contained in:
claw_bot 2026-03-09 10:48:13 +00:00
parent 0b76ea601d
commit beb96c535f

View File

@ -171,8 +171,11 @@
:key="idx"
@click="selectStock(result)"
>
<text class="item-ticker">{{ result.Ticker }}</text>
<text class="item-exchange">{{ result.Exchange }}</text>
<view class="item-left">
<text class="item-ticker">{{ result.ticker }}</text>
<text class="item-type" v-if="result.assetType">{{ result.assetType }}</text>
</view>
<text class="item-exchange">{{ result.exchange }}</text>
</view>
</view>
</view>
@ -268,9 +271,9 @@ const transactionForm = ref({
//
const currencyList = ref([
{ name: '人民币 CNY', code: 'CNY' },
{ name: '美元 USD', code: 'USD' },
{ name: '港币 HKD', code: 'HKD' }
{ name: 'CNY', code: 'CNY' },
{ name: 'USD', code: 'USD' },
{ name: 'HKD', code: 'HKD' }
]);
const currencyIndex = ref(0);
@ -732,12 +735,27 @@ const submitTransaction = async () => {
background-color: #F3F4F6;
}
.item-left {
display: flex;
flex-direction: row;
align-items: center;
gap: 12rpx;
}
.item-ticker {
font-size: 26rpx;
font-weight: 600;
color: #1F2937;
}
.item-type {
font-size: 18rpx;
color: #064E3B;
background-color: #D1FAE5;
padding: 2rpx 8rpx;
border-radius: 4rpx;
}
.item-exchange {
font-size: 22rpx;
color: #9CA3AF;