Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online
Commits
43f2f66c
提交
43f2f66c
authored
10月 14, 2019
作者:
何喜
浏览文件
操作
浏览文件
下载
差异文件
修复继续播放失败问题
上级
56c4b08d
5ca38487
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
9 行增加
和
8 行删除
+9
-8
CourseApi.js
learnOnline/apiService/CourseApi.js
+1
-0
courseContent.js
learnOnline/pages/learnSystem/courseContent/courseContent.js
+2
-2
courseContent.wxml
...Online/pages/learnSystem/courseContent/courseContent.wxml
+2
-2
controlBar.wxml
learnOnline/pages/videoPlayer/controlBar/controlBar.wxml
+2
-2
util.js
learnOnline/utils/util.js
+2
-2
没有找到文件。
learnOnline/apiService/CourseApi.js
浏览文件 @
43f2f66c
...
@@ -89,6 +89,7 @@ const getCourseDetail = (id, sid, callback) => {
...
@@ -89,6 +89,7 @@ const getCourseDetail = (id, sid, callback) => {
/* 课程内容 */
/* 课程内容 */
json
.
tabs1ChapterList
=
{
json
.
tabs1ChapterList
=
{
currentChapterId
:
cur
.
latest_play
||
''
,
currentChapterId
:
cur
.
latest_play
||
''
,
videoType
:
cur
.
latest_play_type
||
''
,
course
:
cur
.
chapters
.
map
(
function
(
_
,
i
)
{
course
:
cur
.
chapters
.
map
(
function
(
_
,
i
)
{
return
{
return
{
title
:
_
.
name
,
title
:
_
.
name
,
...
...
learnOnline/pages/learnSystem/courseContent/courseContent.js
浏览文件 @
43f2f66c
...
@@ -212,9 +212,9 @@ Page({
...
@@ -212,9 +212,9 @@ Page({
*/
*/
startLearn
:
function
(
e
)
{
startLearn
:
function
(
e
)
{
let
_data
=
e
.
target
.
dataset
let
_data
=
e
.
target
.
dataset
let
cid
=
_data
.
cid
,
sid
=
_data
.
sid
,
vid
=
_data
.
vid
let
cid
=
_data
.
cid
,
sid
=
_data
.
sid
,
vid
=
_data
.
vid
,
video_type
=
_data
.
type
;
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'/pages/videoPlayer/show'
+
'?cid='
+
cid
+
'&sid='
+
sid
+
'&vid='
+
vid
url
:
'/pages/videoPlayer/show'
+
'?cid='
+
cid
+
'&sid='
+
sid
+
'&vid='
+
vid
+
'&type='
+
video_type
})
})
},
},
/**
/**
...
...
learnOnline/pages/learnSystem/courseContent/courseContent.wxml
浏览文件 @
43f2f66c
...
@@ -11,10 +11,10 @@
...
@@ -11,10 +11,10 @@
<view class='tabs-item'>{{item1}}</view>
<view class='tabs-item'>{{item1}}</view>
</block>
</block>
<block wx:if='{{headerInfo.isStart && tabs[1].chapterList.currentChapterId}}'>
<block wx:if='{{headerInfo.isStart && tabs[1].chapterList.currentChapterId}}'>
<view class='btn' bindtap='startLearn' data-cid='{{headerInfo.id}}' data-sid='{{headerInfo.sid}}' data-vid='{{tabs[1].chapterList.currentChapterId}}'>继续学习</view>
<view class='btn' bindtap='startLearn' data-cid='{{headerInfo.id}}' data-sid='{{headerInfo.sid}}' data-vid='{{tabs[1].chapterList.currentChapterId}}'
data-type='{{tabs[1].chapterList.videoType}}'
>继续学习</view>
</block>
</block>
<block wx:elif='{{headerInfo.isStart}}'>
<block wx:elif='{{headerInfo.isStart}}'>
<view class='btn' bindtap='startLearn' data-cid='{{headerInfo.id}}' data-sid='{{headerInfo.sid}}' data-vid='{{tabs[1].chapterList.course[0].chapters[0].vid}}'>开始学习</view>
<view class='btn' bindtap='startLearn' data-cid='{{headerInfo.id}}' data-sid='{{headerInfo.sid}}' data-vid='{{tabs[1].chapterList.course[0].chapters[0].vid}}'
data-type='{{tabs[1].chapterList.course[0].chapters[0].videoType}}'
>开始学习</view>
</block>
</block>
<block wx:else>
<block wx:else>
<view class='btn' bindtap='wantThisCourse' data-cid='{{headerInfo.id}}' data-sid='{{headerInfo.sid}}'>选课</view>
<view class='btn' bindtap='wantThisCourse' data-cid='{{headerInfo.id}}' data-sid='{{headerInfo.sid}}'>选课</view>
...
...
learnOnline/pages/videoPlayer/controlBar/controlBar.wxml
浏览文件 @
43f2f66c
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</view>
</view>
<view class='main-btns'>
<view class='main-btns'>
<view class='btn-back'>
<view class='btn-back'>
<image class='img' src='./controlBar/icons/btn-back.png' mode='scaleToFill' data-id='{{chapterList.prevVideo.id}}' data-hasVA='{{chapterList.prevVideo.time}}' data-name='{{chapterList.prevVideo.name}}' bindtap='prevChapter'></image>
<image class='img' src='./controlBar/icons/btn-back.png' mode='scaleToFill' data-id='{{chapterList.prevVideo.id}}' data-hasVA='{{chapterList.prevVideo.time}}' data-name='{{chapterList.prevVideo.name}}' bindtap='prevChapter'
data-type='{{chapterList.nextVideo.videoType}}'
></image>
</view>
</view>
<view class='opt'>
<view class='opt'>
<image class='img init-page {{initVAFlag ? "" : "none"}}' src='./controlBar/icons/loading_small.gif' mode='aspectFit'></image>
<image class='img init-page {{initVAFlag ? "" : "none"}}' src='./controlBar/icons/loading_small.gif' mode='aspectFit'></image>
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<image class='img pause {{initVAFlag ? "none" : ""}} {{!ctrlBar.isPlay ? "none" : ""}}' src='./controlBar/icons/btn-pause.png' mode='scaleToFill' bindtap='pauseVA'></image>
<image class='img pause {{initVAFlag ? "none" : ""}} {{!ctrlBar.isPlay ? "none" : ""}}' src='./controlBar/icons/btn-pause.png' mode='scaleToFill' bindtap='pauseVA'></image>
</view>
</view>
<view class='btn-front'>
<view class='btn-front'>
<image class='img' src='./controlBar/icons/btn-front.png' mode='scaleToFill' data-id='{{chapterList.nextVideo.id}}' data-hasVA='{{chapterList.nextVideo.time}}' data-name='{{chapterList.nextVideo.name}}' bindtap='nextChapter'></image>
<image class='img' src='./controlBar/icons/btn-front.png' mode='scaleToFill' data-id='{{chapterList.nextVideo.id}}' data-hasVA='{{chapterList.nextVideo.time}}' data-name='{{chapterList.nextVideo.name}}'
data-type='{{chapterList.nextVideo.videoType}}'
bindtap='nextChapter'></image>
</view>
</view>
</view>
</view>
<view class='right-btn' bindtap='openSetContent'>
<view class='right-btn' bindtap='openSetContent'>
...
...
learnOnline/utils/util.js
浏览文件 @
43f2f66c
...
@@ -11,7 +11,7 @@ const url_test = {
...
@@ -11,7 +11,7 @@ const url_test = {
URL_PATH2
:
'https://sso2.ezijing.com'
,
// 正式域名 - 由于项目变动域名
URL_PATH2
:
'https://sso2.ezijing.com'
,
// 正式域名 - 由于项目变动域名
outSiteLink
:
'https://e-learning.ezijing.com'
,
// 正式外链
outSiteLink
:
'https://e-learning.ezijing.com'
,
// 正式外链
tenant
:
'classes'
,
tenant
:
'classes'
,
version
:
'3.1.
2
'
version
:
'3.1.
3
'
};
};
const
url_online
=
{
const
url_online
=
{
URL_PATH
:
'https://api.ezijing.com/tenant'
,
// 正式域名 - 由于项目变动域名
URL_PATH
:
'https://api.ezijing.com/tenant'
,
// 正式域名 - 由于项目变动域名
...
@@ -19,7 +19,7 @@ const url_online = {
...
@@ -19,7 +19,7 @@ const url_online = {
URL_PATH2
:
'https://sso.ezijing.com'
,
// 正式域名 - 由于项目变动域名
URL_PATH2
:
'https://sso.ezijing.com'
,
// 正式域名 - 由于项目变动域名
outSiteLink
:
'https://e-learning.ezijing.com'
,
// 正式外链
outSiteLink
:
'https://e-learning.ezijing.com'
,
// 正式外链
tenant
:
'classes'
,
tenant
:
'classes'
,
version
:
'3.1.
2
'
version
:
'3.1.
3
'
}
}
let
config
=
url_online
;
let
config
=
url_online
;
/* 请求接口统一 重定义 */
/* 请求接口统一 重定义 */
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论