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
c2bb1726
Commit
c2bb1726
authored
Jun 03, 2021
by
高铭波
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://git.banshouhui.com/lijundan/self-support
into dev
parents
fb31a673
fcfc79b6
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
284 additions
and
250 deletions
+284
-250
learn.vue
src/pages/index/learn.vue
+3
-3
course-detail.vue
src/pages/learn/course-detail.vue
+245
-237
section.vue
src/pages/learn/section.vue
+36
-10
No files found.
src/pages/index/learn.vue
View file @
c2bb1726
...
@@ -374,6 +374,9 @@ export default {
...
@@ -374,6 +374,9 @@ export default {
{
{
name
:
"消息通知"
,
name
:
"消息通知"
,
},
},
{
name
:
"在线学习"
,
},
{
{
name
:
"考核认证"
,
name
:
"考核认证"
,
},
},
...
@@ -385,9 +388,6 @@ export default {
...
@@ -385,9 +388,6 @@ export default {
{
{
name
:
"消息通知"
,
name
:
"消息通知"
,
},
},
{
name
:
"在线学习"
,
},
{
{
name
:
"考核认证"
,
name
:
"考核认证"
,
},
},
...
...
src/pages/learn/course-detail.vue
View file @
c2bb1726
This diff is collapsed.
Click to expand it.
src/pages/learn/section.vue
View file @
c2bb1726
<
template
>
<
template
v-cloak
>
<view
class=
""
>
<view
class=
""
>
<view
class=
"learn-vedio"
>
<view
class=
"learn-vedio"
v-if=
"version && loaded"
>
<u-navbar
back-icon-color=
"#000000"
:background=
"background"
title-color=
"#000000"
:border-bottom=
"false"
>
<u-navbar
back-icon-color=
"#000000"
:background=
"background"
title-color=
"#000000"
:border-bottom=
"false"
>
</u-navbar>
</u-navbar>
<view
class=
"uni-padding-wrap uni-common-mt"
>
<view
class=
"uni-padding-wrap uni-common-mt"
>
...
@@ -48,6 +48,11 @@
...
@@ -48,6 +48,11 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
v-else-if=
"loaded"
>
<u-navbar
back-icon-color=
"#000000"
:background=
"background"
title-color=
"#000000"
:border-bottom=
"false"
>
</u-navbar>
<view
style=
"text-align: center;"
>
暂无数据
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -100,7 +105,9 @@
...
@@ -100,7 +105,9 @@
scrollTop
:
null
scrollTop
:
null
},
},
scrollValue
:
0
,
scrollValue
:
0
,
nowTime
:
0
nowTime
:
0
,
version
:
true
,
loaded
:
false
};
};
},
},
computed
:
{
computed
:
{
...
@@ -109,18 +116,37 @@
...
@@ -109,18 +116,37 @@
},
},
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
getApp
().
trackPage
(
'学习视频详情页'
)
this
.
getVersion
();
this
.
section_id
=
e
.
section_id
getApp
().
trackPage
(
'学习视频详情页'
)
this
.
params
.
course_id
=
e
.
course_id
if
(
e
){
this
.
getCapterDetails
()
this
.
section_id
=
e
.
section_id
this
.
getSectionInfo
({
this
.
params
.
course_id
=
e
.
course_id
section_id
:
e
.
section_id
this
.
getCapterDetails
()
})
this
.
getSectionInfo
({
section_id
:
e
.
section_id
})
}
},
},
onReady
:
function
(
res
)
{
onReady
:
function
(
res
)
{
this
.
videoContext
=
uni
.
createVideoContext
(
"courseVideo"
);
this
.
videoContext
=
uni
.
createVideoContext
(
"courseVideo"
);
},
},
methods
:
{
methods
:
{
getVersion
()
{
let
version
=
process
.
uniEnv
.
version_number
;
let
that
=
this
;
this
.
$u
.
api
.
getVersionInfo
(
version
)
.
then
((
res
)
=>
{
that
.
loaded
=
true
let
data
=
res
.
data
;
if
(
data
.
hasOwnProperty
(
'is_audit'
)
&&
data
.
is_audit
==
0
){
that
.
version
=
false
}
})
.
catch
((
err
)
=>
{
that
.
loaded
=
true
});
},
scroll
:
function
(
e
)
{
scroll
:
function
(
e
)
{
this
.
old
.
scrollTop
=
e
.
detail
.
scrollTop
this
.
old
.
scrollTop
=
e
.
detail
.
scrollTop
},
},
...
...
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