From 44ef3701f885b8bef0f5cd238d8890b8dafd3dd5 Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Wed, 19 Jul 2023 01:21:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/public/apartment-item.vue | 1 - src/components/public/public-list-item.vue | 31 +- src/views/user.vue | 31 +- yarn.lock | 8108 ++++++++++---------- 4 files changed, 4106 insertions(+), 4065 deletions(-) diff --git a/src/components/public/apartment-item.vue b/src/components/public/apartment-item.vue index 4ccd7d4..ce5a237 100644 --- a/src/components/public/apartment-item.vue +++ b/src/components/public/apartment-item.vue @@ -36,7 +36,6 @@ const props = defineProps({ item: Object, }); -let imgse = ref('https://oss.gter.net/Zvt57TuJSUvkyhw-xG7Y2l-R-Josd3fqqsgFptxhXa6RWi26P-BuTQccE7DK7tkb8MVYZjQ0Mjk~') \ No newline at end of file diff --git a/src/views/user.vue b/src/views/user.vue index 2bd04df..906dcce 100644 --- a/src/views/user.vue +++ b/src/views/user.vue @@ -70,13 +70,13 @@ }} | 下架 {{ stat['offshelf'] }})
-
- +
+
-
- +
+
@@ -141,7 +141,14 @@ async function init() { }); } -let loading = null +// let loading = null + +let loading = ElLoading.service({ + lock: true, + text: 'Loading', + background: 'rgba(0, 0, 0, 0.7)', + visible: false +}); let publishData = ref({ page: 1, @@ -151,7 +158,7 @@ let publishData = ref({ let stat = ref({}) // 我的发布的详细数量 // 获取发布数据 const getPublishData = () => { - if (publishData.value['page'] == 0 || loading) return + if (publishData.value['page'] == 0 || loading['visible'].value) return loading = ElLoading.service({ lock: true, text: 'Loading', @@ -177,7 +184,7 @@ let favData = ref({ // 获取收藏数据 const getFavData = () => { - if (favData.value['page'] == 0 || loading) return + if (favData.value['page'] == 0 || loading['visible'].value) return loading = ElLoading.service({ lock: true, text: 'Loading', @@ -202,6 +209,16 @@ const cutTab = (value) => { else if (tabState.value == 'fav' && favData.value['list'].length == 0) getFavData() } +let cancelCollection = data => { + + favData.value.list.splice(data['index'], 1) + + // proxy.$post("/tenement/pc/api/user/favList", { + // }).then(res => { + // console.log(res, "res"); + // }) +} +