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
dd2a3e88
Commit
dd2a3e88
authored
Apr 20, 2021
by
Morson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面调整
parent
c701448c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
13 deletions
+19
-13
App.vue
src/App.vue
+4
-4
course-detail.vue
src/pages/learn/course-detail.vue
+7
-1
exam.vue
src/pages/learn/exam.vue
+8
-8
No files found.
src/App.vue
View file @
dd2a3e88
...
...
@@ -17,22 +17,22 @@
icon_auth_notice_new
:
'https://qn-static.banshouhui.com/auth_notice_new.png'
,
// 服务规范教程视频
service_standard
:
{
"
C
ourse1"
:
{
"
c
ourse1"
:
{
url
:
"https://qn-static.banshouhui.com/self-support/videoen.mp4"
,
title
:
"第一节 师傅考核规则"
,
desc
:
"接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。"
,
},
"
C
ourse2"
:
{
"
c
ourse2"
:
{
url
:
"https://qn-static.banshouhui.com/self-support/videoen.mp4"
,
title
:
"第二节 安装材料及工具"
,
desc
:
"接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。"
,
},
"
C
ourse3"
:
{
"
c
ourse3"
:
{
url
:
"https://qn-static.banshouhui.com/self-support/videoen.mp4"
,
title
:
"第二节 安装施工规范"
,
desc
:
"接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。"
,
},
"
C
ourse4"
:
{
"
c
ourse4"
:
{
url
:
"https://qn-static.banshouhui.com/self-support/videoen.mp4"
,
title
:
"第二节 录单上传要求"
,
desc
:
"接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。"
,
...
...
src/pages/learn/course-detail.vue
View file @
dd2a3e88
...
...
@@ -7,6 +7,7 @@
class=
"course-video"
id=
"courseVideo"
:src=
"courseSrc"
@
play=
"playCourse"
@
error=
"videoErrorCallback"
controls
></video
...
...
@@ -94,7 +95,6 @@ export default {
this
.
courseSrc
=
app
.
globalData
.
service_standard
[
e
.
id
].
url
;
this
.
courseTitle
=
app
.
globalData
.
service_standard
[
e
.
id
].
title
;
this
.
courseDesc
=
app
.
globalData
.
service_standard
[
e
.
id
].
desc
;
this
.
changeCourseStatus
();
}
if
(
e
.
status
)
{
...
...
@@ -123,6 +123,12 @@ export default {
}
return
"#"
+
rgb
.
join
(
""
);
},
playCourse
:
function
(
e
)
{
if
(
this
.
courseStatus
&&
(
this
.
courseStatus
==
"1"
||
this
.
courseStatus
==
1
))
{
return
}
this
.
changeCourseStatus
();
},
changeCourseStatus
()
{
let
that
=
this
;
if
(
that
.
courseId
)
{
...
...
src/pages/learn/exam.vue
View file @
dd2a3e88
...
...
@@ -79,16 +79,16 @@
tipsTitle
:
'提示:'
,
// 简单使用固定培训视频
tutorials
:
[{
id
:
'
C
ourse1'
,
id
:
'
c
ourse1'
,
courseId
:
1
,
title
:
''
,
value
:
'去学习'
,
courseActive
:
{},
status
:
1
,
status
:
0
,
url
:
''
},
{
id
:
'
C
ourse2'
,
id
:
'
c
ourse2'
,
courseId
:
2
,
title
:
''
,
value
:
'去学习'
,
...
...
@@ -97,7 +97,7 @@
url
:
''
},
{
id
:
'
C
ourse3'
,
id
:
'
c
ourse3'
,
courseId
:
3
,
title
:
''
,
value
:
'去学习'
,
...
...
@@ -106,7 +106,7 @@
url
:
''
},
{
id
:
'
C
ourse4'
,
id
:
'
c
ourse4'
,
courseId
:
4
,
title
:
''
,
value
:
'去学习'
,
...
...
@@ -161,6 +161,8 @@
item
[
'value'
]
=
item
[
'status'
]
?
'已学习'
:
'去学习'
item
[
'courseActive'
]
=
item
[
'status'
]
?
this
.
learnStyle
:
this
.
learnedStyle
})
},
onShow
()
{
this
.
loadLearnData
();
},
methods
:
{
...
...
@@ -169,9 +171,8 @@
that
.
$u
.
api
.
listOrderingTutorials
()
.
then
(
res
=>
{
debugger
const
results
=
res
.
data
;
if
(
res
.
code
==
200
&&
results
&&
results
.
length
>
0
)
{
if
(
res
.
code
==
200
&&
results
)
{
that
.
tutorials
.
forEach
((
data
,
i
)
=>
{
if
(
results
.
hasOwnProperty
(
data
.
id
))
{
data
.
status
=
results
[
data
.
id
];
...
...
@@ -187,7 +188,6 @@
}
})
.
catch
(
e
=>
{
debugger
;
console
.
log
(
e
,
'loadLearnData'
);
});
},
...
...
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