From ff7e135ef0db4a10cd56d1c22bf35b8fd2b68719 Mon Sep 17 00:00:00 2001 From: zoujing Date: Sun, 10 Aug 2025 19:13:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ImageSwiper/index.vue | 38 ++-- components/ImageSwiper/styles/index.scss | 2 +- pages/chat/ChatMainList.vue | 7 + pages/module/detail/DetailCardCompontent.vue | 35 ++++ .../detail/DetailCardGoodsContentList.vue | 198 ++++++++++++++++++ pages/module/recommend/RecommendPostsList.vue | 3 +- utils/WebSocketManager.js | 4 +- 7 files changed, 264 insertions(+), 23 deletions(-) create mode 100644 pages/module/detail/DetailCardCompontent.vue create mode 100644 pages/module/detail/DetailCardGoodsContentList.vue diff --git a/components/ImageSwiper/index.vue b/components/ImageSwiper/index.vue index 98ae825..c880131 100644 --- a/components/ImageSwiper/index.vue +++ b/components/ImageSwiper/index.vue @@ -14,7 +14,7 @@ v-for="(item, index) in thumbnails" :key="index" > - + @@ -39,8 +39,8 @@ :id="`thumbnail-${index}`" @click="handleThumbnailClick(index)" > - - {{ thumb.photoName }} + + {{ thumb.name }} @@ -106,35 +106,35 @@ const swiperStyle = computed(() => { // 默认图片数据 const defaultImages = [ { - photoUrl: - "https://fastly.picsum.photos/id/866/654/400.jpg?hmac=z3vI4CYrpnXEgimSlJCDwXRxEa-UDHiRwzGEyB8V-po", - photoName: "瑶山古寨", + imageUrl: + "https://one-feel-image-bucket.oss-cn-chengdu.aliyuncs.com/DH04006.jpg", + name: "瑶山古寨", }, { - photoUrl: - "https://fastly.picsum.photos/id/284/654/400.jpg?hmac=89XRCJxYTblKIFGLOp6hJ9U0GC8BQrcnJwE5pG21NAk", - photoName: "民俗表演", + imageUrl: + "https://one-feel-image-bucket.oss-cn-chengdu.aliyuncs.com/DH04002.JPG", + name: "民俗表演", }, { - photoUrl: - "https://fastly.picsum.photos/id/281/654/400.jpg?hmac=hcAJB7y2Xz3DVuz6S4XeQZgzaTJ_QWnxtbnaagZL6Fs", - photoName: "特色美食", + imageUrl: + "https://one-feel-image-bucket.oss-cn-chengdu.aliyuncs.com/DH04007.jpg", + name: "特色美食", }, { - photoUrl: - "https://fastly.picsum.photos/id/435/654/400.jpg?hmac=TSVDxfo-zXbunxNQK0erSG_nmKcS20xfhbQsCAXLlHo", - photoName: "传统服饰", + imageUrl: + "https://one-feel-image-bucket.oss-cn-chengdu.aliyuncs.com/DH04014.JPG", + name: "传统服饰", }, { - photoUrl: - "https://fastly.picsum.photos/id/737/654/400.jpg?hmac=VED05oEK3XB0Aa_DUVoZjTAf0bHjAmNYyJky4lq5vVo", - photoName: "其他", + imageUrl: + "https://one-feel-image-bucket.oss-cn-chengdu.aliyuncs.com/DH04020.JPG", + name: "其他", }, ]; // 使用传入的图片数据或默认数据 const thumbnails = computed(() => { - return props.images.length ? props.images : defaultImages; + return props.images; }); const handleThumbnailClick = (index) => { diff --git a/components/ImageSwiper/styles/index.scss b/components/ImageSwiper/styles/index.scss index e9a73f6..5c5038f 100644 --- a/components/ImageSwiper/styles/index.scss +++ b/components/ImageSwiper/styles/index.scss @@ -29,7 +29,7 @@ position: absolute; left: 12px; right: 12px; - bottom: 36px; + bottom: 0px; height: 60px; } diff --git a/pages/chat/ChatMainList.vue b/pages/chat/ChatMainList.vue index e50bd46..626b4be 100644 --- a/pages/chat/ChatMainList.vue +++ b/pages/chat/ChatMainList.vue @@ -57,6 +57,12 @@ item.toolCall.componentName === CompName.createWorkOrderCard " /> +