Commit d242b4c7 authored by liupengfei's avatar liupengfei

去测试

parent 9c9474bf
This diff is collapsed.
This diff is collapsed.
......@@ -65,13 +65,14 @@ interface appInfo {
}
// 获取平台信息, app相关的,slotId , ip。
export function getAppInfo():Promise<appInfo> {
// const tVideoSlotId = getUrl('tVideoSlotId');
const tSlotId = getUrl('tSlotId');
console.log(tSlotId);
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();
// }).then(res => {
// console.log(res);
// })
// });
resolve({
appId: "ZG08HD",
appPackage: "com.test",
......
......@@ -16,6 +16,11 @@ window['playingVideoClose'] = () => {
playBg();
return '0';
}
if (videoIns && videoIns.isPlayEnd) {
videoIns.player.emit('$videoClose');
playBg();
return '0'
}
return '1';
}
export const handleVideo = (
......@@ -34,7 +39,7 @@ export const handleVideo = (
Loading.instace.hide();
if (res) {
videoIns.play().then(() => {
completeCallback();
// completeCallback();
})
videoIns.player.event.once('$videoClose', () => {
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