Commit 5d8f6532 by 前端

增加隐私协议

1 parent f69a96ae
......@@ -13,10 +13,18 @@ Page({
service: n.default
},
noScroll: function() {},
showProtocol: function() {
this.setData({
protocol: !1
});
showProtocol: function(e) {
// this.setData({
// protocol: !1
// });
let id = e.currentTarget.dataset.id;
let url = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/html/privacy.html'
if(id == 'agreement'){
url = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/html/agreement.html'
}
wx.navigateTo({
url: '/pages/webpage/webpage?path=' + encodeURIComponent(url),
})
},
choose: function() {
this.setData({
......
......@@ -9,7 +9,8 @@
<image class="check-img" src="{{agree?'../images/ok.png':'../images/box.png'}}"></image>
</view>
阅读并同意以下协议
<text catchtap="showProtocol">《服务协议》</text>
<text catchtap="showProtocol" data-id="agreement">《用户协议》</text>
<text catchtap="showProtocol" data-id="privacy">《隐私协议》</text>
</view>
<view catchtouchmove="noScroll" class="protocol" hidden="{{protocol}}">
<view class="protocol-box">
......
......@@ -47,7 +47,7 @@
}
.tips .icon {
left: 156rpx;
left: 84rpx;
width: 24rpx;
height: 24rpx;
border-radius: 2rpx;
......@@ -64,7 +64,7 @@
.tips .choose-box {
width: 80rpx;
height: 80rpx;
left: 130rpx;
left: 50rpx;
z-index: 999;
}
......
......@@ -37,7 +37,8 @@
"ignore": [],
"disablePlugins": [],
"outputPath": ""
}
},
"condition": false
},
"compileType": "miniprogram",
"libVersion": "2.22.0",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!