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"); + // }) +} +