当前位置: 首页 > news >正文

网站建设制作定制广东官网网站建设品牌

网站建设制作定制,广东官网网站建设品牌,wordpress 本地慢,网站建设与管理考查方案使用uniapp打包ios 上架商店需要配置隐私协议政策弹窗。当用户点击确定后才能继续操作。 首先manifest.json中配置使用原生隐私政策提示框是不支持ios的。不用勾选。 解决思路: 1、新建页面:iosLogin.vue,pages.json中 这个页面需要放在第一…

使用uniapp打包ios 上架商店需要配置隐私协议政策弹窗。当用户点击确定后才能继续操作。
首先manifest.json中配置使用原生隐私政策提示框是不支持ios的。不用勾选
在这里插入图片描述

解决思路:

1、新建页面:iosLogin.vue,pages.json中 这个页面需要放在第一位

<template><view class="dialog"><view class="bg"></view><view class="title">服务协议和隐私政策</view><view class="content">请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。你可阅读<text class="link" @click="linkClick(1)">《服务协议》</text><text class="link" @click="linkClick(2)">《隐私政策》</text>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。</view><view class="btn"><button @click="disagree">不同意并退出</button><button @click="agree">同意</button></view></view>
</template>
<script>export default {data() {return {refCode:''}},onLoad(option) {if (option.refCode) {this.refCode = option.refCode;uni.setStorageSync('refCode', option.refCode);}},methods:{linkClick(num) {if(num == 1){let name1 = encodeURIComponent('用户协议')plus.runtime.openURL(`https://h5.******.com.cn/pages/login/xieyi?title=${name1}&type=user_agreement`)}else{let name2 = encodeURIComponent('隐私政策')plus.runtime.openURL(`https://h5.******.com.cn/pages/login/xieyi?title=${name2}&type=privacy_agreement`)}},agree() {uni.setStorageSync('agree', 1) // 设置缓存,下次进入应用不再弹出this.$go(4,'/pages/index/index?refCode='+this.refCode); // 跳转首页},disagree(){// #ifdef APP-PLUSplus.ios.import("UIApplication").sharedApplication().performSelector("exit")// #endif}}}
</script><style lang="scss">page {background: url('../../static/1.png')no-repeat left top #fff;background-size: 750rpx 1334rpx;position: relative;z-index: 2;.bg{position: fixed;left: 0;top: 0;z-index: -1;background: rgba(0, 0, 0, .5);width: 750rpx;height: 100vh;}}// 弹窗样式.dialog {margin: 0 auto;margin-top: calc(30vh);width: 600rpx;border-radius: 16rpx;background-color: #fff;.title {text-align: center;line-height: 80rpx;font-size: 32rpx;font-weight: 600;}.content {padding: 0 32rpx;text-indent: 1em;.link {color: #FF6840;}}.btn {display: flex;flex: 1;uni-button {margin: 0;flex: 1;background-color: #fff;}uni-button::after {border: none;}}}
</style>

app.vue

onLaunch: async function() {// #ifdef APP-PLUSconst platform = uni.getSystemInfoSync().osName// 判断是不是ios,并且是否同意了隐私政策let agree = uni.getStorageSync('agree')if (platform === 'android') {plus.navigator.closeSplashscreen() // 关闭启动页} else {if(agree){uni.reLaunch({url: "/pages/index/index",success() {plus.navigator.closeSplashscreen()}})}else{console.log('ios第一次启动需要同意隐私政策');// ios单独进行隐私政策验证uni.navigateTo({url: "/pages/login/iosLogin",success() {plus.navigator.closeSplashscreen()}})}}// #endif
},

提示:如果项目有用到消息提示类的功能,在确认隐私政策前可能会有弹窗提示 是否接收APP消息,这个不影响上架。

http://www.yayakq.cn/news/193350/

相关文章:

  • 高端自适应网站网站建设应该考虑哪些问题
  • 中文网站排行榜网站做推广页需要什么软件
  • 潍坊设计网站建设电子商城网站的设计与实现
  • 网站成功秘诀网站打开速度检测攻击
  • 100%能上热门的短视频素材甘肃网站建设方案优化
  • 网站栏目合理性dw响应式网站模板
  • 网站建设与管理 课件百度搜索推广开户
  • 微信网站建设app公司网站建设公司权威机构
  • 国企门户网站建设情况汇报网站建设的网站定位
  • 有哪些网站做的好处wordpress企业末班
  • 企业网站建设情况其它类型的定制营销型网站
  • php网站建设公司cdn网站
  • 网站开发的经济可行性分析公司两个网站如何都备案
  • 卖视频会员个人网站怎么做网页升级更新自动更新
  • 常用wap网站开发工具 手机网站制作软件wordpress404模板
  • 做网站跟推广哪家公司好dede旅游网站
  • 网站从建设到上线流程网站建设在哪里进行
  • 成都个人建网站大丰seo排名
  • 网站设计重要性广西网络干部学院
  • 长沙网站制作哪家专业erp系统有哪些功能模块
  • 做网站视频存储wordpress底部导航插件
  • 站酷网vi设计最新新闻热点事件2023年4月
  • 网站显示速度的代码手机pc网站共用数据库
  • 吴江区建设局网站打不开网站首页收录突然没有了
  • 乌兰县wap网站建设公司开什么工作室最赚钱
  • 产品设计招聘网站永安网站建设
  • 公益网站建设的意义南通住房和城乡建设局网站首页
  • 做汽车英文网站免费推广方式
  • 上海公司做网站的价格wordpress 本文目录
  • iis7.5网站配置有没有可以做游戏的网站吗