From faf1f6d3d8cbac826d1312a1a130124a6b17e839 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Wed, 7 Jan 2026 18:28:51 +0800 Subject: [PATCH 1/5] =?UTF-8?q?chore:=20=E5=A2=9E=E5=8A=A0=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=98=AF=E5=BF=AB=E5=BA=94=E7=94=A8=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E7=9A=84API=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/util.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/common/js/util.js b/common/js/util.js index 9829e01..56519f4 100644 --- a/common/js/util.js +++ b/common/js/util.js @@ -1162,5 +1162,23 @@ export default { verifyMobile(mobile) { var parse = /^\d{11}$/.test(mobile); return parse; + }, + /** + * 判断是否为快应用环境 + * @returns {boolean} 是否为快应用 + */ + isQuickApp() { + const systemInfo = this.getDeviceInfo(); + return systemInfo.platform === 'quickapp' || process.env.UNI_PLATFORM === 'quickapp'; + }, + /** + * 判断是否为华为快应用环境 + * @returns {boolean} 是否为华为快应用 + */ + isHuaweiQuickApp() { + if (!this.isQuickApp()) return false; + const systemInfo = this.getDeviceInfo(); + return systemInfo.brand === 'HUAWEI' || systemInfo.manufacturer === 'HUAWEI' || + (typeof qh !== 'undefined' && qh.platform === 'huawei'); } } \ No newline at end of file From 6718010ceb476f7af448479acbebf259ab65f5d3 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Thu, 8 Jan 2026 09:04:36 +0800 Subject: [PATCH 2/5] =?UTF-8?q?chore:=20common/js/util.js=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=88=A4=E6=96=AD=E6=98=AF=E5=BF=AB=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/util.js | 8 ++++++++ pages/index/index.vue | 4 +--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/common/js/util.js b/common/js/util.js index 56519f4..fb6a505 100644 --- a/common/js/util.js +++ b/common/js/util.js @@ -1168,8 +1168,12 @@ export default { * @returns {boolean} 是否为快应用 */ isQuickApp() { + // #ifndef QUICKAPP-WEBVIEW const systemInfo = this.getDeviceInfo(); return systemInfo.platform === 'quickapp' || process.env.UNI_PLATFORM === 'quickapp'; + // #endif + + return true; }, /** * 判断是否为华为快应用环境 @@ -1177,8 +1181,12 @@ export default { */ isHuaweiQuickApp() { if (!this.isQuickApp()) return false; + + // #ifndef QUICKAPP-WEBVIEW-HUAWEI const systemInfo = this.getDeviceInfo(); return systemInfo.brand === 'HUAWEI' || systemInfo.manufacturer === 'HUAWEI' || (typeof qh !== 'undefined' && qh.platform === 'huawei'); + // #endif + return true; } } \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index 0a5cad0..cdab934 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -137,10 +137,8 @@ - - + - From ee4fbb277c90d0fb69adeefc111075683c39d597 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Thu, 8 Jan 2026 09:39:15 +0800 Subject: [PATCH 3/5] =?UTF-8?q?test(=E9=9A=90=E7=A7=81):=20=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/privacy-popup/privacy-popup.vue | 496 +++++++++++++-------- 1 file changed, 309 insertions(+), 187 deletions(-) diff --git a/components/privacy-popup/privacy-popup.vue b/components/privacy-popup/privacy-popup.vue index 6ed70c8..6cc4810 100644 --- a/components/privacy-popup/privacy-popup.vue +++ b/components/privacy-popup/privacy-popup.vue @@ -1,237 +1,359 @@ \ No newline at end of file From 5a8663eb488b576909247af88952107182403351 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Thu, 8 Jan 2026 14:52:01 +0800 Subject: [PATCH 4/5] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=9C=A8=E5=BF=AB?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E7=8E=AF=E5=A2=83=E4=B8=AD=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=94=A8=E6=88=B7=E9=9A=90=E7=A7=81=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E7=AA=97=E4=BD=93=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/util.js | 20 ++++++- components/privacy-popup/privacy-popup.vue | 68 +++++++++++++++------- lang/zh-cn/order/activist.js | 12 ++-- pages_goods/public/css/list.scss | 2 +- 4 files changed, 72 insertions(+), 30 deletions(-) diff --git a/common/js/util.js b/common/js/util.js index fb6a505..9977c54 100644 --- a/common/js/util.js +++ b/common/js/util.js @@ -1169,8 +1169,24 @@ export default { */ isQuickApp() { // #ifndef QUICKAPP-WEBVIEW - const systemInfo = this.getDeviceInfo(); - return systemInfo.platform === 'quickapp' || process.env.UNI_PLATFORM === 'quickapp'; + let _isQuickApp = false; + try { + const ua = navigator?.userAgent?.toLowerCase(); + console.log('ua = ', ua); + _isQuickApp = ua.indexOf('quickapp') !== -1; + + if (!_isQuickApp) { + // 特殊说明由于网站是嵌入到快应用的Webview组件中,UA中不会包含quickapp字符串, + // 但是会包含uniacid参数,所以这里通过uniacid参数来判断是否为快应用环境 + _isQuickApp = ua.indexOf('uniacid=') !== -1; + } + } catch (e) {} + + if (!_isQuickApp) { + const systemInfo = this.getDeviceInfo(); + _isQuickApp = systemInfo?.platform === 'quickapp' || process?.env?.UNI_PLATFORM === 'quickapp'; + } + return _isQuickApp; // #endif return true; diff --git a/components/privacy-popup/privacy-popup.vue b/components/privacy-popup/privacy-popup.vue index 6cc4810..0a53959 100644 --- a/components/privacy-popup/privacy-popup.vue +++ b/components/privacy-popup/privacy-popup.vue @@ -1,6 +1,6 @@