|
|
|
@ -27,11 +27,14 @@ Page({ |
|
|
|
popupParams: { |
|
|
|
popupParams: { |
|
|
|
close: true, |
|
|
|
close: true, |
|
|
|
} as any, |
|
|
|
} as any, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
answer: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
videoContext: {} as WechatMiniprogram.VideoContext, |
|
|
|
videoContext: {} as WechatMiniprogram.VideoContext, |
|
|
|
onLoad(options) { |
|
|
|
onLoad(options) { |
|
|
|
this.setData({ |
|
|
|
this.setData({ |
|
|
|
id: options.id, |
|
|
|
id: options.id, |
|
|
|
|
|
|
|
answer: options.answer === '1', |
|
|
|
}) |
|
|
|
}) |
|
|
|
if (options.scene) { |
|
|
|
if (options.scene) { |
|
|
|
const optionsScene: any = parseScene(options.scene) |
|
|
|
const optionsScene: any = parseScene(options.scene) |
|
|
|
@ -152,6 +155,9 @@ Page({ |
|
|
|
}, |
|
|
|
}, |
|
|
|
currentVideoSrc: res.ReplayVideoUrl, |
|
|
|
currentVideoSrc: res.ReplayVideoUrl, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
if (this.data.answer && res.QuestionnaireUrl) { |
|
|
|
|
|
|
|
this.handleAnswer() |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleLightVideo(e) { |
|
|
|
handleLightVideo(e) { |
|
|
|
|