Commit 09767b60 by 胡悦

修改

1 parent 66388578
...@@ -33,11 +33,11 @@ ...@@ -33,11 +33,11 @@
</div> </div>
</div> </div>
</div> </div>
<div class="wrapper-history-list" :style="{ height: innerHeight - (280 + 10 + 28) + 'px' }"> <div class="wrapper-history-list" :style="{ height: data.innerHeight - (280 + 10 + 28) + 'px' }">
<div class="history-list-top"> <div class="history-list-top">
<img class="top-img" src="@/assets/images/list-info.png" alt="" /> <img class="top-img" src="@/assets/images/list-info.png" alt="" />
</div> </div>
<div class="van-list-box" :style="{ height: innerHeight - (280 + 10 + 28 + 68) + 'px' }"> <div class="van-list-box" :style="{ height: data.innerHeight - (280 + 10 + 28 + 68) + 'px' }">
<van-list finished-text="- 没有更多啦 -" loading-text="加载中..." @load="onLoad" v-model:loading="loading" <van-list finished-text="- 没有更多啦 -" loading-text="加载中..." @load="onLoad" v-model:loading="loading"
:finished="finished"> :finished="finished">
<!-- 没有历史数据 --> <!-- 没有历史数据 -->
...@@ -74,12 +74,13 @@ type listStyle = { ...@@ -74,12 +74,13 @@ type listStyle = {
name?: string; name?: string;
time?: string; time?: string;
jifen?: string; jifen?: string;
}; }
const userStore = useUserStore() const userStore = useUserStore()
// let isLogin = ref<boolean>(false);
const router = useRouter(); const router = useRouter();
// 获取可视区高度 const data = reactive({
const innerHeight = ref<number>(window.innerHeight); innerHeight: window.innerHeight // 获取可视区高度
})
const list = reactive<listStyle>([]); const list = reactive<listStyle>([]);
let id = ref<number>(0); let id = ref<number>(0);
const loading = ref<boolean>(true); const loading = ref<boolean>(true);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!