From 4d4a74a653e326150fccdc13d83bd69db672b100 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期三, 14 八月 2024 11:21:48 +0800
Subject: [PATCH] 1
---
pages/home/components/home-banner-detail.vue | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/pages/home/components/home-banner-detail.vue b/pages/home/components/home-banner-detail.vue
index 72bf866..e0b8b29 100644
--- a/pages/home/components/home-banner-detail.vue
+++ b/pages/home/components/home-banner-detail.vue
@@ -17,10 +17,25 @@
</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;" v-if="dto.url&&dto.url.length>0">
+
+ </view> -->
+
<!-- 活动描述 -->
<view class="info-desc">
<!-- <view class="title">公告描述</view> -->
- <view v-html="dto.content||'暂无内容'" class="rich" style="overflow: scroll;">
+ <view v-html="dto.content||'暂无详情'" class="rich" style="overflow: scroll;">
</view>
</view>
@@ -59,6 +74,9 @@
})
this.$message.hideLoading()
+ if (data && data.url) {
+ data.url = JSON.parse(data.url) || []
+ }
this.dto = {
...data
}
--
Gitblit v1.9.3