Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
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
android
uniapp_vedio
Commits
f497badd
Commit
f497badd
authored
Jul 25, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化样式
parent
8f57389e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
20 deletions
+47
-20
loading.vue
vedio/pages/loading.vue
+2
-2
vipPay.vue
vedio/pagesA/vipPay/vipPay.vue
+45
-18
No files found.
vedio/pages/loading.vue
View file @
f497badd
...
...
@@ -90,8 +90,8 @@
app
.
globalData
.
userId
=
data
.
idcode
;
saveToken
(
data
.
token
)
setTimeout
(()
=>
{
//
redirectTo('home?activiteFlag='+data.activiteFlag+"&idcode="+data.idcode);
redirectTo
(
'/pagesA/vipPay/vipPay'
);
redirectTo
(
'home?activiteFlag='
+
data
.
activiteFlag
+
"&idcode="
+
data
.
idcode
);
//
redirectTo('/pagesA/vipPay/vipPay');
},
1000
);
}
...
...
vedio/pagesA/vipPay/vipPay.vue
View file @
f497badd
...
...
@@ -6,16 +6,16 @@
mode=
"widthFix"
/>
<view
class=
"section"
>
<view
class=
"title"
>
自动续费管理
</view>
<view
v-if=
"agreementDto != undefined"
@
click=
"handleUnsign"
style=
"margin-top: 12rpx;margin-left: 30rpx;color: black;"
>
自动续费管理
</view>
<view
class=
"pack-box"
>
<view
class=
"pack-item"
:class=
"[
{active: index==selectedIndex}]" v-for='(item, index) in vipList'
:key='index' @click="choosePack(item, index)">
<view
class=
"label"
v-if=
"index==selectedIndex"
>
{{
'限时减10元'
}}
<view
class=
"label"
>
{{
item
.
topTitle
}}
</view>
<view
class=
"name row"
>
<view
class=
"name row"
:class=
"[
{active2: index==selectedIndex}]"
>
{{
item
.
title
}}
</view>
<view
class=
"price row"
:class=
"[
{active1: index==selectedIndex}]">
...
...
@@ -25,12 +25,13 @@
<view
class=
"origin row"
v-if=
'item.oldPrice'
>
¥
{{
item
.
oldPrice
}}
</view>
<view
class=
"cut-down"
v-if=
'item.oldPrice-item.firstPayPrice>0'
>
立省
{{
item
.
oldPrice
-
item
.
firstPayPrice
}}
元
<view
class=
"origin row"
v-if=
'item.oldPrice'
>
{{
item
.
remarks
}}
</view>
<view
class=
"label2"
v-if=
"index==selectedIndex"
>
{{
'仅需
0.19
元/天'
}}
{{
'仅需
'
+
amount
(
item
.
firstPayPrice
/
item
.
days
)
+
'
元/天'
}}
</view>
</view>
</view>
...
...
@@ -75,7 +76,8 @@
return
{
vipList
:
[],
selectedIndex
:
0
,
checked
:
false
checked
:
false
,
agreementDto
:
null
,
}
},
methods
:
{
...
...
@@ -89,10 +91,29 @@
this
.
vipList
=
data
.
list
}
});
this
.
post
({
url
:
'/vip/getOrderList'
,
showLoading
:
false
,
success
:
({
data
})
=>
{
this
.
agreementDto
=
data
.
agreement
;
}
});
},
choosePack
(
item
,
index
)
{
this
.
selectedIndex
=
index
;
},
handleUnsign
()
{
if
(
this
.
agreementDto
)
{
let
params
=
JSON
.
stringify
(
this
.
agreementDto
)
navigateTo
(
`/pagesA/unsign/unsign?params=`
+
params
)
}
},
amount
(
value
)
{
return
value
.
toFixed
(
2
)
},
handlePay
()
{
if
(
!
this
.
checked
)
{
message
.
notify
(
"请阅读《连续订阅服务协议》与《支付协议》后勾选同意"
)
...
...
@@ -207,12 +228,12 @@
border
:
4rpx
solid
#EAECEC
;
border-radius
:
20rpx
;
position
:
relative
;
padding-top
:
6
0rpx
;
padding-top
:
5
0rpx
;
.row
{
display
:
flex
;
align-items
:
center
;
margin
:
8
rpx
15rpx
;
margin
:
4
rpx
15rpx
;
marign-bottom
:
0
;
}
...
...
@@ -223,7 +244,7 @@
.name
{
font-size
:
26rpx
;
font-weight
:
700
;
color
:
#
333
;
color
:
#
000000
;
}
...
...
@@ -237,15 +258,21 @@
color
:
#fd5350
;
}
.active2
{
color
:
#6D301D
;
}
.origin
{
font-size
:
22rpx
;
color
:
#333
;
text-align
:
center
;
color
:
#676666
;
text-decoration
:
line-through
;
}
.label
{
border-radius
:
20rpx
0
20rpx
0
;
width
:
7
0%
;
width
:
8
0%
;
background
:
linear-gradient
(
90deg
,
#FC4F3B
,
#FBCB7A
);
color
:
white
;
font-size
:
24rpx
;
...
...
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