Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9a46b99e
authored
Dec 26, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
兼容
1 parent
98b6cc9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
61 deletions
components/HomeFrame/components/Point/LevelPoint.vue
components/HomeFrame/components/Point/Ranking.vue
components/HomeFrame/components/Point/LevelPoint.vue
View file @
9a46b99
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-2
5 17:35:05
* @LastEditTime: 2024-12-2
6 16:01:32
-->
-->
<
template
>
<
template
>
<view
class=
"point-box"
>
<view
class=
"point-box"
>
...
@@ -177,9 +177,9 @@ export default {
...
@@ -177,9 +177,9 @@ export default {
}
}
.nav-bar
{
.nav-bar
{
width
:
100%
;
width
:
100%
;
height
:
96
rpx
;
height
:
toRpx
(
96
)
;
margin-top
:
48
rpx
;
margin-top
:
toRpx
(
48
)
;
margin-bottom
:
12
rpx
;
margin-bottom
:
toRpx
(
12
)
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.back
{
.back
{
...
@@ -193,7 +193,7 @@ export default {
...
@@ -193,7 +193,7 @@ export default {
.title
{
.title
{
font-weight
:
700
;
font-weight
:
700
;
font-size
:
32
rpx
;
font-size
:
toRpx
(
32
)
;
color
:
#1a1a1a
;
color
:
#1a1a1a
;
flex
:
1
;
flex
:
1
;
text-align
:
center
;
text-align
:
center
;
...
@@ -208,9 +208,9 @@ export default {
...
@@ -208,9 +208,9 @@ export default {
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
.tab-mid
{
.tab-mid
{
font-size
:
32
rpx
;
font-size
:
toRpx
(
32
)
;
color
:
#1a1a1a
;
color
:
#1a1a1a
;
margin
:
0
120
rpx
;
margin
:
0
toRpx
(
120
)
;
}
}
}
}
.tab-prev
,
.tab-prev
,
...
@@ -218,21 +218,21 @@ export default {
...
@@ -218,21 +218,21 @@ export default {
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
width
:
48
rpx
;
width
:
toRpx
(
48
)
;
border-radius
:
50%
;
border-radius
:
50%
;
height
:
48
rpx
;
height
:
toRpx
(
48
)
;
background
:
#ffffff
;
background
:
#ffffff
;
}
}
}
}
}
}
.point-body
{
.point-body
{
padding
:
0
64
rpx
;
padding
:
0
toRpx
(
64
)
;
margin-top
:
30
rpx
;
margin-top
:
toRpx
(
30
)
;
.level-box
{
.level-box
{
height
:
calc
(
50vh
-
136
rpx
);
height
:
calc
(
50vh
-
#{
toRpx
(
136
)}
);
display
:
flex
;
display
:
flex
;
&
:first-child
{
&
:first-child
{
margin-bottom
:
48
rpx
;
margin-bottom
:
toRpx
(
48
)
;
}
}
.level-logo
{
.level-logo
{
.sprite-icon
{
.sprite-icon
{
...
@@ -240,86 +240,86 @@ export default {
...
@@ -240,86 +240,86 @@ export default {
}
}
.level-title
{
.level-title
{
font-weight
:
600
;
font-weight
:
600
;
font-size
:
36
rpx
;
font-size
:
toRpx
(
36
)
;
color
:
#333333
;
color
:
#333333
;
letter-spacing
:
0
;
letter-spacing
:
0
;
line-height
:
44
rpx
;
line-height
:
toRpx
(
44
)
;
width
:
64
rpx
;
width
:
toRpx
(
64
)
;
text-align
:
center
;
text-align
:
center
;
margin-top
:
16
rpx
;
margin-top
:
toRpx
(
16
)
;
}
}
}
}
.level-desc
{
.level-desc
{
height
:
100%
;
height
:
100%
;
background
:
#ffffff
e6
;
background
:
#ffffff
e6
;
box-shadow
:
inset
0
0
16
rpx
0
#ffffff
;
box-shadow
:
inset
0
0
toRpx
(
16
)
0
#ffffff
;
border-radius
:
40
rpx
;
border-radius
:
toRpx
(
40
)
;
margin-left
:
32
rpx
;
margin-left
:
toRpx
(
32
)
;
width
:
calc
(
100vw
-
200
rpx
);
width
:
calc
(
100vw
-
#{
toRpx
(
200
)}
);
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
4
,
1fr
);
grid-template-columns
:
repeat
(
4
,
1fr
);
gap
:
32
rpx
;
gap
:
toRpx
(
32
)
;
padding
:
56
rpx
48
rpx
;
padding
:
toRpx
(
56
)
toRpx
(
48
)
;
.level-item
{
.level-item
{
background
:
#f7f7f7
;
background
:
#f7f7f7
;
border-radius
:
36
rpx
;
border-radius
:
toRpx
(
36
)
;
position
:
relative
;
position
:
relative
;
.my-level
{
.my-level
{
position
:
absolute
;
position
:
absolute
;
width
:
154
rpx
;
width
:
toRpx
(
154
)
;
height
:
56
rpx
;
height
:
toRpx
(
56
)
;
top
:
-4
rpx
;
top
:
-4
rpx
;
left
:
-4
rpx
;
left
:
-4
rpx
;
}
}
.item-name
{
.item-name
{
font-size
:
40
rpx
;
font-size
:
toRpx
(
40
)
;
color
:
#a2a2a8
;
color
:
#a2a2a8
;
position
:
absolute
;
position
:
absolute
;
left
:
32
rpx
;
left
:
toRpx
(
32
)
;
top
:
80
rpx
;
top
:
toRpx
(
80
)
;
font-weight
:
600
;
font-weight
:
600
;
}
}
.star-logo
{
.star-logo
{
margin-top
:
44
rpx
;
margin-top
:
toRpx
(
44
)
;
text-align
:
center
;
text-align
:
center
;
image
{
image
{
width
:
168
rpx
;
width
:
toRpx
(
168
)
;
height
:
168
rpx
;
height
:
toRpx
(
168
)
;
}
}
}
}
.star-coupon
{
.star-coupon
{
position
:
absolute
;
position
:
absolute
;
bottom
:
30
rpx
;
bottom
:
toRpx
(
30
)
;
left
:
0
rpx
;
left
:
toRpx
(
0
)
;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
width
:
100%
;
width
:
100%
;
.coupon-box
{
.coupon-box
{
width
:
390
rpx
;
width
:
toRpx
(
390
)
;
height
:
96
rpx
;
height
:
toRpx
(
96
)
;
position
:
relative
;
position
:
relative
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
padding
:
0
32
rpx
;
padding
:
0
toRpx
(
32
)
;
z-index
:
0
;
z-index
:
0
;
image
{
image
{
position
:
absolute
;
position
:
absolute
;
left
:
0
;
left
:
0
;
top
:
0
;
top
:
0
;
width
:
390
rpx
;
width
:
toRpx
(
390
)
;
height
:
96
rpx
;
height
:
toRpx
(
96
)
;
z-index
:
-1
;
z-index
:
-1
;
}
}
.coupon-title
{
.coupon-title
{
font-size
:
28
rpx
;
font-size
:
toRpx
(
28
)
;
color
:
#5c3537
;
color
:
#5c3537
;
&.grey
{
&.grey
{
color
:
#fdfdff
;
color
:
#fdfdff
;
}
}
}
}
.coupon-num
{
.coupon-num
{
font-size
:
28
rpx
;
font-size
:
toRpx
(
28
)
;
color
:
#db832c
;
color
:
#db832c
;
&.grey
{
&.grey
{
color
:
#fdfdff
;
color
:
#fdfdff
;
...
@@ -329,9 +329,9 @@ export default {
...
@@ -329,9 +329,9 @@ export default {
}
}
.star-name
{
.star-name
{
text-align
:
center
;
text-align
:
center
;
font-size
:
40
rpx
;
font-size
:
toRpx
(
40
)
;
line-height
:
60
rpx
;
line-height
:
toRpx
(
60
)
;
margin-top
:
4
rpx
;
margin-top
:
toRpx
(
4
)
;
color
:
#292d33
;
color
:
#292d33
;
font-weight
:
600
;
font-weight
:
600
;
&.grey
{
&.grey
{
...
@@ -339,25 +339,25 @@ export default {
...
@@ -339,25 +339,25 @@ export default {
}
}
}
}
.star-desc
{
.star-desc
{
font-size
:
24
rpx
;
font-size
:
toRpx
(
24
)
;
color
:
#181a1f
;
color
:
#181a1f
;
text-align
:
center
;
text-align
:
center
;
line-height
:
60
rpx
;
line-height
:
toRpx
(
60
)
;
&.grey
{
&.grey
{
color
:
#a2a2a8
;
color
:
#a2a2a8
;
}
}
}
}
.item-logo
{
.item-logo
{
position
:
absolute
;
position
:
absolute
;
top
:
0
rpx
;
top
:
toRpx
(
0
)
;
right
:
32
rpx
;
right
:
toRpx
(
32
)
;
image
{
image
{
width
:
184
rpx
;
width
:
toRpx
(
184
)
;
}
}
}
}
.item-desc
{
.item-desc
{
padding-left
:
40
rpx
;
padding-left
:
toRpx
(
40
)
;
font-size
:
24
rpx
;
font-size
:
toRpx
(
24
)
;
&.grey
{
&.grey
{
color
:
#a2a2a8
;
color
:
#a2a2a8
;
}
}
...
@@ -365,22 +365,22 @@ export default {
...
@@ -365,22 +365,22 @@ export default {
.item-footer
{
.item-footer
{
position
:
absolute
;
position
:
absolute
;
left
:
0
;
left
:
0
;
bottom
:
26
rpx
;
bottom
:
toRpx
(
26
)
;
width
:
100%
;
width
:
100%
;
}
}
.item-detail
{
.item-detail
{
width
:
calc
(
100%
-
48
rpx
);
width
:
calc
(
100%
-
#{
toRpx
(
48
)}
);
box-sizing
:
border-box
;
box-sizing
:
border-box
;
border-radius
:
16
rpx
;
border-radius
:
toRpx
(
16
)
;
max-height
:
calc
(
100%
-
320
rpx
);
max-height
:
calc
(
100
%
-
#
{
toRpx(320)
}
);
overflow-y
:
auto
;
overflow-y
:
auto
;
margin
:
16
rpx
24
rpx
;
margin
:
toRpx
(
16
)
toRpx
(
24
)
;
padding
:
12
rpx
0
rpx
;
padding
:
toRpx
(
12
)
toRpx
(
0
)
;
color
:
#a2a2a8
;
color
:
#a2a2a8
;
.item-coupon
{
.item-coupon
{
position
:
relative
;
position
:
relative
;
font-size
:
24
rpx
;
font-size
:
toRpx
(
24
)
;
line-height
:
36
rpx
;
line-height
:
toRpx
(
36
)
;
margin-left
:
-20
rpx
;
margin-left
:
-20
rpx
;
}
}
}
}
...
...
components/HomeFrame/components/Point/Ranking.vue
View file @
9a46b99
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-2
5 10:34:42
* @LastEditTime: 2024-12-2
6 15:55:10
-->
-->
<
template
>
<
template
>
<view
class=
"point-box"
>
<view
class=
"point-box"
>
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
</view>
</view>
<view
class=
"desc-wrap"
>
<view
class=
"desc-wrap"
>
<view
class=
"item-body"
v-for=
"(l, i) in item.list"
:key=
"i"
>
<view
class=
"item-body"
v-for=
"(l, i) in item.list"
:key=
"i"
>
<view
class=
"item-logo"
v-if=
"l.ranking > 3"
>
{{
item
.
ranking
}}
</view>
<view
class=
"item-logo"
v-if=
"l.ranking > 3"
>
{{
l
.
ranking
}}
</view>
<view
class=
"item-image"
v-else
><image
:src=
"require(`@/assets/images/point/$
{index == 0 ? 'crown_' : 'prize_'}${l.ranking || 0}.png`)" />
</view>
<view
class=
"item-image"
v-else
><image
:src=
"require(`@/assets/images/point/$
{index == 0 ? 'crown_' : 'prize_'}${l.ranking || 0}.png`)" />
</view>
<view
class=
"item-name"
>
{{
l
.
staffName
}}
</view>
<view
class=
"item-name"
>
{{
l
.
staffName
}}
</view>
<view
v-if=
"l.badgeList && l.badgeList.length"
:class=
"
{ 'item-prize': index == 0, 'item-medal': index != 0 }">
<image
:src=
"index == 0 ? pointImg[l.badgeList[0].growthType - 1] : starImg[index - 1]"
/></view>
<view
v-if=
"l.badgeList && l.badgeList.length"
:class=
"
{ 'item-prize': index == 0, 'item-medal': index != 0 }">
<image
:src=
"index == 0 ? pointImg[l.badgeList[0].growthType - 1] : starImg[index - 1]"
/></view>
...
...
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