Commit 5d8f6532 by 前端

增加隐私协议

1 parent f69a96ae
...@@ -13,10 +13,18 @@ Page({ ...@@ -13,10 +13,18 @@ Page({
service: n.default service: n.default
}, },
noScroll: function() {}, noScroll: function() {},
showProtocol: function() { showProtocol: function(e) {
this.setData({ // this.setData({
protocol: !1 // 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() { choose: function() {
this.setData({ this.setData({
......
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
<image class="check-img" src="{{agree?'../images/ok.png':'../images/box.png'}}"></image> <image class="check-img" src="{{agree?'../images/ok.png':'../images/box.png'}}"></image>
</view> </view>
阅读并同意以下协议 阅读并同意以下协议
<text catchtap="showProtocol">《服务协议》</text> <text catchtap="showProtocol" data-id="agreement">《用户协议》</text>
<text catchtap="showProtocol" data-id="privacy">《隐私协议》</text>
</view> </view>
<view catchtouchmove="noScroll" class="protocol" hidden="{{protocol}}"> <view catchtouchmove="noScroll" class="protocol" hidden="{{protocol}}">
<view class="protocol-box"> <view class="protocol-box">
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
} }
.tips .icon { .tips .icon {
left: 156rpx; left: 84rpx;
width: 24rpx; width: 24rpx;
height: 24rpx; height: 24rpx;
border-radius: 2rpx; border-radius: 2rpx;
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
.tips .choose-box { .tips .choose-box {
width: 80rpx; width: 80rpx;
height: 80rpx; height: 80rpx;
left: 130rpx; left: 50rpx;
z-index: 999; z-index: 999;
} }
......
...@@ -37,7 +37,8 @@ ...@@ -37,7 +37,8 @@
"ignore": [], "ignore": [],
"disablePlugins": [], "disablePlugins": [],
"outputPath": "" "outputPath": ""
} },
"condition": false
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.22.0", "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!