|
@@ -161,6 +161,20 @@ const onSpotChange = (index: number) => {
|
|
|
|
|
|
|
|
// 下拉刷新
|
|
// 下拉刷新
|
|
|
const onRefresh = () => {
|
|
const onRefresh = () => {
|
|
|
|
|
+ if (!topBanners.value.length) {
|
|
|
|
|
+ queryImageConfigs({
|
|
|
|
|
+ imageType: 1,
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ topBanners.value = res.data
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ // if (!bodyBanners.value.length) {
|
|
|
|
|
+ // queryImageConfigs({
|
|
|
|
|
+ // imageType: 10,
|
|
|
|
|
+ // }).then((res) => {
|
|
|
|
|
+ // bodyBanners.value = res.data
|
|
|
|
|
+ // })
|
|
|
|
|
+ // }
|
|
|
// 现货行情
|
|
// 现货行情
|
|
|
queryThjSpotQuoteConfig().then((res) => {
|
|
queryThjSpotQuoteConfig().then((res) => {
|
|
|
spotQuoteList.value = res.data
|
|
spotQuoteList.value = res.data
|
|
@@ -181,18 +195,6 @@ queryMarketRun().then((res) => {
|
|
|
marketRun.value = res.data[0]
|
|
marketRun.value = res.data[0]
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
-queryImageConfigs({
|
|
|
|
|
- imageType: 1,
|
|
|
|
|
-}).then((res) => {
|
|
|
|
|
- topBanners.value = res.data
|
|
|
|
|
-})
|
|
|
|
|
-
|
|
|
|
|
-queryImageConfigs({
|
|
|
|
|
- imageType: 10,
|
|
|
|
|
-}).then((res) => {
|
|
|
|
|
- bodyBanners.value = res.data
|
|
|
|
|
-})
|
|
|
|
|
-
|
|
|
|
|
onRefresh()
|
|
onRefresh()
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|