From 3fde4b86ad5d250a2da09e265448aa93c460020a Mon Sep 17 00:00:00 2001 From: Default User Date: Fri, 27 Feb 2026 15:39:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=AB=98=E7=BA=A7=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E5=BC=B9=E7=AA=97=E6=BB=9A=E5=8A=A8=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=92=8C=E6=B7=BB=E5=8A=A0=E7=94=B5=E8=AF=9D=E5=8F=B7=E7=A0=81?= =?UTF-8?q?=E5=A4=8D=E5=88=B6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods-detail/goods-detail.js | 22 ++++++++++++++++++++++ pages/goods-detail/goods-detail.wxml | 2 +- pages/index/index.wxml | 4 ++-- pages/index/index.wxss | 2 ++ 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/pages/goods-detail/goods-detail.js b/pages/goods-detail/goods-detail.js index 297610b..02ba83e 100644 --- a/pages/goods-detail/goods-detail.js +++ b/pages/goods-detail/goods-detail.js @@ -885,6 +885,28 @@ Page({ // 阻止点击弹窗内容时关闭弹窗 }, + // 复制电话号码 + copyPhone: function(e) { + const phone = e.currentTarget.dataset.phone; + if (phone) { + wx.setClipboardData({ + data: phone, + success: function(res) { + wx.showToast({ + title: '电话已复制', + icon: 'success' + }); + }, + fail: function() { + wx.showToast({ + title: '复制失败', + icon: 'none' + }); + } + }); + } + }, + // 隐藏讲价弹窗 hideBargainModal() { this.setData({ diff --git a/pages/goods-detail/goods-detail.wxml b/pages/goods-detail/goods-detail.wxml index 2125cbc..dd85461 100644 --- a/pages/goods-detail/goods-detail.wxml +++ b/pages/goods-detail/goods-detail.wxml @@ -206,7 +206,7 @@ {{item.nickName || '未知用户'}} - {{item.phoneNumber || '暂无电话'}} + {{item.phoneNumber || '暂无电话'}} diff --git a/pages/index/index.wxml b/pages/index/index.wxml index d9ffe1e..7315123 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -1,6 +1,6 @@ - + - + diff --git a/pages/index/index.wxss b/pages/index/index.wxss index 2f9e5ff..c695dc7 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -2273,6 +2273,7 @@ video.product-media { width: 30%; background-color: #f5f5f5; overflow-y: auto; + -webkit-overflow-scrolling: touch; } .filter-category-item { @@ -2297,6 +2298,7 @@ video.product-media { overflow-y: auto; height: 100%; max-height: 600rpx; + -webkit-overflow-scrolling: touch; } .filter-options {