This commit is contained in:
姚宇浩 2023-12-08 14:43:34 +08:00
parent 6c86c2ab8a
commit 42611cc350
1 changed files with 3 additions and 77 deletions

View File

@ -60,7 +60,7 @@
</div>
</template>
<script setup>
import { ref, reactive, onMounted } from "vue";
import { ref, reactive, onMounted,nextTick } from "vue";
import listRightImg from "@/components/list-right-img.vue";
import listNoImg from "@/components/list-no-img.vue";
import j1 from "../assets/cc4.png";
@ -110,74 +110,7 @@ const mainList = reactive([
const chooseId = ref("1");
const choose = (id) => {
chooseId.value = id;
scolltop();
// console.log()
records.list = [
{
id: 1,
display: 1,
title: "“三问”个人养老金:是什么、怎么缴、如何领?",
createdAt: "11月27日",
imgUrl: j1,
eye: "8888",
},
{
id: 2,
display: 1,
title: "100场社区活动——教你轻松玩转智能手机",
createdAt: "11月27日",
imgUrl: j2,
eye: "8888",
},
{
id: 1,
display: 1,
title: "“三问”个人养老金:是什么、怎么缴、如何领?",
createdAt: "11月27日",
imgUrl: j1,
eye: "8888",
},
{
id: 2,
display: 1,
title: "100场社区活动——教你轻松玩转智能手机",
createdAt: "11月27日",
imgUrl: j2,
eye: "8888",
},
{
id: 1,
display: 1,
title: "“三问”个人养老金:是什么、怎么缴、如何领?",
createdAt: "11月27日",
imgUrl: j1,
eye: "8888",
},
{
id: 2,
display: 1,
title: "100场社区活动——教你轻松玩转智能手机",
createdAt: "11月27日",
imgUrl: j2,
eye: "8888",
},
{
id: 1,
display: 1,
title: "“三问”个人养老金:是什么、怎么缴、如何领?",
createdAt: "11月27日",
imgUrl: j1,
eye: "8888",
},
{
id: 2,
display: 1,
title: "100场社区活动——教你轻松玩转智能手机",
createdAt: "11月27日",
imgUrl: j2,
eye: "8888",
},
];
};
const records = reactive({
list: [
@ -237,14 +170,7 @@ const onLoad = () => {
finished.value = true;
}, 1000);
};
const scolltop = () => {
nextTick(() => {
let list = document.getElementsByClassName("list");
if (list) {
list.scrollTop = 0; //
}
});
};
onMounted(() => {
// showToast("666")
});