Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online
Commits
a463d7dd
提交
a463d7dd
authored
2月 02, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
差异文件
Logo替换
上级
a5c59f79
fb000368
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
18 行增加
和
18 行删除
+18
-18
hd-logo.png
learnOnline/assets/images/hd-logo.png
+0
-0
video.js
learnOnline/components/player/behaviors/video.js
+16
-16
config.js
learnOnline/config.js
+2
-2
没有找到文件。
learnOnline/assets/images/hd-logo.png
查看替换文件 @
a5c59f79
浏览文件 @
a463d7dd
3.8 KB
|
W:
|
H:
6.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
learnOnline/components/player/behaviors/video.js
浏览文件 @
a463d7dd
...
...
@@ -66,22 +66,22 @@ module.exports = Behavior({
lifetimes
:
{
attached
()
{
this
.
createPlayer
()
wx
.
onNetworkStatusChange
(
res
=>
{
if
(
res
.
networkType
!==
'wifi'
&&
this
.
data
.
status
===
'playing'
)
{
this
.
pause
()
wx
.
showModal
({
content
:
'你正在使用非WIFI网络,播放将产生流量费用'
,
confirmText
:
'继续播放'
,
success
:
res
=>
{
if
(
res
.
confirm
)
{
this
.
play
()
}
else
if
(
res
.
cancel
)
{
this
.
pause
()
}
}
})
}
})
//
wx.onNetworkStatusChange(res => {
//
if (res.networkType !== 'wifi' && this.data.status === 'playing') {
//
this.pause()
//
wx.showModal({
//
content: '你正在使用非WIFI网络,播放将产生流量费用',
//
confirmText: '继续播放',
//
success: res => {
//
if (res.confirm) {
//
this.play()
//
} else if (res.cancel) {
//
this.pause()
//
}
//
}
//
})
//
}
//
})
},
detached
()
{
wx
.
offNetworkStatusChange
()
...
...
learnOnline/config.js
浏览文件 @
a463d7dd
...
...
@@ -3,13 +3,13 @@ const env = 'production'
if
(
env
===
'production'
)
{
module
.
exports
=
{
appVersion
:
'collage_v3.2.
5
'
,
appVersion
:
'collage_v3.2.
7
'
,
apiBaseURL
:
'https://wechat-api.ezijing.com'
,
// 接口请求地址
tenant
:
'collage'
}
}
else
{
module
.
exports
=
{
appVersion
:
'collage_v3.2.
5
'
,
appVersion
:
'collage_v3.2.
7
'
,
apiBaseURL
:
'https://wechat-api2.ezijing.com'
,
// 接口请求地址
tenant
:
'collage'
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论