Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李俊赕
self-support
Commits
1f8fe63e
Commit
1f8fe63e
authored
Apr 18, 2023
by
刘文虎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加隐私协议确认
parent
01078be8
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
553 additions
and
459 deletions
+553
-459
manifest.json
src/manifest.json
+1
-1
index.vue
src/pages/index/index.vue
+459
-455
mine.vue
src/pages/index/mine.vue
+1
-1
index.vue
src/pages/login/index.vue
+92
-2
No files found.
src/manifest.json
View file @
1f8fe63e
...
...
@@ -88,7 +88,7 @@
},
"plugins"
:
{
"contactPlugin"
:
{
"version"
:
"1.4.
4
"
,
"version"
:
"1.4.
5
"
,
"provider"
:
"wx104a1a20c3f81ec2"
}
}
...
...
src/pages/index/index.vue
View file @
1f8fe63e
This diff is collapsed.
Click to expand it.
src/pages/index/mine.vue
View file @
1f8fe63e
...
...
@@ -258,7 +258,7 @@ export default {
},
onShow
()
{
// 更新是否需要入住
if
(
!
this
.
needSettled
)
return
;
if
(
!
this
.
vuex_token
||!
this
.
needSettled
)
return
;
this
.
$u
.
api
.
getSettleBaseInfo
().
then
(
res
=>
{
this
.
needSettled
=
res
.
data
.
needSettled
;
});
...
...
src/pages/login/index.vue
View file @
1f8fe63e
...
...
@@ -22,6 +22,15 @@
<view
class=
"button-text"
>
立即绑定
</view>
</u-button>
</view>
<view
class=
"quick-title"
@
click=
"handleClickAgree"
>
<view
class=
"icon-view"
:class=
"
{ 'icon-agree': agree }">
<u-icon
name=
"checkmark-circle-fill"
v-if=
"agree"
size=
"44"
color=
"#2979ff"
></u-icon></view>
<view
class=
"agree-text-view"
>
我已阅读并同意
<text
class=
"name-text"
@
tap
.
stop
.
prevent=
"toProtocol('protocol')"
>
《用户服务协议》
</text>
和
<text
class=
"name-text"
@
tap
.
stop
.
prevent=
"toProtocol('policy')"
>
《隐私政策》
</text>
</view>
</view>
</view>
</
template
>
...
...
@@ -31,8 +40,9 @@
export
default
{
data
()
{
return
{
phone
:
'13423831191'
,
code
:
'174253'
,
agree
:
false
,
phone
:
''
,
code
:
''
,
timer
:
null
,
canGetCode
:
true
,
seconds
:
60
,
...
...
@@ -70,7 +80,36 @@
}
},
methods
:
{
toProtocol
(
type
)
{
if
(
type
===
'protocol'
){
uni
.
navigateTo
({
url
:
'/pages/mine/about/user-agreement/user-agreement'
});
}
else
{
uni
.
navigateTo
({
url
:
'/pages/mine/about/privacy-agreement/privacy-agreement'
});
}
},
handleClickAgree
()
{
this
.
agree
=
!
this
.
agree
;
},
checkAgree
()
{
if
(
!
this
.
agree
)
{
uni
.
showToast
({
title
:
'请阅读并同意《用户服务协议》和《隐私政策》'
,
icon
:
'none'
,
duration
:
2000
});
return
false
;
}
return
true
;
},
handleClick
()
{
if
(
!
this
.
checkAgree
())
{
return
;
}
if
(
this
.
phone
==
''
)
{
uni
.
showToast
({
title
:
'请输入手机号'
,
...
...
@@ -126,6 +165,9 @@
}
},
handleClickSave
()
{
if
(
!
this
.
checkAgree
())
{
return
;
}
this
.
signup
();
},
signup
()
{
...
...
@@ -346,5 +388,53 @@
font-size
:
32rpx
;
}
}
.quick-title
{
z-index
:
10
;
width
:
100%
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
position
:
fixed
;
left
:
0
;
bottom
:
5%
;
text-align
:
center
;
line-height
:
28upx
;
font-size
:
24upx
;
color
:
#8d8d8d
;
font-weight
:
500
;
&
-weight
{
font-weight
:
bold
;
color
:
#333333
;
}
&
-icon
{
width
:
28upx
;
height
:
28upx
;
border-radius
:
50%
;
margin-right
:
16upx
;
border
:
2upx
solid
#333333
;
display
:
inline-block
;
}
.icon-view
{
width
:
36rpx
;
height
:
36rpx
;
font-size
:
18rpx
;
border-radius
:
50%
;
border
:
2rpx
solid
#333333
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
background-color
:
#ffffff
;
margin-right
:
12rpx
;
}
.icon-agree
{
// background-color: #3383fe;
// color: #ffffff;
border
:
0rpx
;
}
.name-text
{
color
:
#3383fe
;
}
}
}
</
style
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment