Commit 09767b60 by 胡悦

修改

1 parent 66388578
......@@ -33,11 +33,11 @@
</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">
<img class="top-img" src="@/assets/images/list-info.png" alt="" />
</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"
:finished="finished">
<!-- 没有历史数据 -->
......@@ -74,12 +74,13 @@ type listStyle = {
name?: string;
time?: string;
jifen?: string;
};
}
const userStore = useUserStore()
// let isLogin = ref<boolean>(false);
const router = useRouter();
// 获取可视区高度
const innerHeight = ref<number>(window.innerHeight);
const data = reactive({
innerHeight: window.innerHeight // 获取可视区高度
})
const list = reactive<listStyle>([]);
let id = ref<number>(0);
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!