diff --git a/pages/API/privacy/privacy.uvue b/pages/API/privacy/privacy.uvue
index c21ed2209c09a91178a4c02676005b0bf86a874f..6e0b620f14a1fc8d6768df8fe67e31366fd5f65c 100644
--- a/pages/API/privacy/privacy.uvue
+++ b/pages/API/privacy/privacy.uvue
@@ -15,6 +15,9 @@
+
@@ -63,6 +66,11 @@
},
resetPrivacyAuthorization(){
uni.resetPrivacyAuthorization()
+ },
+ openPrivacyDialog(){
+ uni.openDialogPage({
+ url: '/pages/component/button/privacy',
+ })
}
}
}
diff --git a/pages/component/button/button.uvue b/pages/component/button/button.uvue
index 30f437907cc1db22b3982edd80f28f4f663bc939..8aa7f2192d24f96ff2f409c03154c542a178a340 100644
--- a/pages/component/button/button.uvue
+++ b/pages/component/button/button.uvue
@@ -38,6 +38,11 @@
uni.navigateTo({
url: 'buttonstatus',
})
+ },
+ openPrivacyDialog() {
+ uni.openDialogPage({
+ url: '/pages/component/button/privacy',
+ })
},
//用于自动化测试
checkUniButtonElement() : boolean {
@@ -71,7 +76,10 @@
-
+
+
+
+
diff --git a/pages/tabBar/API.uvue b/pages/tabBar/API.uvue
index ea687b48b80f044ab025077d632e714b24e65914..8ac278c180567ae19ff88de910eaa965bf9417ab 100644
--- a/pages/tabBar/API.uvue
+++ b/pages/tabBar/API.uvue
@@ -79,11 +79,7 @@
goPage(url : string) {
if (url == '/set-tab-bar') {
this.showPop()
- }else if (url == '/show-privacy-dialog') {
- uni.openDialogPage({
- url: '/pages/component/button/privacy',
- })
- } else {
+ }else {
if (this.hasLeftWin) {
uni.reLaunch({ url })
} else {
@@ -137,4 +133,4 @@
display: none;
background-color: rgba(16, 16, 16, 0.5);
}
-
+
diff --git a/pages/tabBar/generateMenu.uts b/pages/tabBar/generateMenu.uts
index 61e3340911a779ecd1586663b20a9fcc3a2d02d8..85db1e2ea0d9a81c6440003c78e2072e1a41c6eb 100644
--- a/pages/tabBar/generateMenu.uts
+++ b/pages/tabBar/generateMenu.uts
@@ -158,16 +158,5 @@ function addSetTabBarPage(menuItem : MenuItem) {
group: null,
items: []
} as MenuItem)
- menuItem.items.push({
- id: 'show-privacy-dialog',
- name: '隐私政策',
- index: 0,
- path: 'show-privacy-dialog',
- style: {
- navigationBarTitleText: '隐私政策弹框'
- },
- group: null,
- items: []
- } as MenuItem)
}
-}
+}