提交 ba2be59b 编写于 作者: M mahaifeng

[privacy] 添加隐私弹框示例

上级 cfc3e746
...@@ -79,6 +79,10 @@ ...@@ -79,6 +79,10 @@
goPage(url : string) { goPage(url : string) {
if (url == '/set-tab-bar') { if (url == '/set-tab-bar') {
this.showPop() this.showPop()
}else if (url == '/show-privacy-dialog') {
uni.openDialogPage({
url: '/pages/API/dialog-page/dialog-privacytest',
})
} else { } else {
if (this.hasLeftWin) { if (this.hasLeftWin) {
uni.reLaunch({ url }) uni.reLaunch({ url })
......
...@@ -158,5 +158,16 @@ function addSetTabBarPage(menuItem : MenuItem) { ...@@ -158,5 +158,16 @@ function addSetTabBarPage(menuItem : MenuItem) {
group: null, group: null,
items: [] items: []
} as MenuItem) } as MenuItem)
menuItem.items.push({
id: 'show-privacy-dialog',
name: '隐私政策',
index: 0,
path: 'show-privacy-dialog',
style: {
navigationBarTitleText: '隐私政策弹框'
},
group: null,
items: []
} as MenuItem)
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册