From ee4eef1558059e49ef855d743f42150668b88359 Mon Sep 17 00:00:00 2001 From: "X1627315083@163.com" <1627315083@qq.com> Date: Fri, 24 Apr 2026 17:28:14 +0800 Subject: [PATCH] fix --- src/router/index.ts | 2 +- src/tool/https.js | 2 + .../MyListings/createSelect/historyList.vue | 116 ++++++------------ .../MyListings/createSelect/index.vue | 33 +++-- .../MyListings/createSelectItem/index.vue | 78 +++++++----- 5 files changed, 104 insertions(+), 127 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index b3ec8e4d..01bf2611 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -208,7 +208,7 @@ const routes: Array = [ import("@/views/SellerDashboard/MyListings/createSelect/index.vue") }, { - path: "select/:id", + path: "select/:collectionId", name: "myListingsSelectItem", meta: { enter: "all" }, component: () => diff --git a/src/tool/https.js b/src/tool/https.js index 517776d9..37bd2e8a 100644 --- a/src/tool/https.js +++ b/src/tool/https.js @@ -479,6 +479,8 @@ export const Https = { submitSellerApply: '/seller/designer/apply', // 提交卖家申请 getSellerOrderSummary: '/seller/order/summary', // 获取卖家订单数据总览 getSellerOrderList: '/seller/order/page', // 获取卖家订单列表 + getListingPopup: '/seller/listing/popup/check', // 获取是否勾选发布作品提示 + setListingPopup: '/seller/listing/popup/set', // 设置是否勾选发布作品提示 }, diff --git a/src/views/SellerDashboard/MyListings/createSelect/historyList.vue b/src/views/SellerDashboard/MyListings/createSelect/historyList.vue index ebaae023..6c45679f 100644 --- a/src/views/SellerDashboard/MyListings/createSelect/historyList.vue +++ b/src/views/SellerDashboard/MyListings/createSelect/historyList.vue @@ -1,116 +1,72 @@ @@ -154,11 +110,13 @@ defineExpose({}) padding: 1rem 1.3rem; display: flex; gap: .4rem; + justify-content: center; > .img{ width: 9.7rem; height: 17.2rem; border-radius: 1rem; overflow: hidden; + background-color: #fff; > img{ object-fit: cover; height: 100%; diff --git a/src/views/SellerDashboard/MyListings/createSelect/index.vue b/src/views/SellerDashboard/MyListings/createSelect/index.vue index c099a534..20cf184c 100644 --- a/src/views/SellerDashboard/MyListings/createSelect/index.vue +++ b/src/views/SellerDashboard/MyListings/createSelect/index.vue @@ -4,31 +4,38 @@ import sellerHeader from "../../seller-header.vue" import historyList from "./historyList.vue" import { useRouter } from "vue-router" + //const props = defineProps({ //}) //const emit = defineEmits([ //]) const router = useRouter() -let data = reactive({ -}) -const searchType = ref('all') -const searchText = ref('') +let getCollectionListData = reactive({ + searchType: '', + searchText: '', -const historyListRef = ref(null) +}) +const isShowMark = ref(false) +const historyListRef = ref(null) as any const handleSearch = () => { + historyListRef.value.getCreateList() +} +const setSearchType = (type:any) => { + getCollectionListData.searchType = type + historyListRef.value.getCreateList() } const selectCollectionItem = (item:any) => { router.push({path:'/home/seller/myListings/select/'+item.id}) } + onMounted(()=>{ }) onUnmounted(()=>{ }) defineExpose({}) -const {} = toRefs(data);