From eeaf21d2727695371d083152ad64d69e76991198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Mon, 3 Nov 2025 15:54:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A5=BD=E5=BA=97=E5=BF=AB?= =?UTF-8?q?=E6=8D=B7=E6=94=AF=E4=BB=98=E6=93=8D=E4=BD=9C=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/localLife/detail/index.vue | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/packages/localLife/detail/index.vue b/packages/localLife/detail/index.vue index 20a25526..d0d47a1a 100644 --- a/packages/localLife/detail/index.vue +++ b/packages/localLife/detail/index.vue @@ -63,7 +63,8 @@ {{ item.comment }} - + @@ -115,7 +116,8 @@ 客服 - 快捷买单 + @@ -139,6 +141,7 @@ export default { commentList: [], flag: false, isShow: false, + isDisabled: false, }; }, onLoad(options) { @@ -170,7 +173,16 @@ export default { methods: { handleQuickPayClick() { - NavgateTo('../pay/index'); + if (this.isDisabled) { + uni.showToast({ + title: '支付未开通,升级 VIP 或联系工作人员开通', + icon: 'none', + duration: 2000 + }); + + } else { + NavgateTo('../pay/index'); + } }, //获取评论列表 getCommentList() { @@ -208,6 +220,7 @@ export default { id: uni.getStorageSync("merchantInfo").id, }).then(res => { this.isShow = res.quick_purchase_enabled == 1 + this.isDisabled = res.level == 1 }) }, @@ -283,7 +296,7 @@ export default { commentDesc(e) { NavgateTo(`../UserComment/index?id=${e.id}`) }, - + // 预览图片 previewImage(imageList, currentIndex) { // 将相对路径转换为完整URL @@ -291,10 +304,10 @@ export default { uni.previewImage({ urls: urls, current: urls[currentIndex], - success: function(res) { + success: function (res) { console.log('预览成功', res); }, - fail: function(err) { + fail: function (err) { console.log('预览失败', err); } });