Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thinkApp
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
游洁
thinkApp
Commits
ef9d42a2
Commit
ef9d42a2
authored
May 27, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
6cca94d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
223 additions
and
196 deletions
+223
-196
examComponents.vue
src/components/index/examComponents.vue
+223
-196
No files found.
src/components/index/examComponents.vue
View file @
ef9d42a2
<
template
>
<view
class=
"examComponents-box"
>
<view
class=
"examComponents activeOne flex"
>
<view
class=
"examComponents-time-box flex"
>
<view
class=
"examComponents-time"
>
<view>
05/25 17:13
</view>
</view>
<view
class=
"examComponents-line"
>
<view
class=
"examComponents-point"
></view>
<view
class=
"examComponents-year"
>
2021 年
</view>
</view>
</view>
<view
class=
"examComponents-center-box"
@
click=
"scoreDetails"
>
<view
class=
"examComponents-center-line"
></view>
<view
class=
"examComponents-center flex"
>
<view
class=
"examComponents-left"
>
<view
class=
"operation-name"
>
考试名称
</view>
</view>
<view
class=
"examComponents-right flex"
>
<view
class=
"homework-score"
>
<view
class=
"homework-score-title"
>
总分
</view>
<view
class=
"homework-score-num flex"
>
<view>
86
</view><view>
分
</view>
</view>
</view>
<view
class=
"homework-score"
>
<view
class=
"homework-score-title"
>
得分率
</view>
<view
class=
"homework-score-num flex"
>
<view>
86
</view><view>
%
</view>
</view>
</view>
<view
class=
"homework-score"
>
<view
class=
"homework-score-title"
>
排名
</view>
<view
class=
"homework-score-num flex"
>
<view>
15
</view><view></view>
</view>
</view>
<view
class=
"homework-score"
>
<view
class=
"homework-score-title"
>
领先度
</view>
<view
class=
"homework-score-num flex"
>
<view>
86
</view><view>
%
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"examComponents-time-box flex"
>
<view
class=
"examComponents-time"
>
<view>
{{
jobData
.
CreateTime
}}
</view>
</view>
<view
class=
"examComponents-line"
>
<view
class=
"examComponents-point"
></view>
<view
class=
"examComponents-year"
>
2021 年
</view>
</view>
</view>
<view
class=
"examComponents-center-box"
@
click=
"scoreDetails"
>
<view
class=
"examComponents-center-line"
></view>
<view
class=
"examComponents-center flex"
>
<view
class=
"examComponents-left"
>
<view
class=
"operation-name"
>
{{
jobData
.
Title
}}
</view>
</view>
<view
class=
"examComponents-right flex"
>
<view
class=
"homework-score"
>
<view
class=
"homework-score-title"
>
总分
</view>
<view
class=
"homework-score-num flex"
>
<view>
{{
jobData
.
DataObj
.
Score
}}
</view>
<view>
分
</view>
</view>
</view>
<view
class=
"homework-score"
>
<view
class=
"homework-score-title"
>
得分率
</view>
<view
class=
"homework-score-num flex"
>
<view>
{{
jobData
.
DataObj
.
Score_p
}}
</view>
<view>
%
</view>
</view>
</view>
<view
class=
"homework-score"
>
<view
class=
"homework-score-title"
>
排名
</view>
<view
class=
"homework-score-num flex"
>
<view>
{{
jobData
.
DataObj
.
ExamRank
}}
</view>
<view></view>
</view>
</view>
<view
class=
"homework-score"
>
<view
class=
"homework-score-title"
>
领先度
</view>
<view
class=
"homework-score-num flex"
>
<view>
{{
jobData
.
DataObj
.
ExamRankRate
}}
</view>
<view>
%
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
...
...
@@ -60,167 +64,190 @@
}
from
"vue"
;
export
default
{
props
:
{
},
props
:
[
"jobData"
],
components
:
{},
setup
()
{
let
data
=
reactive
({
showPhone
:
false
,
showLogin
:
true
,
//多次点击
});
let
methods
=
{
scoreDetails
()
{
uni
.
reLaunch
({
url
:
'/pages/index/scoreDetails'
let
methods
=
{
scoreDetails
()
{
uni
.
reLaunch
({
url
:
'/pages/index/scoreDetails'
});
}
}
}
}
return
{
...
toRefs
(
data
),
...
methods
...
methods
};
},
};
</
script
>
<
style
scoped
>
.homework-score-num
view
:last-child
{
font-size
:
23
rpx
;
margin-top
:
25
rpx
;
}
.homework-score-num
view
:first-child
{
margin-right
:
10
rpx
;
font-size
:
46
rpx
;
font-weight
:
800
;
}
.homework-score-num
{
color
:
#3E3D3D
;
}
.homework-score-title
{
color
:
#484646
;
font-size
:
20
rpx
;
margin-bottom
:
23
rpx
;
font-weight
:
400
;
letter-spacing
:
1px
;
}
.homework-score
{
margin-right
:
16
rpx
;
}
.homework-score
:last-child
{
margin-right
:
0
;
}
.examComponents-right
{
height
:
122
rpx
;
background
:
#FFFFFF
;
padding
:
22
rpx
26
rpx
15
rpx
26
rpx
;
border-radius
:
30
rpx
;
justify-content
:
space-between
;
}
.examComponents.activeThree
.operation-name
{
color
:
#282828
;
}
.examComponents.activeTwo
.operation-name
{
color
:
#282828
;
}
.examComponents.activeOne
.operation-name
{
color
:
#FFFFFF
;
}
.operation-name
{
font-size
:
26
rpx
;
letter-spacing
:
1px
;
font-weight
:
500
;
margin-bottom
:
20
rpx
;
}
.examComponents-left
{
flex
:
1
;
flex-grow
:
1
;
}
.examComponents-center
{
flex-direction
:
column
;
}
.examComponents-center-line
{
width
:
4
rpx
;
height
:
23px
;
background
:
#FEFEFE
;
position
:
absolute
;
left
:
0
;
top
:
33
rpx
;
}
.examComponents.activeThree
.examComponents-center-box
{
background
:
#EEEEEE
;
}
.examComponents.activeTwo
.examComponents-center-box
{
background
:
#DBE9FB
;
}
.examComponents.activeOne
.examComponents-center-box
{
background
:
#1E7BF5
;
}
.examComponents-center-box
{
flex-grow
:
1
;
position
:
relative
;
border-radius
:
30
rpx
;
padding
:
31
rpx
18
rpx
21
rpx
24
rpx
;
margin-bottom
:
50
rpx
;
}
.examComponents-year
{
width
:
127
rpx
;
line-height
:
111
rpx
;
text-align
:
center
;
position
:
absolute
;
left
:
-125
rpx
;
top
:
-110
rpx
;
background
:
url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653476346000_445.png')
no-repeat
;
background-size
:
100%
100%
;
color
:
#FFFFFF
;
font-size
:
30
rpx
;
font-weight
:
bold
;
}
.examComponents.activeThree
.examComponents-point
{
background
:
#C1C1C1
;
}
.examComponents.activeTwo
.examComponents-point
{
background
:
#282828
;
}
.examComponents.activeOne
.examComponents-point
{
background
:
#1E7BF5
;
box-shadow
:
0px
0px
12px
0px
rgba
(
30
,
123
,
245
,
0.46
);
}
.examComponents-point
{
width
:
19
rpx
;
height
:
19
rpx
;
position
:
absolute
;
top
:
20
rpx
;
left
:
-13
rpx
;
border-radius
:
50%
;
border
:
3px
solid
#FFFFFF
;
box-shadow
:
0px
0px
12px
0px
rgba
(
255
,
255
,
255
,
0.46
);
}
.examComponents-line
{
width
:
4
rpx
;
height
:
100%
;
background
:
#F1F1F1
;
margin-left
:
46
rpx
;
margin-right
:
46
rpx
;
position
:
relative
;
}
.examComponents-time
{
width
:
61
rpx
;
height
:
55
rpx
;
color
:
#CCC8C6
;
font-size
:
20
rpx
;
border-radius
:
20
rpx
;
padding
:
14
rpx
13
rpx
;
background
:
#F6F6F6
;
}
.examComponents
{
justify-content
:
space-between
;
padding
:
0
50
rpx
;
}
.examComponents-box
{
background
:
#FFFFFF
;
margin-top
:
30
rpx
;
}
.homework-score-num
view
:last-child
{
font-size
:
23
rpx
;
margin-top
:
25
rpx
;
}
.homework-score-num
view
:first-child
{
margin-right
:
10
rpx
;
font-size
:
46
rpx
;
font-weight
:
800
;
}
.homework-score-num
{
color
:
#3E3D3D
;
}
.homework-score-title
{
color
:
#484646
;
font-size
:
20
rpx
;
margin-bottom
:
23
rpx
;
font-weight
:
400
;
letter-spacing
:
1px
;
}
.homework-score
{
margin-right
:
16
rpx
;
}
.homework-score
:last-child
{
margin-right
:
0
;
}
.examComponents-right
{
height
:
122
rpx
;
background
:
#FFFFFF
;
padding
:
22
rpx
26
rpx
15
rpx
26
rpx
;
border-radius
:
30
rpx
;
justify-content
:
space-between
;
}
.examComponents.activeThree
.operation-name
{
color
:
#282828
;
}
.examComponents.activeTwo
.operation-name
{
color
:
#282828
;
}
.examComponents.activeOne
.operation-name
{
color
:
#FFFFFF
;
}
.operation-name
{
font-size
:
26
rpx
;
letter-spacing
:
1px
;
font-weight
:
500
;
margin-bottom
:
20
rpx
;
}
.examComponents-left
{
flex
:
1
;
flex-grow
:
1
;
}
.examComponents-center
{
flex-direction
:
column
;
}
.examComponents-center-line
{
width
:
4
rpx
;
height
:
23px
;
background
:
#FEFEFE
;
position
:
absolute
;
left
:
0
;
top
:
33
rpx
;
}
.examComponents.activeThree
.examComponents-center-box
{
background
:
#EEEEEE
;
}
.examComponents.activeTwo
.examComponents-center-box
{
background
:
#DBE9FB
;
}
.examComponents.activeOne
.examComponents-center-box
{
background
:
#1E7BF5
;
}
.examComponents-center-box
{
flex-grow
:
1
;
position
:
relative
;
border-radius
:
30
rpx
;
padding
:
31
rpx
18
rpx
21
rpx
24
rpx
;
margin-bottom
:
50
rpx
;
}
.examComponents-year
{
width
:
127
rpx
;
line-height
:
111
rpx
;
text-align
:
center
;
position
:
absolute
;
left
:
-125
rpx
;
top
:
-110
rpx
;
background
:
url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653476346000_445.png')
no-repeat
;
background-size
:
100%
100%
;
color
:
#FFFFFF
;
font-size
:
30
rpx
;
font-weight
:
bold
;
}
.examComponents.activeThree
.examComponents-point
{
background
:
#C1C1C1
;
}
.examComponents.activeTwo
.examComponents-point
{
background
:
#282828
;
}
.examComponents.activeOne
.examComponents-point
{
background
:
#1E7BF5
;
box-shadow
:
0px
0px
12px
0px
rgba
(
30
,
123
,
245
,
0.46
);
}
.examComponents-point
{
width
:
19
rpx
;
height
:
19
rpx
;
position
:
absolute
;
top
:
20
rpx
;
left
:
-13
rpx
;
border-radius
:
50%
;
border
:
3px
solid
#FFFFFF
;
box-shadow
:
0px
0px
12px
0px
rgba
(
255
,
255
,
255
,
0.46
);
}
.examComponents-line
{
width
:
4
rpx
;
height
:
100%
;
background
:
#F1F1F1
;
margin-left
:
46
rpx
;
margin-right
:
46
rpx
;
position
:
relative
;
}
.examComponents-time
{
width
:
61
rpx
;
height
:
55
rpx
;
color
:
#CCC8C6
;
font-size
:
20
rpx
;
border-radius
:
20
rpx
;
padding
:
14
rpx
13
rpx
;
background
:
#F6F6F6
;
}
.examComponents
{
justify-content
:
space-between
;
padding
:
0
50
rpx
;
}
.examComponents-box
{
background
:
#FFFFFF
;
margin-top
:
30
rpx
;
}
</
style
>
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