|
|
@ -65,8 +65,16 @@ |
|
|
class="history-item" |
|
|
class="history-item" |
|
|
> |
|
|
> |
|
|
<view class="history-left"> |
|
|
<view class="history-left"> |
|
|
<view class="flag-circle" |
|
|
|
|
|
><image |
|
|
|
|
|
|
|
|
<view class="flag-circle"> |
|
|
|
|
|
<image |
|
|
|
|
|
class="icon-stock-model" |
|
|
|
|
|
:src="modelImage(item.model)" |
|
|
|
|
|
mode="scaleToFill" |
|
|
|
|
|
/></view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="history-left"> |
|
|
|
|
|
<view class="flag-circle"> |
|
|
|
|
|
<image |
|
|
class="icon-stock" |
|
|
class="icon-stock" |
|
|
:src="stockImage(item.stockMarket)" |
|
|
:src="stockImage(item.stockMarket)" |
|
|
mode="scaleToFill" |
|
|
mode="scaleToFill" |
|
|
@ -75,7 +83,6 @@ |
|
|
<view class="history-main" @click="itemClick(item)"> |
|
|
<view class="history-main" @click="itemClick(item)"> |
|
|
<text class="history-query">{{ item.stockName }}</text> |
|
|
<text class="history-query">{{ item.stockName }}</text> |
|
|
<text class="history-query">({{ item.stockCode }})</text> |
|
|
<text class="history-query">({{ item.stockCode }})</text> |
|
|
<text class="history-query">{{ modelType(item.model) }} </text> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<text class="history-time">{{ |
|
|
<text class="history-time">{{ |
|
|
formatTimeForHistory(item.createdTime) |
|
|
formatTimeForHistory(item.createdTime) |
|
|
@ -163,6 +170,20 @@ const onDrawerBackClick = () => { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
// 历史记录国家图像 |
|
|
// 历史记录国家图像 |
|
|
|
|
|
function modelImage(model) { |
|
|
|
|
|
switch (model) { |
|
|
|
|
|
case 1: |
|
|
|
|
|
return "../../static/icons/tracking.png"; |
|
|
|
|
|
case 2: |
|
|
|
|
|
return "../../static/icons/radar.png"; |
|
|
|
|
|
case 3: |
|
|
|
|
|
return "../../static/icons/decoding.png"; |
|
|
|
|
|
case 4: |
|
|
|
|
|
return "../../static/icons/funds.png"; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 历史记录国家图像 |
|
|
function stockImage(Market) { |
|
|
function stockImage(Market) { |
|
|
switch (Market) { |
|
|
switch (Market) { |
|
|
case "usa": |
|
|
case "usa": |
|
|
@ -184,7 +205,6 @@ function stockImage(Market) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 历史记录详情 |
|
|
// 历史记录详情 |
|
|
async function itemClick(item) { |
|
|
async function itemClick(item) { |
|
|
const res = await RecordInfoApi({ |
|
|
const res = await RecordInfoApi({ |
|
|
@ -488,6 +508,10 @@ onMounted(() => {}); |
|
|
height: 50rpx; |
|
|
height: 50rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.icon-stock-model { |
|
|
|
|
|
width: 45rpx; |
|
|
|
|
|
height: 45rpx; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.icon-stock { |
|
|
.icon-stock { |
|
|
width: 36rpx; |
|
|
width: 36rpx; |
|
|
@ -503,11 +527,11 @@ onMounted(() => {}); |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
image { |
|
|
|
|
|
width: 50rpx; |
|
|
|
|
|
height: 50rpx; |
|
|
|
|
|
border-radius: 50%; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// image { |
|
|
|
|
|
// width: 50rpx; |
|
|
|
|
|
// height: 50rpx; |
|
|
|
|
|
// border-radius: 50%; |
|
|
|
|
|
// } |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.history-main { |
|
|
.history-main { |
|
|
|