微信小程序联调

This commit is contained in:
zhonghua.li
2026-04-17 07:35:37 +08:00
parent c62622dc90
commit d74bc2ad1f
484 changed files with 3312 additions and 9 deletions

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../common/vendor.js"),o=require("../../uni-starter.config.js"),{about:n}=o.config,a={data:()=>({}),onLoad(){this._canBack=!1},onBackPress(){return!this._canBack},methods:{openprotocol(o){e.index.navigateTo({url:"/uni_modules/uni-id-pages/pages/common/webview/webview?url="+n.agreements[0].url})},openPrivacyPolicy(o){e.index.navigateTo({url:"/uni_modules/uni-id-pages/pages/common/webview/webview?url="+n.agreements[1].url})},agree(o){e.index.setStorageSync("userprotocol",1),this._canBack=!0,setTimeout((()=>{e.index.navigateBack({animationDuration:0})}),100)},disagree(){}}};const r=e._export_sfc(a,[["render",function(o,n,a,r,i,c){return{a:e.o(((...e)=>c.openprotocol&&c.openprotocol(...e)),"c5"),b:e.o(((...e)=>c.openPrivacyPolicy&&c.openPrivacyPolicy(...e)),"77"),c:e.o(((...e)=>c.agree&&c.agree(...e)),"52"),d:e.o(((...e)=>c.disagree&&c.disagree(...e)),"bc")}}]]);wx.createPage(r);

View File

@@ -0,0 +1,4 @@
{
"navigationStyle": "custom",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="page"><view><text class="title">个人信息保护指引</text></view><view class="text-item"><text class="tl">1.在浏览使用时,我们会收集、使用设备标识信息用于推荐。</text></view><view class="text-item"><text class="tl">2.我们可能会申请位置权限,用于演示 uni-app 的地图、定位能力。</text></view><view class="text-item"><text class="tl">3.你可以查看完整版</text></view><view class="text-item flex-r"><text class="tl hl" bindtap="{{a}}">《用户协议》</text><text class="tl"> 和 </text><text class="tl hl" bindtap="{{b}}">《隐私政策》</text></view><view class="text-item"><text class="tl">以便了解我们收集、使用、共享、存储信息的情况,以及对信息的保护措施。</text></view><view class="text-item"><text class="service">如果你同意请点击下面的按钮以接受我们的服务</text></view><view class="text-item confirm"><button class="btn-privacy" type="primary" bindtap="{{c}}">同意</button><button class="btn-privacy btn-disagree" bindtap="{{d}}">暂不使用</button></view><view class="exit-area"></view></view>

View File

@@ -0,0 +1,2 @@
@import "../../nvue.wxss";
.page{padding:80px 30px}.title{font-size:18px;line-height:30px;margin-bottom:20px}.flex-r{flex-direction:row;flex-wrap:wrap}.text-item{margin-bottom:5px}.tl{font-size:14px;line-height:20px}.hl{color:#007aff}.service{font-size:16px;line-height:20px;margin-top:20px}.confirm{margin-top:50px;flex-direction:row}.btn-privacy{flex:1}.btn-disagree{margin-left:20px}