Commit bb9e5847 by Chao Sun

根据来源判断要不要登录

parent b821d1c2
...@@ -173,12 +173,11 @@ export class LiveComponent implements OnInit { ...@@ -173,12 +173,11 @@ export class LiveComponent implements OnInit {
} }
}; };
// questionnaireSource 为 1 表示 自动评测 // questionnaireSource 为 1 表示 自动评测
if (!param || !param.survey.customerId || param.survey.customerId === 'null' || param.survey.customerId === 'undefined') {
this.loginModalFlag = true;
return;
}
if (sessionStorage.getItem('questionnaireSource') === '1') { if (sessionStorage.getItem('questionnaireSource') === '1') {
if (!param || !param.survey.customerId || param.survey.customerId === 'null' || param.survey.customerId === 'undefined') {
this.loginModalFlag = true;
return;
}
} }
this.commonService.saveCustomerAnwers(param).then(res => { this.commonService.saveCustomerAnwers(param).then(res => {
if (res['success']) { if (res['success']) {
......
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