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
9c495f30
Commit
9c495f30
authored
May 18, 2021
by
刘用法
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
a1e89aac
45da3ae0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
learn.vue
src/pages/index/learn.vue
+11
-12
assessment.vue
src/pages/learn/assessment.vue
+1
-1
No files found.
src/pages/index/learn.vue
View file @
9c495f30
...
@@ -4,8 +4,7 @@
...
@@ -4,8 +4,7 @@
<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"
<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>
: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
class=
"swiper_group"
:current=
"swiperCurrent"
@
transition=
"transition"
@
animationfinish=
"animationfinish"
>
<swiper-item
@
touchmove
.
stop
.
prevent=
"stopTouchMove"
>
<swiper-item
@
touchmove
.
stop
.
prevent=
"stopTouchMove"
>
<scroll-view
scroll-y
style=
"height:100%;width:100%;"
>
<scroll-view
scroll-y
style=
"height:100%;width:100%;"
>
...
@@ -636,10 +635,8 @@ export default {
...
@@ -636,10 +635,8 @@ export default {
},
},
//考核认证,通用认证,考试通过or未通过查询接口请求
//考核认证,通用认证,考试通过or未通过查询接口请求
getUserExamInfo
()
{
getUserExamInfo
()
{
uni
.
showLoading
({
uni
.
hideLoading
();
title
:
"请稍候"
,
});
let
that
=
this
;
let
that
=
this
;
let
token
=
that
.
vuex_token
;
let
token
=
that
.
vuex_token
;
let
length
=
this
.
examList
.
length
;
let
length
=
this
.
examList
.
length
;
...
@@ -662,14 +659,16 @@ export default {
...
@@ -662,14 +659,16 @@ export default {
this
.
examList
[
i
].
status
=
this
.
examList
[
i
].
status
=
examResult
!=
""
?
examResult
:
"未通过"
;
examResult
!=
""
?
examResult
:
"未通过"
;
//动态获取条件
//动态获取条件
let
ruleDisc
=
res
.
data
.
ruleDisc
;
let
ruleDisc
=
res
.
data
.
ruleDisc
;
let
targetIndex
=
ruleDisc
.
indexOf
(
'('
);
let
targetIndex
=
ruleDisc
.
indexOf
(
"("
);
if
(
targetIndex
){
if
(
targetIndex
)
{
this
.
examList
[
i
].
condition
=
ruleDisc
.
substr
(
targetIndex
+
1
).
replace
(
')'
,
''
);
this
.
examList
[
i
].
condition
=
ruleDisc
.
substr
(
targetIndex
+
1
)
.
replace
(
")"
,
""
);
}
}
// examStatus 用户考试状态 0考试中 1考试完成 2未参与
// examStatus 用户考试状态 0考试中 1考试完成 2未参与
that
.
exam
=
res
.
data
;
that
.
exam
=
res
.
data
;
if
(
res
.
data
.
examStatus
==
2
)
{
if
(
res
.
data
.
examStatus
==
2
)
{
...
...
src/pages/learn/assessment.vue
View file @
9c495f30
...
@@ -158,7 +158,7 @@ export default {
...
@@ -158,7 +158,7 @@ export default {
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
data
.
ruleDisc
)
{
if
(
res
.
data
.
data
.
ruleDisc
)
{
var
str
=
res
.
data
.
data
.
ruleDisc
;
var
str
=
res
.
data
.
data
.
ruleDisc
;
let
strArr
=
str
.
split
(
'('
)[
0
].
split
(
','
);
let
strArr
=
str
.
split
(
"("
)[
0
].
split
(
","
);
this
.
desc
.
title
=
strArr
[
0
];
this
.
desc
.
title
=
strArr
[
0
];
this
.
desc
.
score
=
strArr
[
1
];
this
.
desc
.
score
=
strArr
[
1
];
this
.
desc
.
time
=
strArr
[
2
];
this
.
desc
.
time
=
strArr
[
2
];
...
...
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