Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
fc124ce9
Commit
fc124ce9
authored
May 15, 2021
by
刘用法
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
ab54fea9
50074060
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
10 deletions
+40
-10
learn.vue
src/pages/index/learn.vue
+26
-4
answer.vue
src/pages/learn/answer.vue
+13
-5
section.vue
src/pages/learn/section.vue
+1
-1
No files found.
src/pages/index/learn.vue
View file @
fc124ce9
...
@@ -4,8 +4,9 @@
...
@@ -4,8 +4,9 @@
<text
class=
"title-view"
>
学习
</text>
<text
class=
"title-view"
>
学习
</text>
</u-navbar>
</u-navbar>
<image
:src=
"bannerImage"
mode=
""
class=
"banner"
></image>
<image
:src=
"bannerImage"
mode=
""
class=
"banner"
></image>
<u-tabs-swiper
bg-color=
"#F4F5F7"
inactive-color=
"#999999"
font-size=
"28"
ref=
"uTabs"
:list=
"tabs"
:current=
"current"
@
change=
"tabsChange"
:is-scroll=
"false"
:bar-width=
"52"
swiperWidth=
"750"
></u-tabs-swiper>
<u-tabs-swiper
bg-color=
"#F4F5F7"
inactive-color=
"#999999"
font-size=
"28"
ref=
"uTabs"
:list=
"tabs"
<swiper
class=
"swiper_group"
:current=
"swiperCurrent"
@
animationfinish=
"animationfinish"
>
:current=
"current"
@
change=
"tabsChange"
:is-scroll=
"false"
:bar-width=
"52"
swiperWidth=
"750"
></u-tabs-swiper>
<swiper
class=
"swiper_group"
:current=
"swiperCurrent"
@
transition=
"transition"
@
animationfinish=
"animationfinish"
>
<swiper-item
@
touchmove
.
stop
.
prevent=
"stopTouchMove"
v-show=
"current == 0"
>
<swiper-item
@
touchmove
.
stop
.
prevent=
"stopTouchMove"
v-show=
"current == 0"
>
<scroll-view
scroll-y
style=
"height:100%;width:100%;"
>
<scroll-view
scroll-y
style=
"height:100%;width:100%;"
>
<view
class=
"jf-currency-class"
>
<view
class=
"jf-currency-class"
>
...
@@ -22,7 +23,7 @@
...
@@ -22,7 +23,7 @@
</scroll-view>
</scroll-view>
</swiper-item>
</swiper-item>
<swiper-item
@
touchmove
.
stop
.
prevent=
"stopTouchMove"
v-show=
"current == 1"
>
<swiper-item
@
touchmove
.
stop
.
prevent=
"stopTouchMove"
v-show=
"current == 1"
>
<scroll-view
scroll-y
style=
"height:100%;width:100%;"
@
scrolltolower=
"on
R
eachBottom"
scroll-y=
"true"
refresher-enabled=
"true"
:refresher-triggered=
"triggered"
:refresher-threshold=
"100"
@
refresherpulling=
"onPulling"
@
refresherrefresh=
"onRefresh"
@
refresherrestore=
"onRestore"
@
refresherabort=
"onAbort"
>
<scroll-view
scroll-y
style=
"height:100%;width:100%;"
@
scrolltolower=
"on
r
eachBottom"
scroll-y=
"true"
refresher-enabled=
"true"
:refresher-triggered=
"triggered"
:refresher-threshold=
"100"
@
refresherpulling=
"onPulling"
@
refresherrefresh=
"onRefresh"
@
refresherrestore=
"onRestore"
@
refresherabort=
"onAbort"
>
<view
v-for=
"item in list"
:key=
"item.id"
class=
"notice"
@
click=
"bbb(item)"
>
<view
v-for=
"item in list"
:key=
"item.id"
class=
"notice"
@
click=
"bbb(item)"
>
<view
class=
"n-head"
>
<view
class=
"n-head"
>
{{
item
.
title
}}
{{
item
.
title
}}
...
@@ -246,6 +247,7 @@ var examJson = {
...
@@ -246,6 +247,7 @@ var examJson = {
examId
:
""
,
examId
:
""
,
examStatus
:
""
,
examStatus
:
""
,
isComplete
:
false
,
isComplete
:
false
,
questionTime
:
null
,
},
},
{
{
title
:
"接单操作"
,
title
:
"接单操作"
,
...
@@ -257,6 +259,7 @@ var examJson = {
...
@@ -257,6 +259,7 @@ var examJson = {
examId
:
""
,
examId
:
""
,
examStatus
:
""
,
examStatus
:
""
,
isComplete
:
false
,
isComplete
:
false
,
questionTime
:
null
,
},
},
],
],
test
:
[
test
:
[
...
@@ -269,6 +272,7 @@ var examJson = {
...
@@ -269,6 +272,7 @@ var examJson = {
id
:
3
,
id
:
3
,
examId
:
""
,
examId
:
""
,
examStatus
:
""
,
examStatus
:
""
,
questionTime
:
null
,
isComplete
:
false
,
isComplete
:
false
,
},
},
{
{
...
@@ -280,6 +284,7 @@ var examJson = {
...
@@ -280,6 +284,7 @@ var examJson = {
id
:
4
,
id
:
4
,
examId
:
""
,
examId
:
""
,
examStatus
:
""
,
examStatus
:
""
,
questionTime
:
null
,
isComplete
:
false
,
isComplete
:
false
,
},
},
],
],
...
@@ -294,6 +299,7 @@ var examJson = {
...
@@ -294,6 +299,7 @@ var examJson = {
examId
:
""
,
examId
:
""
,
examStatus
:
""
,
examStatus
:
""
,
isComplete
:
false
,
isComplete
:
false
,
questionTime
:
null
,
},
},
{
{
title
:
"接单操作"
,
title
:
"接单操作"
,
...
@@ -305,6 +311,7 @@ var examJson = {
...
@@ -305,6 +311,7 @@ var examJson = {
examId
:
""
,
examId
:
""
,
examStatus
:
""
,
examStatus
:
""
,
isComplete
:
false
,
isComplete
:
false
,
questionTime
:
null
,
},
},
],
],
};
};
...
@@ -379,6 +386,7 @@ export default {
...
@@ -379,6 +386,7 @@ export default {
examId
:
examListJson
[
0
].
examId
,
examId
:
examListJson
[
0
].
examId
,
examStatus
:
examListJson
[
0
].
examStatus
,
examStatus
:
examListJson
[
0
].
examStatus
,
isComplete
:
examListJson
[
0
].
isComplete
,
isComplete
:
examListJson
[
0
].
isComplete
,
questionTime
:
examListJson
[
0
].
questionTime
,
},
},
{
{
title
:
examListJson
[
1
].
title
,
title
:
examListJson
[
1
].
title
,
...
@@ -390,6 +398,7 @@ export default {
...
@@ -390,6 +398,7 @@ export default {
examId
:
examListJson
[
1
].
examId
,
examId
:
examListJson
[
1
].
examId
,
examStatus
:
examListJson
[
1
].
examStatus
,
examStatus
:
examListJson
[
1
].
examStatus
,
isComplete
:
examListJson
[
1
].
isComplete
,
isComplete
:
examListJson
[
1
].
isComplete
,
questionTime
:
examListJson
[
1
].
questionTime
,
},
},
],
],
loadStatus
:
"loading"
,
loadStatus
:
"loading"
,
...
@@ -447,8 +456,13 @@ export default {
...
@@ -447,8 +456,13 @@ export default {
onAbort
()
{
onAbort
()
{
console
.
log
(
"onAbort"
);
console
.
log
(
"onAbort"
);
},
},
transition
(
e
)
{
// swiper-item左右移动,通知tabs的滑块跟随移动
let
dx
=
e
.
detail
.
dx
;
this
.
$refs
.
uTabs
.
setDx
(
dx
);
},
//scroll-view到底部加载更多
//scroll-view到底部加载更多
on
R
eachBottom
()
{
on
r
eachBottom
()
{
//上拉触底函数
//上拉触底函数
if
(
!
this
.
isLoadMore
)
{
if
(
!
this
.
isLoadMore
)
{
this
.
isLoadMore
=
true
;
this
.
isLoadMore
=
true
;
...
@@ -635,6 +649,11 @@ export default {
...
@@ -635,6 +649,11 @@ export default {
}
}
this
.
examList
[
i
].
examId
=
res
.
data
.
id
;
this
.
examList
[
i
].
examId
=
res
.
data
.
id
;
this
.
examList
[
i
].
examStatus
=
res
.
data
.
examStatus
;
//i;//
this
.
examList
[
i
].
examStatus
=
res
.
data
.
examStatus
;
//i;//
this
.
examList
[
i
].
questionTime
=
res
.
data
.
questionTime
;
console
.
log
(
this
.
examList
[
i
].
questionTime
,
"每题考试时间"
);
let
examResult
=
res
.
data
.
examLevelResult
;
let
examResult
=
res
.
data
.
examLevelResult
;
this
.
examList
[
i
].
status
=
this
.
examList
[
i
].
status
=
examResult
!=
""
?
examResult
:
"未通过"
;
examResult
!=
""
?
examResult
:
"未通过"
;
...
@@ -671,6 +690,9 @@ export default {
...
@@ -671,6 +690,9 @@ export default {
aaa
(
index
)
{
aaa
(
index
)
{
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
//考试完成分成通过、未通过
//考试完成分成通过、未通过
getApp
().
globalData
.
questionTime
=
this
.
examList
[
index
].
questionTime
;
var
examInfo
=
this
.
examList
[
index
];
var
examInfo
=
this
.
examList
[
index
];
if
(
examInfo
.
examStatus
==
0
)
{
if
(
examInfo
.
examStatus
==
0
)
{
console
.
log
(
"这是试卷id"
,
examInfo
.
id
);
console
.
log
(
"这是试卷id"
,
examInfo
.
id
);
...
...
src/pages/learn/answer.vue
View file @
fc124ce9
...
@@ -74,8 +74,8 @@ export default {
...
@@ -74,8 +74,8 @@ export default {
isSelect
:
false
,
isSelect
:
false
,
timeDefine
:
{
timeDefine
:
{
"time-id-2"
:
1800
,
"time-id-2"
:
1800
,
"time-id-3"
:
900
,
"time-id-3"
:
getApp
().
globalData
.
questionTime
*
5
,
"time-id-4"
:
450
,
"time-id-4"
:
getApp
().
globalData
.
questionTime
*
5
,
},
},
endTime
:
0
,
endTime
:
0
,
currentTime
:
100
,
currentTime
:
100
,
...
@@ -130,6 +130,7 @@ export default {
...
@@ -130,6 +130,7 @@ export default {
if
(
h
!==
"00"
)
res
+=
`
${
h
}
:`
;
if
(
h
!==
"00"
)
res
+=
`
${
h
}
:`
;
if
(
m
!==
"00"
)
res
+=
`
${
m
}
:`
;
if
(
m
!==
"00"
)
res
+=
`
${
m
}
:`
;
res
+=
`
${
s
}
`
;
res
+=
`
${
s
}
`
;
if
(
this
.
endTime
==
0
)
res
=
"00:00"
;
return
res
;
return
res
;
},
},
toSubmit
()
{
toSubmit
()
{
...
@@ -353,13 +354,20 @@ export default {
...
@@ -353,13 +354,20 @@ export default {
}
}
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
that
.
currentItem
=
res
.
data
.
data
;
that
.
currentItem
=
res
.
data
.
data
;
console
.
log
(
that
.
currentItem
);
that
.
progress
=
res
.
data
.
data
.
progress
;
that
.
progress
=
res
.
data
.
data
.
progress
;
if
(
res
.
data
.
data
.
isQuestion
)
{
let
str
=
res
.
data
.
data
.
question
.
content
;
var
wz
=
str
.
indexOf
(
"."
);
let
str1
=
str
.
substring
(
wz
+
1
);
console
.
log
(
that
.
currentItem
);
that
.
currentItem
.
question
.
content
=
str1
;
console
.
log
(
str1
,
"切割的字符串"
);
}
if
(
res
.
data
.
data
.
answerList
)
{
if
(
res
.
data
.
data
.
answerList
)
{
that
.
handleData
();
that
.
handleData
();
// that.currentTime = 100
// that.currentTime = 100
this
.
everyTime
=
getApp
().
globalData
.
questionTime
;
//每道题100s
this
.
everyTime
=
90
;
//每道题90s
that
.
isSelect
=
false
;
that
.
isSelect
=
false
;
clearTimeout
(
this
.
timer
);
clearTimeout
(
this
.
timer
);
that
.
startCounting
();
that
.
startCounting
();
...
...
src/pages/learn/section.vue
View file @
fc124ce9
...
@@ -228,6 +228,7 @@
...
@@ -228,6 +228,7 @@
this
.
courseDesc
=
res
.
data
.
content
.
replace
(
/<p.*
?
>|<
\/
p>/ig
,
""
)
this
.
courseDesc
=
res
.
data
.
content
.
replace
(
/<p.*
?
>|<
\/
p>/ig
,
""
)
this
.
section_id
=
res
.
data
.
id
this
.
section_id
=
res
.
data
.
id
this
.
section_content
=
res
.
data
.
content
this
.
section_content
=
res
.
data
.
content
this
.
status
=
res
.
data
.
isLearned
?
1
:
0
this
.
teacher
.
name
=
res
.
data
.
teachers
[
0
].
name
this
.
teacher
.
name
=
res
.
data
.
teachers
[
0
].
name
this
.
teacherImage
=
res
.
data
.
teachers
[
0
].
avatar
this
.
teacherImage
=
res
.
data
.
teachers
[
0
].
avatar
this
.
teacherIntro
=
res
.
data
.
teachers
[
0
].
intro
.
replace
(
/<.*
?
>|<
\/
.*
?
>/ig
,
""
)
this
.
teacherIntro
=
res
.
data
.
teachers
[
0
].
intro
.
replace
(
/<.*
?
>|<
\/
.*
?
>/ig
,
""
)
...
@@ -456,7 +457,6 @@
...
@@ -456,7 +457,6 @@
// padding: 20rpx;
// padding: 20rpx;
padding-left
:
20rpx
;
padding-left
:
20rpx
;
background
:
#fff
;
background
:
#fff
;
white-space
:
nowrap
;
// border: 1px solid red;
// border: 1px solid red;
}
}
...
...
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