diff --git a/src/views/professionalListProfile/index.vue b/src/views/professionalListProfile/index.vue index af044f0..522e719 100644 --- a/src/views/professionalListProfile/index.vue +++ b/src/views/professionalListProfile/index.vue @@ -3,21 +3,61 @@ import { ref } from 'vue'; const paginationData = ref({ pageNo: 1, - pageSize: 7, - total: 7 + pageSize: 8, + total: 8 }) function paginationChange(currentPage: number, pageSize: number) { } // 临时的,有接口后使用接口数据 -const isPraise = ref(true) -const isStar = ref(true) -function handlePraise() { - isPraise.value = !isPraise.value +const dataList = ref([ + { + id: '1', + isPraise: false, + isStar: false + }, + { + id: '2', + isPraise: false, + isStar: false + }, + { + id: '3', + isPraise: false, + isStar: false + }, + { + id: '4', + isPraise: false, + isStar: false + }, + { + id: '5', + isPraise: false, + isStar: false + }, + { + id: '6', + isPraise: false, + isStar: false + }, + { + id: '7', + isPraise: false, + isStar: false + }, + { + id: '8', + isPraise: false, + isStar: false + }, +]) +function handlePraise(item:any) { + item.isPraise = !item.isPraise } -function handleStar() { - isStar.value = !isStar.value +function handleStar(item:any) { + item.isStar = !item.isStar } @@ -30,15 +70,7 @@ function handleStar() {