3 Commits
14a0c331b9
...
9d4682267c
| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
9d4682267c |
Merge branch 'milestone-20251031-简版功能开发' of http://39.101.133.168:8807/qimaohong/deepChartVueApp into hongxilin/feature-20251023103318-行情数据及页面
|
3 weeks ago |
|
|
d6e20a1ec5 |
加入loading动画,修改marketDetail页面数据加载函数作用生命周期
|
3 weeks ago |
|
|
f440802c59 |
股票卡片加缩略分时图
|
3 weeks ago |
8 changed files with 120 additions and 58 deletions
-
53components/IndexCard.vue
-
54components/h-loading.vue
-
8pages/marketSituation/globalIndex.vue
-
29pages/marketSituation/marketDetail.vue
-
32pages/marketSituation/marketOverview.vue
-
BINstatic/loading-gif.gif
-
BINstatic/marketSituation-image/downTimeChart.png
-
BINstatic/marketSituation-image/upTimeChart.png
@ -0,0 +1,54 @@ |
|||
<!-- @format --> |
|||
|
|||
<template> |
|||
<view v-if="loading" class="loading"> |
|||
<image class="loadingGif" src="/static/loading-gif.gif" mode=""></image> |
|||
</view> |
|||
</template> |
|||
|
|||
<script setup> |
|||
import { ref, computed, onMounted,watch } from "vue"; |
|||
|
|||
// 定义 props |
|||
const props = defineProps({ |
|||
loading: { |
|||
type: Boolean, |
|||
default: false, |
|||
}, |
|||
}); |
|||
|
|||
const loading = ref(false); |
|||
|
|||
// 监听 props.loading 变化 |
|||
watch(() => props.loading, (newVal) => { |
|||
loading.value = newVal; |
|||
}); |
|||
|
|||
// 生命周期 |
|||
onMounted(() => { |
|||
loading.value = props.loading; |
|||
}); |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.loading { |
|||
position: absolute; |
|||
top: 0; |
|||
left: 0; |
|||
width: 100%; |
|||
height: 100%; |
|||
background-color: rgba(0, 0, 0, 0.5); |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
z-index: 9999; |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
} |
|||
|
|||
.loadingGif { |
|||
width: 100rpx; |
|||
height: 100rpx; |
|||
} |
|||
</style> |
|||
|
After Width: 120 | Height: 120 | Size: 134 KiB |
|
After Width: 160 | Height: 62 | Size: 8.4 KiB |
|
After Width: 160 | Height: 62 | Size: 9.1 KiB |
Write
Preview
Loading…
Cancel
Save
Reference in new issue