Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
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
Damon
study
Commits
293ceec6
Commit
293ceec6
authored
Jul 30, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 【ID1001361】 【小程序-首页-考试成绩页面】:上下滑动时,考试进度条未固定。
parent
4c48c94c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
67 deletions
+77
-67
pages.json
src/pages.json
+1
-1
score.vue
src/pages/learn/score.vue
+76
-66
No files found.
src/pages.json
View file @
293ceec6
...
...
@@ -177,7 +177,7 @@
"name"
:
"learnScore"
,
"style"
:
{
"navigationBarTitleText"
:
"考试成绩"
,
"navigationStyle"
:
"custom"
,
//
"navigationStyle"
:
"custom"
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
}
...
...
src/pages/learn/score.vue
View file @
293ceec6
<
template
>
<view
class=
"score-view"
>
<u-navbar
<
!--
<
u-navbar
back-icon-color=
"#191C27"
background=
"transparent"
title=
"考试成绩"
...
...
@@ -8,63 +8,73 @@
:border-bottom=
"false"
title-bold
:custom-back=
"customBack"
></u-navbar>
<view
class=
"top-view"
v-if=
"!isFull"
@
click=
"$u.throttle(handleClickRecord, 500)"
></u-navbar>
-->
<scroll-view
scroll-y=
"true"
class=
"scroll-view"
scroll-anchoring
enable-back-to-top
>
考试错题已自动加入
<text
class=
"blue-text"
>
"错题记录"
</text>
方便练习
</view
>
<view
:class=
"['content',
{ 'is-full': isFull }]">
<view
class=
"content-view"
>
<image
mode=
"widthFix"
class=
"back-image"
:src=
"backImage"
></image>
<view
class=
"chart-view"
>
<CircleProgress
class=
"progress-view"
active-color=
"#FFFFFF"
:percent=
"info.score"
inactive-color=
"rgba(255, 255, 255, 0.3)"
width=
"240"
border-width=
"8"
bg-color=
"transparent"
>
<view
class=
"progress-content"
>
<view
class=
"progress-score"
>
{{
info
.
score
}}
</view>
<view
class=
"progress-info"
>
{{
resultText
}}
</view>
<view
class=
"percent-text"
>
超越了
{{
falsePercent
}}
%的学员
</view>
</view>
</CircleProgress>
<view
class=
"top-view"
v-if=
"!isFull"
@
click=
"$u.throttle(handleClickRecord, 500)"
>
考试错题已自动加入
<text
class=
"blue-text"
>
"错题记录"
</text>
方便练习
</view
>
<view
:class=
"['content',
{ 'is-full': isFull }]">
<view
class=
"content-view"
>
<image
mode=
"widthFix"
class=
"back-image"
:src=
"backImage"
></image>
<view
class=
"chart-view"
>
<CircleProgress
class=
"progress-view"
active-color=
"#FFFFFF"
:percent=
"info.score"
inactive-color=
"rgba(255, 255, 255, 0.3)"
width=
"240"
border-width=
"8"
bg-color=
"transparent"
>
<view
class=
"progress-content"
>
<view
class=
"progress-score"
>
{{
info
.
score
}}
</view>
<view
class=
"progress-info"
>
{{
resultText
}}
</view>
<view
class=
"percent-text"
>
超越了
{{
falsePercent
}}
%的学员
</view
>
</view>
</CircleProgress>
</view>
<view
class=
"head-view"
>
<view
class=
"image-view"
>
<image
class=
"image"
:src=
"info.image || defaultImage"
>
</image
></view>
<view>
{{
info
.
name
}}
</view>
<view
class=
"time-view"
>
{{
info
.
time
}}
</view>
</view>
<view
class=
"detail-view"
>
<view
class=
"name-view"
>
{{
info
.
category
}}
</view>
<view
class=
"type-view"
>
{{
info
.
type
}}
</view>
<image
class=
"qrcode-image"
:src=
"info.institutionLogo"
></image>
</view>
</view>
<view
class=
"head-view"
>
<view
class=
"image-view"
>
<image
class=
"image"
:src=
"info.image || defaultImage"
>
</image
></view>
<view>
{{
info
.
name
}}
</view>
<view
class=
"time-view"
>
{{
info
.
time
}}
</view>
</view>
<view
class=
"detail-view"
>
<view
class=
"name-view"
>
{{
info
.
category
}}
</view>
<view
class=
"type-view"
>
{{
info
.
type
}}
</view>
<image
class=
"qrcode-image"
:src=
"info.institutionLogo"
></image>
<view
class=
"bottom-view"
>
<u-button
:customStyle=
"buttonStyle"
@
click=
"handleClick"
type=
"primary"
hover-class=
"hover-class"
>
<image
:src=
"pengyunquanImage"
class=
"share-image"
></image>
分享朋友圈
</u-button>
<u-button
:customStyle=
"buttonStyle"
open-type=
"share"
type=
"primary"
>
<image
:src=
"weixinImage"
class=
"share-image"
></image>
分享给好友
</u-button>
</view>
</view>
<view
class=
"bottom-view"
>
<u-button
:customStyle=
"buttonStyle"
@
click=
"handleClick"
type=
"primary"
hover-class=
"hover-class"
>
<image
:src=
"pengyunquanImage"
class=
"share-image"
></image>
分享朋友圈
</u-button>
<u-button
:customStyle=
"buttonStyle"
open-type=
"share"
type=
"primary"
>
<image
:src=
"weixinImage"
class=
"share-image"
></image>
分享给好友
</u-button>
</view>
</view>
</scroll-view>
<u-mask
:show=
"show"
@
click=
"show = false"
>
<view
class=
"tip-view"
>
<image
class=
"tip-image"
:src=
"jiantouImage"
></image>
...
...
@@ -199,7 +209,7 @@ export default {
url
:
'pages/learn/answer'
,
params
:
{
source
:
5
,
}
}
,
})
},
handleClick
()
{
...
...
@@ -211,26 +221,28 @@ export default {
customBack
()
{
this
.
$u
.
route
({
type
:
'tab'
,
url
:
'pages/index/index'
url
:
'pages/index/index'
,
})
}
}
,
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
::-webkit-scrollbar
{
width
:
0
;
height
:
0
;
color
:
transparent
;
display
:
none
;
}
.score-view
{
display
:
flex
;
flex-direction
:
column
;
height
:
100vh
;
background-color
:
#f7f9fc
;
::-webkit-scrollbar
{
width
:
0
;
height
:
0
;
color
:
transparent
;
display
:
none
;
}
.scroll-view
{
height
:
100vh
;
}
.top-view
{
background-color
:
rgba
(
250
,
90
,
73
,
0
.1
);
color
:
#5a6073
;
...
...
@@ -243,8 +255,6 @@ export default {
}
}
.content
{
height
:
100%
;
overflow
:
auto
;
padding
:
64rpx
48rpx
44rpx
48rpx
;
&
.is-full
{
padding-top
:
0rpx
;
...
...
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