diff --git a/pages/tabBar/API.uvue b/pages/tabBar/API.uvue index c42621f6abf820f2a3498653461cd0d073d00666..acbd3470ef963354ead600665d3bd56ac671a291 100644 --- a/pages/tabBar/API.uvue +++ b/pages/tabBar/API.uvue @@ -79,7 +79,11 @@ goPage(url : string) { if (url == '/set-tab-bar') { this.showPop() - } else { + }else if (url == '/show-privacy-dialog') { + uni.openDialogPage({ + url: '/pages/API/dialog-page/dialog-privacytest', + }) + } else { if (this.hasLeftWin) { uni.reLaunch({ url }) } else { diff --git a/pages/tabBar/generateMenu.uts b/pages/tabBar/generateMenu.uts index 85db1e2ea0d9a81c6440003c78e2072e1a41c6eb..3fb060c5f0b2ec1c7baae42a024a62c50c71a555 100644 --- a/pages/tabBar/generateMenu.uts +++ b/pages/tabBar/generateMenu.uts @@ -157,6 +157,17 @@ 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) } }