Authored by yyq

app fix

... ... @@ -79,10 +79,18 @@ $('#qs-list').on('click', 'li', function() {
getQuestionStatus({uid: qs.uid, id: data.id}, function(resData) {
if (resData.code === 200) {
let href;
if (qs && qs.uid) {
window.location.href = DETAIL_URI + '/' + data.id + '?uid=' + qs.uid;
href = DETAIL_URI + '/' + data.id + '?uid=' + qs.uid;
} else {
href = DETAIL_URI + '/' + data.id;
}
if (yoho && yoho.isApp) {
yoho.goH5(href);
} else {
window.location.href = DETAIL_URI + '/' + data.id;
window.location.href = href;
}
} else if (resData.code === 206) {
if (yoho && yoho.isApp) {
... ... @@ -96,7 +104,11 @@ $('#qs-list').on('click', 'li', function() {
tipDialog.show('调查问卷已成功提交,<br>感谢您的帮助!');
}
} else if (resData.message) {
window.location.href = DETAIL_URI + '/0';
if (yoho && yoho.isApp) {
yoho.goH5(DETAIL_URI + '/0');
} else {
window.location.href = DETAIL_URI + '/0';
}
}
});
});
... ...