From 12b2c447a6006f99284c4946b3d6f70cbf43280c Mon Sep 17 00:00:00 2001 From: xuxy <1059738716@qq.com> Date: 星期六, 10 八月 2024 18:26:16 +0800 Subject: [PATCH] 1 --- pages/notice/notice.vue | 18 ++++++++++++++---- 1 files changed, 14 insertions(+), 4 deletions(-) diff --git a/pages/notice/notice.vue b/pages/notice/notice.vue index b95915d..cdffe5d 100644 --- a/pages/notice/notice.vue +++ b/pages/notice/notice.vue @@ -8,10 +8,20 @@ <view style="background: #F5F5F5;height: 24rpx;"> </view> + <view class="bg-white p10"> + <image :src="dto.cover" v-if="dto.cover" mode="aspectFit" class="m-t-8" + style="display: block;margin: 0 auto;" @click="previewImg(dto.cover)"></image> + + </view> + + <view style="background: #F5F5F5;height: 24rpx;"> + + </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> @@ -45,7 +55,7 @@ this.$message.showLoading() const { data - } = await this.$http.request('get', '/api/ua/announcement/get/' + this.id, { + } = await this.$http.request('get', '/api/pub/announcement/page/view?id=' + this.id, { }) @@ -53,8 +63,8 @@ this.dto = { ...data } - this.dto.content = this.$util.formatRichText(this.dto.content||'') - + this.dto.content = this.$util.formatRichText(this.dto.content || '') + }, } } -- Gitblit v1.9.3