Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
user
Overview
Overview
Details
Activity
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
hooloo
mp
user
Commits
6a072359
Commit
6a072359
authored
Jul 19, 2022
by
songbingqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成我的页面优惠卷部分开发
parent
253bc869
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
222 additions
and
25 deletions
+222
-25
components/Ticket/index.vue
+222
-24
mineSubPackage/pages/coupon/index.vue
+0
-1
No files found.
components/Ticket/index.vue
View file @
6a072359
<
template
>
<view
class=
"all"
>
<view
class=
"partOne"
>
<view
class=
"partOne"
>
<view
class=
"one_left"
>
<view
class=
"type"
>
最大字数最大字
</view>
<view
class=
"price"
>
30
<span>
元
</span>
</view>
<view
class=
"price_desc"
>
满130可用
</view>
</view>
<view
class=
"one_right"
>
<view
class=
"right_top"
>
<view
class=
"info"
>
<view
class=
"title"
>
最大字数最大字数最大
</view>
<view
class=
"time"
>
有效期至2022.07.24.17:20
</view>
</view>
<view
class=
"action"
>
<button
class=
"gouse"
>
去使用
</button>
</view>
</view>
<view
class=
"right_bottom"
>
<view
class=
"more_info"
@
click=
"openDetail"
>
<view
class=
"desc"
>
最大字数最大字数最大字数最
</view>
<image
class=
"arrow-right-select"
:src=
"'../../static/imgs/jiantouhei.png'"
/>
</view>
</view>
</view>
</view>
<view
class=
"partTwo"
v-if=
"detailFlag"
:key=
"twokey"
>
</view>
<view
class=
"partThree"
v-if=
"!status"
>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
(){
return
{
detailFlag
:
false
,
status
:
true
,
twokey
:
0
}
},
methods
:{
openDetail
(){
this
.
detailFlag
=
!
this
.
detailFlag
this
.
$nextTick
(()
=>
{
this
.
twokey
++
})
}
}
}
</
script
>
...
...
@@ -21,34 +64,188 @@ export default {
.partOne
{
width
:
100%
;
height
:
241
rpx
;
background
:
#FFFFFF
;
box-shadow
:
0
rpx
4
rpx
8
rpx
0
rpx
rgba
(
102
,
102
,
102
,
0.1000
);
.partOne
{
width
:
100%
;
height
:
100%
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
position
:
relative
;
background
:
radial-gradient
(
circle
at
right
top
,
transparent
9px
,
#FFFFFF
0
)
top
left
/
178
rpx
51%
no-repeat
,
radial-gradient
(
circle
at
right
bottom
,
transparent
9px
,
#FFFFFF
0
)
bottom
left
/
178
rpx
51%
no-repeat
,
radial-gradient
(
circle
at
left
top
,
transparent
9px
,
#FFFFFF
0
)
top
right
/
510
rpx
51%
no-repeat
,
radial-gradient
(
circle
at
left
bottom
,
transparent
9px
,
#FFFFFF
0
)
bottom
right
/
510
rpx
51%
no-repeat
;
filter
:
drop-shadow
(
-1px
3px
3px
rgba
(
102
,
102
,
102
,
0.1000
));
.one_left
{
height
:
100%
;
width
:
154
rpx
;
.type
{
padding
:
2
rpx
10
rpx
;
max-width
:
154
rpx
;
text-align
:
center
;
height
:
28
rpx
;
font-size
:
20
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
background
:
linear-gradient
(
90deg
,
#75A2FF
0%
,
#B6CEFF
100%
);
color
:
#FFFFFF
;
line-height
:
28
rpx
;
}
.price
{
width
:
178
rpx
;
height
:
79
rpx
;
font-size
:
56
rpx
;
font-family
:
Futura-Medium
,
Futura
;
font-weight
:
500
;
color
:
#0050F6
;
line-height
:
74
rpx
;
margin
:
0
auto
;
text-align
:
center
;
margin-top
:
40
rpx
;
span
{
height
:
34
rpx
;
font-size
:
24
rpx
;
font-family
:
Futura-Medium
,
Futura
;
font-weight
:
500
;
color
:
#0050F6
;
line-height
:
30
rpx
;
}
}
.price_desc
{
height
:
28
rpx
;
font-size
:
20
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#0050F6
;
line-height
:
28
rpx
;
width
:
178
rpx
;
text-align
:
center
;
}
}
.one_right
{
height
:
198
rpx
;
width
:
calc
(
510
rpx
-
38
rpx
);
.right_top
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
flex-end
;
padding-top
:
42
rpx
;
padding-bottom
:
22
rpx
;
margin-right
:
32
rpx
;
border-bottom
:
1
rpx
solid
#ECECEC
;
.info
{
.title
{
max-width
:
332
rpx
;
height
:
40
rpx
;
font-size
:
28
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#333333
;
line-height
:
40
rpx
;
}
.time
{
height
:
28
rpx
;
font-size
:
20
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#333333
;
margin-top
:
8
rpx
;
line-height
:
28
rpx
;
}
}
.action
{
.gouse{
width
:
128
rpx
;
height
:
52
rpx
;
background
:
#0050F6
;
border-radius
:
2
rpx
;
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#FFFFFF
;
line-height
:
52
rpx
;
}
}
}
.right_bottom
{
padding-top
:
22.96
rpx
;
margin-right
:
32
rpx
;
.more_info
{
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
.desc
{
max-width
:
261
rpx
;
height
:
28
rpx
;
font-size
:
20
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
28
rpx
;
}
.arrow-right-select
{
margin-left
:
8
rpx
;
width
:
8.27
rpx
;
height
:
12.68
rpx
;
}
}
}
}
.partOne
::after
{
content
:
''
;
display
:
inline-block
;
position
:
absolute
;
top
:
-25
rpx
;
left
:
160
rpx
;
width
:
50
rpx
;
height
:
50
rpx
;
border-radius
:
50%
;
background
:
#F8F8F8
;
}
.partOne
::before
{
content
:
''
;
display
:
inline-block
;
content
:
''
;
height
:
198
rpx
;
border
:
1
rpx
dashed
#F6F6F6
;
position
:
absolute
;
bottom
:
-25
rpx
;
left
:
160
rpx
;
width
:
50
rpx
;
height
:
50
rpx
;
border-radius
:
50%
;
box-shadow
:
0
rpx
4
rpx
8
rpx
0
rpx
rgba
(
102
,
102
,
102
,
0.1000
);
background
:
#F8F8F8
;
left
:
176
rpx
;
top
:
0
;
bottom
:
0
;
margin
:
auto
;
}
.partTwo
{
transform
:
translateZ
(
0
);
width
:
100%
;
height
:
300
rpx
;
position
:
relative
;
background
:
radial-gradient
(
circle
at
right
top
,
transparent
10px
,
#FFFFFF
0
)
top
left
/
180
rpx
51%
no-repeat
,
radial-gradient
(
circle
at
right
bottom
,
transparent
10px
,
#FFFFFF
0
)
bottom
left
/
180
rpx
51%
no-repeat
,
radial-gradient
(
circle
at
left
top
,
transparent
10px
,
#FFFFFF
0
)
top
right
/
512
rpx
51%
no-repeat
,
radial-gradient
(
circle
at
left
bottom
,
transparent
10px
,
#FFFFFF
0
)
bottom
right
/
512
rpx
51%
no-repeat
;
filter
:
drop-shadow
(
-1px
3px
3px
rgba
(
102
,
102
,
102
,
0.1000
));
}
.partTwo
::before
{
content
:
''
;
height
:
1
rpx
;
width
:
122
rpx
;
border
:
1
rpx
dashed
#F4F4F4
;
position
:
absolute
;
left
:
33.75
rpx
;
top
:
-296
rpx
;
bottom
:
0
;
margin
:
auto
;
}
.partTwo
::after
{
content
:
''
;
height
:
1
rpx
;
width
:
460
rpx
;
border
:
1
rpx
dashed
#F4F4F4
;
position
:
absolute
;
left
:
196.75
rpx
;
top
:
-296
rpx
;
bottom
:
0
;
margin
:
auto
;
}
.partThree
{
width
:
100%
;
height
:
72
rpx
;
position
:
relative
;
background
:
radial-gradient
(
circle
at
right
top
,
transparent
9px
,
#E9E9E9
0
)
top
left
/
180
rpx
51%
no-repeat
,
radial-gradient
(
circle
at
right
bottom
,
transparent
0px
,
#E9E9E9
0
)
bottom
left
/
180
rpx
51%
no-repeat
,
radial-gradient
(
circle
at
left
top
,
transparent
9px
,
#E9E9E9
0
)
top
right
/
512
rpx
51%
no-repeat
,
radial-gradient
(
circle
at
left
bottom
,
transparent
0px
,
#E9E9E9
0
)
bottom
right
/
512
rpx
51%
no-repeat
;
filter
:
drop-shadow
(
-1px
3px
3px
rgba
(
102
,
102
,
102
,
0.1000
));
}
}
}
</
style
>
\ No newline at end of file
mineSubPackage/pages/coupon/index.vue
View file @
6a072359
...
...
@@ -67,7 +67,6 @@ export default {
background
:
#F8F8F8
;
height
:
calc
(
100vh
-
64
rpx
);
.nouser{
border
:
1px
solid
red
;
height
:
100%
;
padding
:
32
rpx
;
overflow-y
:
scroll
;
...
...
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