提交 5c8b48ec authored 作者: 王鹏飞's avatar 王鹏飞

merge...

...@@ -66,22 +66,22 @@ module.exports = Behavior({ ...@@ -66,22 +66,22 @@ module.exports = Behavior({
lifetimes: { lifetimes: {
attached() { attached() {
this.createPlayer() this.createPlayer()
wx.onNetworkStatusChange(res => { // wx.onNetworkStatusChange(res => {
if (res.networkType !== 'wifi' && this.data.status === 'playing') { // if (res.networkType !== 'wifi' && this.data.status === 'playing') {
this.pause() // this.pause()
wx.showModal({ // wx.showModal({
content: '你正在使用非WIFI网络,播放将产生流量费用', // content: '你正在使用非WIFI网络,播放将产生流量费用',
confirmText: '继续播放', // confirmText: '继续播放',
success: res => { // success: res => {
if (res.confirm) { // if (res.confirm) {
this.play() // this.play()
} else if (res.cancel) { // } else if (res.cancel) {
this.pause() // this.pause()
} // }
} // }
}) // })
} // }
}) // })
}, },
detached() { detached() {
wx.offNetworkStatusChange() wx.offNetworkStatusChange()
......
...@@ -3,13 +3,13 @@ const env = 'production' ...@@ -3,13 +3,13 @@ const env = 'production'
if (env === 'production') { if (env === 'production') {
module.exports = { module.exports = {
appVersion: 'enterprise_v3.2.5', appVersion: 'enterprise_v3.2.7',
apiBaseURL: 'https://wechat-api.ezijing.com', // 接口请求地址 apiBaseURL: 'https://wechat-api.ezijing.com', // 接口请求地址
tenant: 'classes' tenant: 'classes'
} }
} else { } else {
module.exports = { module.exports = {
appVersion: 'enterprise_v3.2.5', appVersion: 'enterprise_v3.2.7',
apiBaseURL: 'https://wechat-api2.ezijing.com', // 接口请求地址 apiBaseURL: 'https://wechat-api2.ezijing.com', // 接口请求地址
tenant: 'classes' tenant: 'classes'
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论