From cc9d5b3de0f927c539be66477cc54a638159814d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E9=A3=9E=E6=B4=8B?= <15778543+xufeiyang6017@user.noreply.gitee.com> Date: Thu, 18 Dec 2025 15:28:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BD=8D=E7=BD=AE=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E5=BC=B9=E7=AA=97=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/buyer/index.js | 6 +++++- pages/profile/index.js | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/buyer/index.js b/pages/buyer/index.js index 398c070..4096fd6 100644 --- a/pages/buyer/index.js +++ b/pages/buyer/index.js @@ -1917,13 +1917,17 @@ Page({ wx.showModal({ title: '登录成功', content: '🥚 想快速找到离你最近的新鲜鸡蛋供应商、支持自提的门店,或享受精准配送服务?允许获取位置后,我们会为你优先展示周边优质货源、计算最快配送时效,省去手动输入地址的麻烦~隐私安全有保障,位置信息仅用于优化你的购物体验,放心点击【允许】吧!', - showCancel: false, + showCancel: true, + cancelText: '取消', confirmText: '允许', success(res) { if (res.confirm) { console.log('用户点击了允许'); // 调用位置授权函数 that.requestLocationAuth(); + } else if (res.cancel) { + console.log('用户点击了取消'); + // 关闭弹窗,不执行任何操作 } } }); diff --git a/pages/profile/index.js b/pages/profile/index.js index 473e09c..7f272b8 100644 --- a/pages/profile/index.js +++ b/pages/profile/index.js @@ -644,13 +644,17 @@ Page({ wx.showModal({ title: '登录成功', content: '🥚 想快速找到离你最近的新鲜鸡蛋供应商、支持自提的门店,或享受精准配送服务?允许获取位置后,我们会为你优先展示周边优质货源、计算最快配送时效,省去手动输入地址的麻烦~隐私安全有保障,位置信息仅用于优化你的购物体验,放心点击【允许】吧!', - showCancel: false, + showCancel: true, + cancelText: '取消', confirmText: '允许', success(res) { if (res.confirm) { console.log('用户点击了允许'); // 调用位置授权函数 that.requestLocationAuth(); + } else if (res.cancel) { + console.log('用户点击了取消'); + // 关闭弹窗,不执行任何操作 } } });