|
|
@ -66,8 +66,11 @@ |
|
|
> |
|
|
> |
|
|
<view class="history-left"> |
|
|
<view class="history-left"> |
|
|
<view class="flag-circle" |
|
|
<view class="flag-circle" |
|
|
><text class="flag-emoji">🇺🇸</text></view |
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
><image |
|
|
|
|
|
class="icon-stock" |
|
|
|
|
|
:src="stockImage(item.stockMarket)" |
|
|
|
|
|
mode="scaleToFill" |
|
|
|
|
|
/></view> |
|
|
</view> |
|
|
</view> |
|
|
<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> |
|
|
@ -159,6 +162,29 @@ const onDrawerBackClick = () => { |
|
|
}, 180); |
|
|
}, 180); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// 历史记录国家图像 |
|
|
|
|
|
function stockImage(Market) { |
|
|
|
|
|
switch (Market) { |
|
|
|
|
|
case "usa": |
|
|
|
|
|
return "../../static/marketSituation-image/country-flag/us.png"; |
|
|
|
|
|
case "can": |
|
|
|
|
|
return "../../static/marketSituation-image/country-flag/can.png"; |
|
|
|
|
|
case "vi": |
|
|
|
|
|
return "../../static/marketSituation-image/country-flag/vi.png"; |
|
|
|
|
|
case "th": |
|
|
|
|
|
return "../../static/marketSituation-image/country-flag/th.png"; |
|
|
|
|
|
case "my": |
|
|
|
|
|
return "../../static/marketSituation-image/country-flag/my.png"; |
|
|
|
|
|
case "sg": |
|
|
|
|
|
return "../../static/marketSituation-image/country-flag/sg.png"; |
|
|
|
|
|
case "hk": |
|
|
|
|
|
return "../../static/marketSituation-image/country-flag/hk.png"; |
|
|
|
|
|
case "cn": |
|
|
|
|
|
return "../../static/marketSituation-image/country-flag/cn.png"; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 历史记录详情 |
|
|
// 历史记录详情 |
|
|
async function itemClick(item) { |
|
|
async function itemClick(item) { |
|
|
const res = await RecordInfoApi({ |
|
|
const res = await RecordInfoApi({ |
|
|
@ -167,19 +193,17 @@ async function itemClick(item) { |
|
|
model: 5, |
|
|
model: 5, |
|
|
}); |
|
|
}); |
|
|
if (res.code == 200) { |
|
|
if (res.code == 200) { |
|
|
|
|
|
|
|
|
const message = res.data; |
|
|
const message = res.data; |
|
|
const deepExplorationStore = useDeepExplorationStore(); |
|
|
const deepExplorationStore = useDeepExplorationStore(); |
|
|
deepExplorationStore.setDeepExplorationInfo(message); |
|
|
deepExplorationStore.setDeepExplorationInfo(message); |
|
|
console.log('点击了历史数据',deepExplorationStore.deepExplorationInfo); |
|
|
|
|
|
|
|
|
console.log("点击了历史数据", deepExplorationStore.deepExplorationInfo); |
|
|
onDrawerBackClick(); |
|
|
onDrawerBackClick(); |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: '/pages/deepExploration/MainForceActions' |
|
|
|
|
|
|
|
|
url: "/pages/deepExploration/MainForceActions", |
|
|
}); |
|
|
}); |
|
|
}, 200); |
|
|
}, 200); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
const historyList = ref([]); |
|
|
const historyList = ref([]); |
|
|
|
|
|
|
|
|
@ -464,6 +488,12 @@ onMounted(() => {}); |
|
|
height: 50rpx; |
|
|
height: 50rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.icon-stock { |
|
|
|
|
|
width: 36rpx; |
|
|
|
|
|
height: 36rpx; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.flag-circle { |
|
|
.flag-circle { |
|
|
width: 50rpx; |
|
|
width: 50rpx; |
|
|
height: 50rpx; |
|
|
height: 50rpx; |
|
|
|