Commit 8c1c4fb2 by sweet

经纪人项目过来填写问卷不需要填写姓名和手机号

parent 91698862
......@@ -2,7 +2,9 @@ import {Component, OnInit} from '@angular/core';
import {CommonService} from '../common.service'
import {ActivatedRoute, Router} from "@angular/router";
import {environment} from "../../environments/environment";
declare let returnCitySN: any;
@Component({
selector: 'app-live',
templateUrl: './live.component.html',
......@@ -182,11 +184,12 @@ export class LiveComponent implements OnInit {
// 有campaignInfo表示 自动评测
if (sessionStorage.getItem('campaignInfo')) {
const double12_customerInfo = localStorage.getItem('double12_customerInfo') ? JSON.parse(localStorage.getItem('double12_customerInfo')) : null;
if (double12_customerInfo) {
param.survey.customerId = double12_customerInfo.customerId;
const lifeCustomerInfo = localStorage.getItem('lifeCustomerInfo') ? JSON.parse(localStorage.getItem('lifeCustomerInfo')) : null;
if (lifeCustomerInfo) {
param.survey.customerId = lifeCustomerInfo.customerId;
const orderIdParam = {
name: double12_customerInfo.customerName,
customerId: double12_customerInfo.customerId,
name: lifeCustomerInfo.practitionerBasicInfo.name,
customerId: lifeCustomerInfo.customerId,
campaignInfo: {
"campaignCode": JSON.parse(sessionStorage.getItem('campaignInfo'))['campaignCode'],
"campaignTaskCode": JSON.parse(sessionStorage.getItem('campaignInfo'))['campaignTaskCode']
......@@ -197,6 +200,21 @@ export class LiveComponent implements OnInit {
return;
}
}
// if (double12_customerInfo) {
// param.survey.customerId = double12_customerInfo.customerId;
// const orderIdParam = {
// name: double12_customerInfo.customerName,
// customerId: double12_customerInfo.customerId,
// campaignInfo: {
// "campaignCode": JSON.parse(sessionStorage.getItem('campaignInfo'))['campaignCode'],
// "campaignTaskCode": JSON.parse(sessionStorage.getItem('campaignInfo'))['campaignTaskCode']
// }
// }
// if (type !== 1 && (JSON.parse(sessionStorage.getItem('campaignInfo'))['campaignTaskCode'] == '12task1' || JSON.parse(sessionStorage.getItem('campaignInfo'))['campaignTaskCode'] == 'AItask1')) {
// this.getOrderId(orderIdParam);
// return;
// }
// }
if (!param || !param.survey.customerId || param.survey.customerId === 'null' || param.survey.customerId === 'undefined') {
this.loginModalFlag = true;
return;
......
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