Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
allCampaign
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
allCampaign
Commits
8c1c4fb2
Commit
8c1c4fb2
authored
Mar 06, 2020
by
sweet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人项目过来填写问卷不需要填写姓名和手机号
parent
91698862
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
questionnaire/src/app/live/live.component.ts
+22
-4
No files found.
questionnaire/src/app/live/live.component.ts
View file @
8c1c4fb2
...
...
@@ -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
.
customerN
ame
,
customerId
:
double12_c
ustomerInfo
.
customerId
,
name
:
lifeCustomerInfo
.
practitionerBasicInfo
.
n
ame
,
customerId
:
lifeC
ustomerInfo
.
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment