Commit 2ad6f63e by 陆志强

feat: 适配活动绑定

parent 35184cca
......@@ -49,24 +49,21 @@ export const actions = {
const { title, intro, question, isJoined, status, referUrl } = data
// 设置网页标题
document.title = title || '调查问卷'
// 如果不是iframe内嵌模式则弹窗
if (!isIframe) {
// 鉴权成功则转跳接口返回的对应网址
if (referUrl && Number(status) === ACTIVITY_STATE.end) {
Dialog.alert({
message: '活动已结束,点击“确认”可以直接观看直播',
}).then(() => {
window.location.href = referUrl
})
}
// 鉴权成功则转跳接口返回的对应网址
if (referUrl && !!isJoined && Number(status) === ACTIVITY_STATE.start) {
Dialog.alert({
message: '您已提交过问卷,点击“确认”可以直接观看直播',
}).then(() => {
window.location.href = referUrl
})
}
// 鉴权成功则转跳接口返回的对应网址
if (referUrl && Number(status) === ACTIVITY_STATE.end) {
Dialog.alert({
message: '活动已结束,点击“确认”可以直接返回',
}).then(() => {
window.location.href = referUrl
})
}
// 鉴权成功则转跳接口返回的对应网址
if (referUrl && !!isJoined && Number(status) === ACTIVITY_STATE.start) {
Dialog.alert({
message: '您已提交过问卷,点击“确认”可以直接返回',
}).then(() => {
window.location.href = referUrl
})
}
commit('SET_QUESTIONNAIREINFO', data)
const formatQuestion = question.map((item) => {
......
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 sign in to comment