Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
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
刘文虎
account-book
Commits
a40d227e
Commit
a40d227e
authored
Feb 26, 2024
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 会员服务协议
parent
c39447a5
Pipeline
#7854
canceled with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
1 deletion
+55
-1
index.vue
components/bottom-pay/index.vue
+51
-1
agreement.vue
pages/login/agreement/agreement.vue
+4
-0
No files found.
components/bottom-pay/index.vue
View file @
a40d227e
...
@@ -18,6 +18,16 @@
...
@@ -18,6 +18,16 @@
</view>
</view>
</view>
</view>
<view
class=
"botton-view"
>
<view
class=
"botton-view"
>
<view
class=
"agree-view"
@
tap=
"handleClickAgree"
>
<view
class=
"icon-view"
>
<view
class=
"check-circle-view"
v-if=
"!agree"
></view>
<icon
v-else
class=
"icon-small"
type=
"success"
size=
"18"
color=
"#02a074"
></icon>
</view>
<view
class=
"agree-text-view"
>
我已阅读并同意
<text
class=
"name-text"
@
tap
.
stop
.
prevent=
"handleClickAgreement"
data-type=
"protocol"
>
《会员服务协议》
</text>
</view>
</view>
<button
class=
"buy-button"
@
tap=
"handleClickBuy"
>
立即购买
</button>
<button
class=
"buy-button"
@
tap=
"handleClickBuy"
>
立即购买
</button>
</view>
</view>
</view>
</view>
...
@@ -35,6 +45,7 @@
...
@@ -35,6 +45,7 @@
data
()
{
data
()
{
return
{
return
{
show
:
false
,
show
:
false
,
agree
:
false
,
list
:
[
{
list
:
[
{
image
:
'/static/image/mine/zhifubaozhifu@3x.png'
,
image
:
'/static/image/mine/zhifubaozhifu@3x.png'
,
title
:
'支付宝'
,
title
:
'支付宝'
,
...
@@ -84,6 +95,14 @@
...
@@ -84,6 +95,14 @@
this
.
changeVisibleValue
(
false
)
this
.
changeVisibleValue
(
false
)
},
},
handleClickBuy
()
{
handleClickBuy
()
{
if
(
!
this
.
agree
)
{
uni
.
showToast
({
title
:
'请阅读并同意《会员服务协议》'
,
icon
:
'none'
,
duration
:
2000
});
return
}
for
(
var
item
of
this
.
list
)
{
for
(
var
item
of
this
.
list
)
{
if
(
item
.
select
)
{
if
(
item
.
select
)
{
this
.
$emit
(
'buy'
,
item
)
this
.
$emit
(
'buy'
,
item
)
...
@@ -91,6 +110,14 @@
...
@@ -91,6 +110,14 @@
break
break
}
}
}
}
},
handleClickAgree
()
{
this
.
agree
=
!
this
.
agree
},
handleClickAgreement
()
{
uni
.
navigateTo
({
url
:
'/pages/login/agreement/agreement?type=vip'
});
}
}
},
},
}
}
...
@@ -157,7 +184,30 @@
...
@@ -157,7 +184,30 @@
.botton-view
{
.botton-view
{
margin-top
:
220rpx
;
margin-top
:
220rpx
;
.agree-view
{
font-size
:
28rpx
;
color
:
#8d8d8d
;
display
:
flex
;
align-items
:
center
;
.check-circle-view
{
border-radius
:
50%
;
border
:
2rpx
solid
$default-color
;;
width
:
36rpx
;
height
:
36rpx
;
}
.icon-view
{
width
:
56rpx
;
height
:
56rpx
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
.agree-text-view
{
}
.name-text
{
color
:
$default-color
;;
}
}
.buy-button
{
.buy-button
{
background-color
:
$default-color
;
background-color
:
$default-color
;
border-radius
:
16rpx
;
border-radius
:
16rpx
;
...
...
pages/login/agreement/agreement.vue
View file @
a40d227e
...
@@ -10,6 +10,7 @@ export default {
...
@@ -10,6 +10,7 @@ export default {
webUrl
:
""
,
webUrl
:
""
,
protocol
:
"https://api-book.kaying.cc/protocol.html"
,
//用户协议
protocol
:
"https://api-book.kaying.cc/protocol.html"
,
//用户协议
policy
:
"https://api-book.kaying.cc/policy.html"
,
//隐私政策
policy
:
"https://api-book.kaying.cc/policy.html"
,
//隐私政策
vip
:
'https://api-book.kaying.cc/vip_protocol.html'
,
// 会员服务协议
};
};
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
...
@@ -21,6 +22,9 @@ export default {
...
@@ -21,6 +22,9 @@ export default {
}
else
if
(
options
.
type
===
"policy"
){
}
else
if
(
options
.
type
===
"policy"
){
this
.
webUrl
=
this
.
policy
this
.
webUrl
=
this
.
policy
title
=
"隐私政策"
title
=
"隐私政策"
}
else
if
(
options
.
type
==
'vip'
)
{
this
.
webUrl
=
this
.
vip
title
=
"会员服务协议"
}
}
uni
.
setNavigationBarTitle
({
uni
.
setNavigationBarTitle
({
title
title
...
...
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