You cannot 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.
< style scoped lang = "scss" >
. agreement - content {
width : 100 % ; ;
display : inline - block ;
flex - direction : column ;
. agreement - url {
display : inline - block ;
color : blue ;
// #ifdef H5
cursor : pointer ;
// #endif
}
}
< / style >
< template >
< view class = "up-agreement" >
< up -modal v -model :show ="show" showCancelButton @confirm ="confirm" @cancel ="close" confirmText = "阅读并同意" >
< view class = "agreement-content" >
< slot >
我们非常重视您的个人信息和隐私保护 。 为了更好地保障您的个人权益 , 在您使用我们的产品前 ,
请务必审慎阅读 《 < text class = "agreement-url" @click ="urlClick('urlProtocol')" > 用 户 协 议 < / text > 》
和 《 < text class = "agreement-url" @click ="urlClick('urlPrivacy')" > 隐 私 政 策 < / text > 》 内 的 所 有 条 款 ,
尤 其 是 : 1. 我 们 对 您 的 个 人 信 息 的 收 集 / 保 存 / 使 用 / 对 外 提 供 / 保 护 等 规 则 条 款 , 以 及 您 的 用 户 权 利 等 条 款 ; 2. 约 定 我 们 的 限 制 责 任 、 免 责
条 款 ; 3. 其 他 以 颜 色 或 加 粗 进 行 标 识 的 重 要 条 款 。 如 您 对 以 上 协 议 有 任 何 疑 问 , 请 先 不 要 同 意 , 您 点 击 “ 同 意 并 继 续 ” 的 行 为 即 表 示 您 已 阅 读
完 毕 并 同 意 以 上 协 议 的 全 部 内 容 。
< / slot >
< / view >
< / up -modal >
< / view >
< / template >
< script >
export default {
name : 'up-agreement' ,
props : {
urlProtocol : {
type : String ,
default : '/pages/user_agreement/agreement/info?title=用户协议'
} ,
urlPrivacy : {
type : String ,
default : '/pages/user_agreement/agreement/info?title=隐私政策'
} ,
} ,
emits : [ 'confirm' ] ,
data ( ) {
return {
show : false
}
} ,
methods : {
close ( ) {
// #ifdef H5
window . opener = null ;
window . close ( ) ;
// #endif
// #ifdef APP-PLUS
plus . runtime . quit ( ) ;
// #endif
} ,
confirm ( ) {
this . show = false ;
this . $emit ( 'confirm' , 1 ) ;
} ,
showModal ( ) {
this . show = true ;
} ,
urlClick ( type ) {
uni . navigateTo ( {
url : this [ type ]
} ) ;
}
}
}
< / script >