微信小程序发布试用版本
This commit is contained in:
49
unpackage/dist/dev/mp-weixin/pages-subpackage/uni-agree/uni-agree.js
vendored
Normal file
49
unpackage/dist/dev/mp-weixin/pages-subpackage/uni-agree/uni-agree.js
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const uniStarter_config = require("../../uni-starter.config.js");
|
||||
const { about } = uniStarter_config.config;
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
onLoad() {
|
||||
this._canBack = false;
|
||||
},
|
||||
onBackPress() {
|
||||
return !this._canBack;
|
||||
},
|
||||
methods: {
|
||||
openprotocol(e) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/uni_modules/uni-id-pages/pages/common/webview/webview?url=" + about.agreements[0].url
|
||||
});
|
||||
},
|
||||
openPrivacyPolicy(e) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/uni_modules/uni-id-pages/pages/common/webview/webview?url=" + about.agreements[1].url
|
||||
});
|
||||
},
|
||||
agree(e) {
|
||||
common_vendor.index.setStorageSync("userprotocol", 1);
|
||||
this._canBack = true;
|
||||
setTimeout(() => {
|
||||
common_vendor.index.navigateBack({
|
||||
animationDuration: 0
|
||||
});
|
||||
}, 100);
|
||||
},
|
||||
disagree() {
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.o((...args) => $options.openprotocol && $options.openprotocol(...args)),
|
||||
b: common_vendor.o((...args) => $options.openPrivacyPolicy && $options.openPrivacyPolicy(...args)),
|
||||
c: common_vendor.o((...args) => $options.agree && $options.agree(...args)),
|
||||
d: common_vendor.o((...args) => $options.disagree && $options.disagree(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages-subpackage/uni-agree/uni-agree.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages-subpackage/uni-agree/uni-agree.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages-subpackage/uni-agree/uni-agree.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages-subpackage/uni-agree/uni-agree.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages-subpackage/uni-agree/uni-agree.wxml
vendored
Normal 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>
|
||||
39
unpackage/dist/dev/mp-weixin/pages-subpackage/uni-agree/uni-agree.wxss
vendored
Normal file
39
unpackage/dist/dev/mp-weixin/pages-subpackage/uni-agree/uni-agree.wxss
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
@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;
|
||||
}
|
||||
Reference in New Issue
Block a user