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