Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
eims-mini-program
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5d8f6532
authored
Aug 22, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加隐私协议
1 parent
f69a96ae
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
8 deletions
pages/index/index.js
pages/index/index.wxml
pages/index/index.wxss
project.config.json
pages/index/index.js
View file @
5d8f653
...
@@ -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
({
...
...
pages/index/index.wxml
View file @
5d8f653
...
@@ -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">
...
...
pages/index/index.wxss
View file @
5d8f653
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
}
}
.tips .icon {
.tips .icon {
left:
156
rpx;
left:
84
rpx;
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:
13
0rpx;
left:
5
0rpx;
z-index: 999;
z-index: 999;
}
}
...
...
project.config.json
View file @
5d8f653
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment