Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
educationStu
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
向伟
educationStu
Commits
18df880a
Commit
18df880a
authored
Sep 14, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Plain Diff
21
parents
eda2056c
0daca193
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
18 deletions
+21
-18
readingCompre.vue
src/components/subject/readingCompre.vue
+16
-7
examPaper.vue
src/pages/exam/examPaper.vue
+3
-4
index.js
src/utils/index.js
+0
-5
request.js
src/utils/request.js
+2
-2
No files found.
src/components/subject/readingCompre.vue
View file @
18df880a
...
...
@@ -147,7 +147,7 @@ import {
computed
,
onMounted
,
}
from
"vue"
;
import
{
changeNumToHan
,
getSystemInfo
}
from
"../../utils/index"
;
import
{
changeNumToHan
}
from
"../../utils/index"
;
export
default
{
props
:
{
paperData
:
Object
,
...
...
@@ -241,23 +241,32 @@ export default {
clearTimeout
(
data
.
timer
);
data
.
timer
=
setTimeout
(()
=>
{
data
.
timeOutEvent
=
true
;
},
3
00
);
},
1
00
);
},
touchmove
(
e
)
{
if
(
data
.
timeOutEvent
)
{
console
.
log
(
"长按了"
);
let
touches
=
e
.
touches
[
0
];
let
startTy
=
touches
.
clientY
;
getSystemInfo
((
res
)
=>
{
let
screenHeight
=
res
.
screenHeight
;
let
screenHeight
=
uni
.
getSystemInfoSync
().
screenHeight
;
data
.
questionH
=
(
screenHeight
-
startTy
)
*
2
;
});
}
},
touchend
()
{
data
.
timeOutEvent
=
false
;
clearTimeout
(
data
.
timer
);
},
//获取正确答案
getTrueAnswer
(
item
)
{
let
AnSwer
=
""
;
if
(
item
&&
item
.
length
>
0
)
{
item
.
forEach
((
x
)
=>
{
if
(
x
.
IsAnswer
)
{
AnSwer
=
x
.
Name
;
}
});
}
return
AnSwer
;
},
};
onMounted
(()
=>
{
if
(
props
.
isLast
)
{
...
...
src/pages/exam/examPaper.vue
View file @
18df880a
...
...
@@ -112,6 +112,7 @@
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:isOperate=
"isOperate"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
answerChange=
"getAnswerChange($event, index)"
...
...
@@ -328,7 +329,6 @@ import {
computed
,
onMounted
,
}
from
"vue"
;
import
{
getSystemInfo
}
from
"../../utils/index"
;
import
{
getPaperDetail
}
from
"../../api/exam"
;
import
{
changeNumToHan
}
from
"../../utils/index"
;
...
...
@@ -484,7 +484,6 @@ export default {
<
style
scoped
>
.exam-con
{
box-sizing
:
border-box
;
/* padding: 0 30rpx 30rpx; */
}
.answerSheet
{
font-size
:
30
rpx
;
...
...
src/utils/index.js
View file @
18df880a
//获取设备信息
export
let
getSystemInfo
=
(
callback
)
=>
{
return
uni
.
getSystemInfoSync
()
}
//脱敏
export
let
desensitization
=
(
str
,
beginLen
,
endLen
)
=>
{
let
len
=
str
.
length
;
...
...
src/utils/request.js
View file @
18df880a
...
...
@@ -28,8 +28,8 @@ let request = (param) => {
type
:
'fail'
,
message
:
res
.
data
.
Message
,
onClose
:
()
=>
{
if
(
res
.
data
.
Code
===
10001
)
{
uni
.
navigateTo
({
if
(
res
.
data
.
Code
===
10001
||
res
.
data
.
Code
===
10000
)
{
uni
.
reLaunch
({
url
:
'/pages/login/login'
});
}
...
...
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