From ea80cf84515af3d29f65e8a015ac5518f393aa9b Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Tue, 11 Aug 2026 16:29:06 +0800 Subject: [PATCH] 1 --- package1/post/postDetail.vue | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/package1/post/postDetail.vue b/package1/post/postDetail.vue index 61755ce..5e75529 100644 --- a/package1/post/postDetail.vue +++ b/package1/post/postDetail.vue @@ -14,7 +14,12 @@ {{post.createTime || ''}} · {{post.regionName || '本校'}} - {{post.title}} + + {{post.title}} + + {{post.contentText || stripHtml(post.content)}} ]+>/g, '') }, + buildShareInfo() { + const isPartner = this.post && this.post.postType === 'partner' + const title = this.post && this.post.title ? this.post.title : (isPartner ? '校园搭子' : '校园圈内容') + const prefix = isPartner ? '同学正在找搭子:' : '校园圈:' + const targetPath = `/package1/post/postDetail?id=${this.id || ''}&source=campus` + return { + title: prefix + title, + path: buildHomeSharePath(targetPath), + imageUrl: this.imageList.length ? this.imageList[0] : this.defaultShareImage + } + }, async ensureVerified(actionText) { const profile = await getIeProfile().catch(() => null) return ensureIeVerifiedBeforeAction({ @@ -382,7 +411,10 @@ .author { font-size: 27rpx; font-weight: 700; color: #263d38; } .author text { margin-left: 10rpx; padding: 4rpx 10rpx; border-radius: 999rpx; background: #e9faf5; color: #23a987; font-size: 20rpx; } .meta, .stats { margin-top: 8rpx; color: #8b9995; font-size: 23rpx; } - .title { margin-top: 24rpx; color: #172d28; font-size: 36rpx; font-weight: 800; } + .title-row { margin-top: 24rpx; display: flex; align-items: flex-start; gap: 16rpx; } + .title { flex: 1; min-width: 0; color: #172d28; font-size: 36rpx; font-weight: 800; } + .card-share-btn { width: 48rpx; height: 48rpx; margin: 4rpx 0 0; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 24rpx; background: #e8fbf3; line-height: 48rpx; flex-shrink: 0; } + .card-share-btn::after { border: 0; } .content { margin-top: 16rpx; color: #4d625d; font-size: 28rpx; line-height: 1.7; } .image-grid { display: grid; gap: 10rpx; margin-top: 18rpx; } .image-grid--1 { display: flex; align-items: center; justify-content: flex-start; max-width: 640rpx; max-height: 520rpx; overflow: hidden; border-radius: 20rpx; background: transparent; }