小程序实现隐私权限政策提示
本文主要讲在小程序中实现一下隐私权限的弹窗并进行相应操作的样式和功能
一、效果图
大概效果如下图所示:
在未同意时弹出该提示框,然后可以勾选同意或者点击不同意,同时可以跳转查看【用户协议】或【隐私政策】。
当你选择后将结果保存至本地。
二、代码
wxml
<view hidden="{
{isAgree}}" class="mask">
<view class="fixed_bottom" style="margin-bottom: 70rpx;">
<view class="frame">
<view><text class="title_privary">隐私权限政策提示</text></view>
<view class="user_privary">
<view>
<checkbox value="cb" checked="{
{isAgree}}" class="interestthreecheckbox" bind:tap="checkboxChange"/>
</view>
请您在使用前仔细阅读
<text class="underline" bindtap="linkToServe">《用户协议》</text> 和
<text class="underline" bindtap="linkToPrivacy">《隐私政策》</text>
的全部内容,请勾选上方同意按钮,开始使用我们的服务。