You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< template >
< uni -popup ref = "privacyDialog" type = "dialog" >
< uni -popup -dialog :before-close ="true" type = "info" mode = "base" cancelText = "暂不同意并退出APP" confirmText = "同意并接受" title = "隐私政策"
@confirm ="agreeEnter"
@close ="exitapply" >
< view class = "privacy_con" >
<!-- < view class = "title" > 隐私政策 < / view > -- >
< view class = "content_privacy" >
< text > 欢迎使用瑜伽汇APP ! 本应用尊重并保护所有用户的个人隐私权 。 为了给您提供更准确 、 更有个性化的服务 , 本应用会按照隐私政策的规定使用和披露您的个人信息 。 可阅读 < / text >
< navigator url = "/pages/user/infofw" class = "navigator" > 《 用户服务协议 》 < / navigator >
< text > 和 < / text >
< navigator url = "/pages/user/infoys" class = "navigator" > 《 隐私政策条款 》 < / navigator >
< text > 了解详细信息 。 如果您同意 , 请点击下面按钮开始接受我们的服务 。 < / text >
< / view >
<!-- < view class = "btn" >
< button class = "no_btn" @click ="exitapply" > 暂 不 同 意 并 退 出 APP < / button >
< button class = "yes_btn" @click ="agreeEnter" > 同 意 并 接 受 < / button >
< / view > - - >
< / view >
< / u n i - p o p u p - d i a l o g >
< / u n i - p o p u p >
< / template >
< script >
export default {
data ( ) {
return {
} ;
} ,
methods : {
open ( ) {
this . $refs . privacyDialog . open ( ) ;
} ,
close ( ) {
this . $refs . privacyDialog . close ( ) ;
} ,
// 退出应用
exitapply ( ) {
if ( plus . os . name . toLowerCase ( ) === 'android' ) {
plus . runtime . quit ( ) ; // 安卓退出应用
console . log ( '安卓' ) ;
} else {
console . log ( 'ios' ) ;
plus . ios . import ( 'UIApplication' ) . sharedApplication ( ) . performSelector ( 'exit' ) ; // iOS退出应用
}
} ,
// 同意并进入应用
agreeEnter ( ) {
uni . setStorageSync ( "firstLaunchFlag" , true )
plus . runtime . agreePrivacy ( )
this . close ( ) ;
}
} ,
} ;
< / script >
< style lang = "scss" scoped >
. privacy _con {
width : 630 rpx ;
background : linear - gradient ( to bottom , # f5f5f5 , # f5f5f5 ) ;
border - radius : 32 rpx ;
. title {
width : 630 rpx ;
height : 100 rpx ;
color : # 422206 ;
font - size : 34 rpx ;
font - weight : 600 ;
line - height : 100 rpx ;
text - align : center ;
}
. content _privacy {
width : 100 % ;
padding : 0 32 rpx ;
color : # 232323 ;
font - size : 28 rpx ;
margin - top : 30 rpx ;
margin - bottom : 20 rpx ;
line - height : 42 rpx ;
. navigator {
color : # 00 a89b ;
font - weight : 500 ;
display : inline - block ;
}
}
. btn {
height : 100 rpx ;
display : flex ;
align - items : center ;
justify - content : space - evenly ;
button {
width : 262 rpx ;
height : 88 rpx ;
border - radius : 78 rpx 78 rpx 78 rpx 78 rpx ;
font - weight : bold ;
font - size : 28 rpx ;
line - height : 88 rpx ;
text - align : center ;
}
. no _btn {
background : # FAFAF9 ;
color : # 898 B96 ;
}
. yes _btn {
background - color : # 00 a89b ;
color : # FFFFFF ;
}
}
}
< / style >