From 380a78c4c5410f0641ed976d6e3213dcf6fb7422 Mon Sep 17 00:00:00 2001 From: mahaifeng Date: Mon, 14 Oct 2024 19:33:07 +0800 Subject: [PATCH] =?UTF-8?q?[privacy]=20=E4=BF=AE=E6=94=B9=E9=9A=90?= =?UTF-8?q?=E7=A7=81=E5=8D=8F=E8=AE=AE=E5=BC=B9=E6=A1=86=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.uvue | 31 +++----- pages.json | 2 +- pages/API/dialog-page/dialog-privacytest.uvue | 67 ----------------- pages/privacy.uvue | 72 +++++++++++++++++++ 4 files changed, 83 insertions(+), 89 deletions(-) delete mode 100644 pages/API/dialog-page/dialog-privacytest.uvue create mode 100644 pages/privacy.uvue diff --git a/App.uvue b/App.uvue index bd361ebd..ba623235 100644 --- a/App.uvue +++ b/App.uvue @@ -58,27 +58,16 @@ } }) // #ifdef APP - if (process.env.NODE_ENV === 'development') { - //真机运行可以去掉此注释 - // uni.getPrivacySetting({ - // success(res){ - // if(res.needAuthorization){ - // uni.openDialogPage({ - // url: '/pages/API/dialog-page/dialog-privacytest', - // }) - // } - // } - // }) - }else { - uni.getPrivacySetting({ - success(res1){ - if(res1.needAuthorization){ - uni.openDialogPage({ - url: '/pages/API/dialog-page/dialog-privacytest', - }) - } - } - }) + if (process.env.NODE_ENV !== 'development') { //真机运行可以注释此条件 + uni.getPrivacySetting({ + success(res1){ + if(res1.needAuthorization){ + uni.openDialogPage({ + url: '/pages/privacy', + }) + } + } + }) } // #endif }, diff --git a/pages.json b/pages.json index 3ec5d2ab..936c2936 100644 --- a/pages.json +++ b/pages.json @@ -1854,7 +1854,7 @@ } }, { - "path": "pages/API/dialog-page/dialog-privacytest", + "path": "pages/privacy", "style": { "navigationBarTitleText": "" } diff --git a/pages/API/dialog-page/dialog-privacytest.uvue b/pages/API/dialog-page/dialog-privacytest.uvue deleted file mode 100644 index f654cb83..00000000 --- a/pages/API/dialog-page/dialog-privacytest.uvue +++ /dev/null @@ -1,67 +0,0 @@ - - - diff --git a/pages/privacy.uvue b/pages/privacy.uvue new file mode 100644 index 00000000..42ab4265 --- /dev/null +++ b/pages/privacy.uvue @@ -0,0 +1,72 @@ + + + -- GitLab