From 58ad9e8be3f9192d524c2f58360d7865c591bf0c Mon Sep 17 00:00:00 2001 From: tsui110 Date: Tue, 24 Mar 2026 12:10:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=99=BB=E9=99=86=E5=92=8C=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=90=88=E8=A7=84=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/PrivacyPopup.vue | 190 ++++++++++++++++++++++++++++++++++++ pages.json | 3 + pages/cabinet/index.vue | 16 +-- pages/index/index.vue | 15 +-- pages/login/index.vue | 59 +++++++++++ pages/mine/index.vue | 25 ++--- pages/shop/index.vue | 22 ++--- 7 files changed, 275 insertions(+), 55 deletions(-) create mode 100644 components/PrivacyPopup.vue diff --git a/components/PrivacyPopup.vue b/components/PrivacyPopup.vue new file mode 100644 index 0000000..8a3669c --- /dev/null +++ b/components/PrivacyPopup.vue @@ -0,0 +1,190 @@ + + + + + diff --git a/pages.json b/pages.json index 06a1c33..e156f7c 100755 --- a/pages.json +++ b/pages.json @@ -279,5 +279,8 @@ "^BlessingAnimation": "@/components/BlessingAnimation.vue" } }, + "mp-weixin": { + "__usePrivacyCheck__": true + }, "uniIdRouter": {} } \ No newline at end of file diff --git a/pages/cabinet/index.vue b/pages/cabinet/index.vue index c18de05..fa3bef8 100755 --- a/pages/cabinet/index.vue +++ b/pages/cabinet/index.vue @@ -3,10 +3,7 @@ - - - - + @@ -256,11 +253,7 @@ import { onShow, onReachBottom, onShareAppMessage, onPullDownRefresh } from '@dc import { getInventory, getProductDetail, redeemInventory, requestShipping, cancelShipping, listAddresses, getShipments, createAddressShare, createShippingFeeOrder } from '@/api/appUser' import { getSynthesisRecipes, doSynthesis } from '@/api/synthesis.js' import { vibrateShort } from '@/utils/vibrate.js' -import { checkPhoneBound, checkPhoneBoundSync } from '@/utils/checkPhone.js' import { executePaymentFlow } from '@/utils/payment.js' -// #ifdef MP-WEIXIN -import customTabBar from '@/components/app-tab-bar.vue' -// #endif // #ifdef MP-TOUTIAO import customTabBarToutiao from '@/components/app-tab-bar-toutiao.vue' // #endif @@ -318,9 +311,6 @@ async function fetchProductMeta(productId) { } onShow(() => { - // 检查手机号绑定状态(快速检查本地缓存) - if (!checkPhoneBoundSync()) return - // Check for external tab switch request try { const targetTab = uni.getStorageSync('cabinet_target_tab') @@ -334,7 +324,9 @@ onShow(() => { if (!token) { uni.showModal({ title: '提示', - content: '请先登录', + content: '请先登录后查看盒柜内容', + showCancel: true, + cancelText: '稍后再说', confirmText: '去登录', success: (res) => { if (res.confirm) { diff --git a/pages/index/index.vue b/pages/index/index.vue index 6501eb8..f8afb6f 100755 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -6,10 +6,7 @@ - - - - + @@ -144,10 +141,6 @@