From 206f7c823719fc51885572c4496ba9fd7737eb95 Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Sat, 29 Aug 2026 09:35:03 +0800 Subject: [PATCH] 1 --- components/tab-bar/myCenter.vue | 116 ++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) diff --git a/components/tab-bar/myCenter.vue b/components/tab-bar/myCenter.vue index 88f7f5b..b11ba14 100644 --- a/components/tab-bar/myCenter.vue +++ b/components/tab-bar/myCenter.vue @@ -39,6 +39,13 @@ + + + 关注公众号,可实时接收ie/校园圈/二手消息 + + + @@ -144,6 +151,23 @@ + + + + @@ -271,6 +295,8 @@ nicknameManualTipShown: false, profileSaving: false, profileUploading: false, + officialAccountPopupVisible: false, + officialAccountQr: 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/ca2d31caab16467eac20b1711fa00a78.jpg', couponCount: Number(uni.getStorageSync('couponCount')) || 8, blindBoxCount: Number(uni.getStorageSync('blindBoxCount')) || 8, orderCounts: { @@ -463,6 +489,18 @@ this.nicknameManualTipShown = false this.$refs.profilePopup.open() }, + openOfficialAccountPopup() { + this.officialAccountPopupVisible = true + }, + closeOfficialAccountPopup() { + this.officialAccountPopupVisible = false + }, + previewOfficialAccountQr() { + uni.previewImage({ + current: this.officialAccountQr, + urls: [this.officialAccountQr] + }) + }, onProfileNicknameInput(e) { const detail = e && e.detail ? e.detail : {} const keyCode = detail.keyCode @@ -1905,6 +1943,84 @@ font-weight: 400; } + .official-account-mask { + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + z-index: 1300; + display: flex; + align-items: center; + justify-content: center; + padding: 40rpx; + background: rgba(12, 31, 25, .46); + box-sizing: border-box; + } + + .official-account-card { + position: relative; + width: 590rpx; + padding: 46rpx 42rpx 38rpx; + border-radius: 36rpx; + background: #fff; + text-align: center; + box-shadow: 0 26rpx 64rpx rgba(19, 70, 54, .22); + box-sizing: border-box; + } + + .official-account-close { + position: absolute; + right: 22rpx; + top: 18rpx; + width: 54rpx; + height: 54rpx; + line-height: 50rpx; + border-radius: 50%; + color: #8b9b96; + font-size: 44rpx; + } + + .official-account-title { + color: #17362f; + font-size: 34rpx; + font-weight: 900; + } + + .official-account-desc { + margin-top: 12rpx; + color: #6f817c; + font-size: 24rpx; + line-height: 36rpx; + } + + .official-account-qr { + width: 330rpx; + height: 330rpx; + margin: 30rpx auto 0; + display: block; + border-radius: 24rpx; + background: #f5f8f6; + } + + .official-account-tip { + margin-top: 18rpx; + color: #1a9a72; + font-size: 24rpx; + font-weight: 800; + } + + .official-account-btn { + height: 78rpx; + margin-top: 30rpx; + border-radius: 42rpx; + background: linear-gradient(135deg, #37c990, #19af7e); + color: #fff; + font-size: 28rpx; + font-weight: 900; + line-height: 78rpx; + } + .logout-power { position: relative; width: 26rpx;