From ded34e37fca5e2e05e17693d2524c3d664ebf017 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期三, 14 八月 2024 11:20:18 +0800
Subject: [PATCH] update 搜索历史

---
 pages/notice/notice.vue |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/pages/notice/notice.vue b/pages/notice/notice.vue
index cdffe5d..0c35b36 100644
--- a/pages/notice/notice.vue
+++ b/pages/notice/notice.vue
@@ -13,6 +13,17 @@
 					style="display: block;margin: 0 auto;" @click="previewImg(dto.cover)"></image>
 
 			</view>
+			<!-- <uni-swiper-dot class="uni-swiper-dot-box" :mode="'dot'" field="content" v-if="dto.url&&dto.url.length>0">
+				<swiper class="swiper-box" :interval="10000" :circular="true" :current="0" :autoplay="true">
+					<swiper-item v-for="(url, index) in dto.url" :key="index">
+						<view class="swiper-item" :class="'swiper-item' + index">
+
+							<image class="home-banner-image" mode="scaleToFill" @click="previewImg(url)" :src="url">
+							</image>
+						</view>
+					</swiper-item>
+				</swiper>
+			</uni-swiper-dot> -->
 
 			<view style="background: #F5F5F5;height: 24rpx;">
 
@@ -35,7 +46,7 @@
 		data() {
 			return {
 				dto: {
-
+					// url: [],
 				},
 				peoples: [],
 				id: ''
@@ -60,10 +71,16 @@
 				})
 
 				this.$message.hideLoading()
+				// if (data && data.url) {
+				// 	data.url = JSON.parse(data.url) || []
+				// }
 				this.dto = {
 					...data
 				}
 				this.dto.content = this.$util.formatRichText(this.dto.content || '')
+				//处理url的问题
+				// console.log('dto',this.dto)
+
 
 			},
 		}

--
Gitblit v1.9.3