Commit d242b4c7 authored by liupengfei's avatar liupengfei

去测试

parent 9c9474bf
This diff is collapsed.
This diff is collapsed.
...@@ -65,13 +65,14 @@ interface appInfo { ...@@ -65,13 +65,14 @@ interface appInfo {
} }
// 获取平台信息, app相关的,slotId , ip。 // 获取平台信息, app相关的,slotId , ip。
export function getAppInfo():Promise<appInfo> { export function getAppInfo():Promise<appInfo> {
// const tVideoSlotId = getUrl('tVideoSlotId'); const tSlotId = getUrl('tSlotId');
console.log(tSlotId);
return new Promise((resolve) => { return new Promise((resolve) => {
// window.fetch(`https://activity.tuiatest.cn/commercialloanv/common/config/video/get?slotId=${tVideoSlotId}`).then(res => { // window.fetch(`https://activity.tuiatest.cn/commercialloanv/common/config/video/get?slotId=${tSlotId}`).then(res => {
// return res.json(); // return res.json();
// }).then(res => { // }).then(res => {
// console.log(res); // console.log(res);
// }) // });
resolve({ resolve({
appId: "ZG08HD", appId: "ZG08HD",
appPackage: "com.test", appPackage: "com.test",
......
...@@ -16,6 +16,11 @@ window['playingVideoClose'] = () => { ...@@ -16,6 +16,11 @@ window['playingVideoClose'] = () => {
playBg(); playBg();
return '0'; return '0';
} }
if (videoIns && videoIns.isPlayEnd) {
videoIns.player.emit('$videoClose');
playBg();
return '0'
}
return '1'; return '1';
} }
export const handleVideo = ( export const handleVideo = (
...@@ -34,7 +39,7 @@ export const handleVideo = ( ...@@ -34,7 +39,7 @@ export const handleVideo = (
Loading.instace.hide(); Loading.instace.hide();
if (res) { if (res) {
videoIns.play().then(() => { videoIns.play().then(() => {
completeCallback(); // completeCallback();
}) })
videoIns.player.event.once('$videoClose', () => { videoIns.player.event.once('$videoClose', () => {
returnCallback(true); returnCallback(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment