This commit is contained in:
yanran200730
2023-03-20 10:02:00 +08:00
parent 5ea84f0c5f
commit d2941ceb96
4 changed files with 53 additions and 14 deletions

View File

@@ -1,6 +1,11 @@
<template>
<div class="Topic">
<div class="Topic-item" v-for="(item, index) in list" :key="index" @click="toTopicDetail(item.id)">
<div
class="Topic-item"
v-for="(item, index) in list"
:key="index"
hover-class="text-hover"
@click="$linkTo('./TopicDetail?themeId=' + item.id + '&name=' + item.title)">
<h2>#{{item.title}}</h2>
<span>去看看</span>
</div>
@@ -27,7 +32,7 @@
methods: {
getList() {
if (this.current > this.pages) return
this.$instance.post(`/app/appneighborhoodassistancetheme/list&current=${this.current}&size=20`).then(res => {
this.$instance.post(`/app/appneighborhoodassistancetheme/list?current=${this.current}&size=20`).then(res => {
if (res.code === 0 && res.data) {
const list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
this.pages = Math.ceil(res.data.total / 10)
@@ -62,7 +67,7 @@
display: flex;
align-items: center;
justify-content: space-between;
padding: 40px 32px;
padding: 20px 32px;
h2 {
font-size: 30px;