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

merge...

...@@ -100,20 +100,14 @@ const getCurrentChapterDetail = (vid, videoType,callback) => { ...@@ -100,20 +100,14 @@ const getCurrentChapterDetail = (vid, videoType,callback) => {
}, },
callback: function (res) { callback: function (res) {
// 进入视频,开始读取视频时,存储 vid、log_key // 进入视频,开始读取视频时,存储 vid、log_key
wx.setStorageSync({ wx.setStorageSync('video_001', { vid: vid, log_key: res.data.log_key || ''})
key: 'video_001',
data: {
vid: vid,
log_key: res.data.log_key || ''
}
})
let json = { let json = {
video: { video: {
src: videoType == 3 ? res.data.video &&res.data.video.SD : res.data.video[0] && res.data.video[0].playurl, src: res.data.video.SD,
spareSrc: '' // 正式环境时,需要将 contentVideo 中 spareSrc 改成 src spareSrc: '' // 正式环境时,需要将 contentVideo 中 spareSrc 改成 src
}, },
audio: { audio: {
src: videoType == 3 ? res.data.video &&res.data.video.SQ : res.data.audio[0].url, src: res.data.video.SQ,
poster: res.data.ppts && res.data.ppts[0] && res.data.ppts[0].ppt_url || '' poster: res.data.ppts && res.data.ppts[0] && res.data.ppts[0].ppt_url || ''
}, },
image: { image: {
...@@ -131,9 +125,10 @@ const getCurrentChapterDetail = (vid, videoType,callback) => { ...@@ -131,9 +125,10 @@ const getCurrentChapterDetail = (vid, videoType,callback) => {
/* 结束时,调用接口 */ /* 结束时,调用接口 */
const endVideo = () => { const endVideo = () => {
let json = wx.getStorageSync('video_001') || { vid: '', log_key: '' } let json = wx.getStorageSync('video_001') || { vid: '', log_key: '' }
if (vid !== '') { if (json.vid !== '') {
util.requestApi({ util.requestApi({
url: util.config.URL_PATH1 + '/v2/education/end-aliyun-video-streaming', url: util.config.URL_PATH1 + '/v2/education/end-aliyun-video-streaming',
method: 'POST',
data: json, data: json,
callback: function (res) {} callback: function (res) {}
}) })
......
...@@ -2,9 +2,13 @@ import * as api from './api/base.js' ...@@ -2,9 +2,13 @@ import * as api from './api/base.js'
App({ App({
store: { store: {
pageshow: false,
user: {} // 用户信息 user: {} // 用户信息
}, },
onLaunch: function () {}, onLaunch: function () {},
onPageNotFound() {
wx.redirectTo({ url: 'pages/login/index' })
},
checkPageshow(callback) { checkPageshow(callback) {
if (this.store.pageshow) { if (this.store.pageshow) {
callback && callback(true) callback && callback(true)
......
...@@ -16,9 +16,7 @@ ...@@ -16,9 +16,7 @@
"pages/learnSystem/my/my", "pages/learnSystem/my/my",
"pages/learnSystem/myScore/myScore", "pages/learnSystem/myScore/myScore",
"pages/learnSystem/myDiscuss/myDiscuss", "pages/learnSystem/myDiscuss/myDiscuss",
"pages/learnSystem/discussDetail/discussDetail", "pages/learnSystem/discussDetail/discussDetail"
"pages/videoPlayer/AllBugPages/bugPage1/bugPage1",
"pages/videoPlayer/AllBugPages/test"
], ],
"window": { "window": {
"navigationBarBackgroundColor": "#fff", "navigationBarBackgroundColor": "#fff",
......
...@@ -3,14 +3,14 @@ const env = 'production' ...@@ -3,14 +3,14 @@ const env = 'production'
if (env === 'production') { if (env === 'production') {
module.exports = { module.exports = {
appVersion: 'survey_v3.2.0', appVersion: 'survey_v3.2.2',
apiBaseURL: 'https://wechat-api.ezijing.com', // 接口请求地址 apiBaseURL: 'https://wechat-api.ezijing.com', // 接口请求地址
tenant: 'sofia' tenant: 'sofia'
} }
} else { } else {
module.exports = { module.exports = {
appVersion: 'survey_v3.2.0', appVersion: 'survey_v3.2.2',
apiBaseURL: 'https://wechat-api.ezijing.com', // 接口请求地址 apiBaseURL: 'https://wechat-api2.ezijing.com', // 接口请求地址
tenant: 'sofia' tenant: 'sofia'
} }
} }
...@@ -28,7 +28,6 @@ Audio.prototype = { ...@@ -28,7 +28,6 @@ Audio.prototype = {
RATE: ['0.5', '0.8', '1.0', '1.25', '1.5'], RATE: ['0.5', '0.8', '1.0', '1.25', '1.5'],
init: function (src, _that) { init: function (src, _that) {
let _auCtx = wx.createInnerAudioContext() let _auCtx = wx.createInnerAudioContext()
wx.setInnerAudioOption({ obeyMuteSwitch: false })
_auCtx.autoplay = false _auCtx.autoplay = false
_auCtx.src = src _auCtx.src = src
/* 使用绑定事件,代替wxml中的事件绑定 */ /* 使用绑定事件,代替wxml中的事件绑定 */
......
...@@ -571,6 +571,7 @@ Page({ ...@@ -571,6 +571,7 @@ Page({
_rProgress.pt = parseInt(_rProgress.pt) + (10000 / 1000) * 1.5 _rProgress.pt = parseInt(_rProgress.pt) + (10000 / 1000) * 1.5
_rProgress.cpt = tempTime _rProgress.cpt = tempTime
_rProgress.mpt = tempTime > _rProgress.mpt ? tempTime : _rProgress.mpt _rProgress.mpt = tempTime > _rProgress.mpt ? tempTime : _rProgress.mpt
_rProgress.ps = _rProgress.ps || []
ChapterApi.updateProgress(Object.assign({}, _rProgress, { ps: _rProgress.ps.join(',') })) ChapterApi.updateProgress(Object.assign({}, _rProgress, { ps: _rProgress.ps.join(',') }))
this.realTimeProgress.ps = [] this.realTimeProgress.ps = []
} }
......
{ {
"description": "项目配置文件。", "description": "项目配置文件。",
"setting": { "setting": {
"urlCheck": false, "urlCheck": true,
"es6": true, "es6": true,
"enhance": true, "enhance": true,
"postcss": true, "postcss": true,
...@@ -20,14 +20,17 @@ ...@@ -20,14 +20,17 @@
"compileHotReLoad": false, "compileHotReLoad": false,
"useMultiFrameRuntime": false, "useMultiFrameRuntime": false,
"useApiHook": true, "useApiHook": true,
"useApiHostProcess": true,
"babelSetting": { "babelSetting": {
"ignore": [], "ignore": [],
"disablePlugins": [], "disablePlugins": [],
"outputPath": "" "outputPath": ""
}, },
"bundle": false,
"useIsolateContext": true, "useIsolateContext": true,
"useCompilerModule": true, "useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false, "userConfirmedUseCompilerModuleSwitch": false,
"userConfirmedBundleSwitch": false,
"packNpmManually": false, "packNpmManually": false,
"packNpmRelationList": [], "packNpmRelationList": [],
"minifyWXSS": true "minifyWXSS": true
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* 所有相关配置项 * 所有相关配置项
*/ */
const url_test = { const url_test = {
URL_PATH1: 'https://lms-api2.ezijing.com', // 正式域名 - 由于项目变动域名 URL_PATH1: 'https://wechat-api2.ezijing.com/api/lms', // 正式域名 - 由于项目变动域名
URL_PATH2: 'https://sso2.ezijing.com', // 正式域名 - 由于项目变动域名 URL_PATH2: 'https://wechat-api2.ezijing.com/api', // 正式域名 - 由于项目变动域名
outSiteLink: 'https://e-learning.ezijing.com', // 正式外链 outSiteLink: 'https://e-learning.ezijing.com', // 正式外链
tenant: 'sofia', tenant: 'sofia',
version: '3.2.0' version: '3.2.0'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论