diff --git a/App.uvue b/App.uvue index bd361ebd823c1ec30977c1879da0e41f1cb0a572..ba623235a9c7f54a5e4984fcd10052b86e0006f7 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 3ec5d2abdf22e498d16877ec05e028fa291b7753..936c2936896b7bb6379a7e5fce05b63ab118117c 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 f654cb831c28e09b72a104f8e6a5990ffbfb7337..0000000000000000000000000000000000000000 --- 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 0000000000000000000000000000000000000000..42ab4265881f7969cd0ca867ac9dcaf0a5c85deb --- /dev/null +++ b/pages/privacy.uvue @@ -0,0 +1,72 @@ + + +