From 49269503d136aa65f0b29b53cf1588796315bf61 Mon Sep 17 00:00:00 2001 From: PQZ Date: Thu, 8 May 2025 14:41:46 +0800 Subject: [PATCH] 1 --- pages/index.vue | 5 ++++- pages/mine/mine-index.vue | 33 +++++++++++++++++++++------------ utils/constant.js | 2 ++ 3 files changed, 27 insertions(+), 13 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index f4b5029..5b982a2 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -113,6 +113,7 @@ this.menuCode = param.menuCode } this.selectSiteConfig("platform_tel") + this.selectSiteConfig("join_community") let that = this }, @@ -247,7 +248,9 @@ setStrData(constant.customer_service, item.value) } else if (constant.wechat_img == item.name) { setStrData(constant.wechat_img, item.value) - } + } else if (constant.join_str == item.name) { + setStrData(constant.join_str, item.value) + } }) }).catch((e) => { uni.showToast({ diff --git a/pages/mine/mine-index.vue b/pages/mine/mine-index.vue index 680cabf..c33c0c9 100644 --- a/pages/mine/mine-index.vue +++ b/pages/mine/mine-index.vue @@ -155,7 +155,7 @@ 公众号 - + 加入社区 @@ -230,6 +230,8 @@ imageUrl: '', //公众号二维码 wechat_img: constant.wechat_img, + //加入社区 + join_str: constant.join_str, //客服二维码 customer_service: constant.customer_service, //弹窗照片 @@ -286,17 +288,24 @@ dialogConfirm() { this.goPoints() }, - toggle(type, key) { - this.type = type - if (type == 'center') { - //公众号跳转 - wx.openOfficialAccountProfile({ - username: 'tonggaokuaijie', // 此处填写公众号的微信号 - success: res => {}, - fail: res => {} - }) - } - }, + toggle(type, key) { + this.type = type + if (type == 'center') { + //公众号跳转 + wx.openOfficialAccountProfile({ + username: 'tonggaokuaijie', // 此处填写公众号的微信号 + success: res => {}, + fail: res => {} + }) + } + }, + + getCommunity(type, key){ + this.type = type + this.popupImgUrl = getStrData(key) + // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性 + this.$refs.popup.open(type) + }, getDetail() { let param = { userId: this.userInfo.userId, diff --git a/utils/constant.js b/utils/constant.js index f992285..55eb724 100644 --- a/utils/constant.js +++ b/utils/constant.js @@ -17,6 +17,8 @@ const constant = { wechat_img: 'wechat_img', //客服二维码 customer_service: 'customer_service', + //加入社区 + join_str: 'join', //发布公告 fbgg: 'fbgg', }