Commit c74e5704 by 胡悦

Merge branch 'huy_v2.8.1' of http://192.168.3.233:8090/h5/vite-integral into huy_v2.8.1

2 parents 61d810d3 b5755b4c
......@@ -37,9 +37,17 @@
<div class="history-list-top">
<img class="top-img" src="@/assets/images/list-info.png" alt="" />
</div>
<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">
<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"
>
<!-- 没有历史数据 -->
<template v-if="!list.length">
<div class="nodata">
......@@ -67,15 +75,15 @@
<script lang="ts" setup>
import { ref, reactive, onBeforeMount } from "vue";
import { useRouter } from "vue-router";
import req from "../../utils/request"
import { useUserStore } from '../../store/user'
import req from "../../utils/request";
import { useUserStore } from "../../store/user";
type listStyle = {
id?: number;
name?: string;
time?: string;
jifen?: string;
}
const userStore = useUserStore()
};
const userStore = useUserStore();
const router = useRouter();
const data = reactive({
innerHeight: window.innerHeight, // 获取可视区高度
......@@ -104,8 +112,8 @@ const routerTo = (value: string) => {
// 登出
const logout = () => {
userStore.logout()
router.push('/logged')
userStore.logout();
router.push("/logged");
// isLogin.value = false;
};
......@@ -182,7 +190,8 @@ onBeforeMount(() => {
z-index: -1;
}
&-content {}
&-content {
}
&-history-list {
background-color: #fff;
......@@ -192,6 +201,7 @@ onBeforeMount(() => {
// overflow: auto;
.history-list-top {
height: 35px;
text-align: center;
padding: 16px 0;
......@@ -224,6 +234,7 @@ onBeforeMount(() => {
}
.list-content {
height: 38px;
display: flex;
justify-content: space-between;
margin: 0 20px;
......@@ -249,6 +260,7 @@ onBeforeMount(() => {
&-right {
font-size: 16px;
line-height: 38px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #f37005;
......@@ -312,9 +324,12 @@ onBeforeMount(() => {
padding: 3px 5px 2px 14px;
background: linear-gradient(180deg, #ffffff 0%, #e2e2e2 100%);
border-radius: 12px 0px 0px 12px;
border-image: linear-gradient(180deg,
border-image: linear-gradient(
180deg,
rgba(247, 247, 247, 1),
rgba(209, 209, 209, 1)) 1 1;
rgba(209, 209, 209, 1)
)
1 1;
font-weight: 400;
color: #868686;
line-height: 17px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!