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
e48ad740
Commit
e48ad740
authored
Nov 27, 2019
by
Chao Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化没有疾病
parent
c97681d4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
questionnaire/src/app/live/live.component.ts
+10
-10
No files found.
questionnaire/src/app/live/live.component.ts
View file @
e48ad740
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
CommonService
}
from
'../common.service'
import
{
ActivatedRoute
,
Router
}
from
"@angular/router"
;
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
CommonService
}
from
'../common.service'
import
{
ActivatedRoute
,
Router
}
from
"@angular/router"
;
@
Component
({
selector
:
'app-live'
,
...
...
@@ -36,9 +36,9 @@ export class LiveComponent implements OnInit {
isDisease
:
boolean
=
true
;
// 不能进行自动评测
autoEvaluationModal
:
boolean
;
selfDisease
:
boolean
=
tru
e
;
spouseDisease
:
boolean
=
tru
e
;
childrenDisease
:
boolean
=
tru
e
;
selfDisease
:
boolean
=
fals
e
;
spouseDisease
:
boolean
=
fals
e
;
childrenDisease
:
boolean
=
fals
e
;
constructor
(
private
commonService
:
CommonService
,
private
router
:
Router
,
...
...
@@ -49,7 +49,7 @@ export class LiveComponent implements OnInit {
questions
:
[{
questionId
:
''
,
questionName
:
''
,
options
:
[{
optionId
:
''
,
optionName
:
''
,
optionOrder
:
''
,
selected
:
''
}]
options
:
[{
optionId
:
''
,
optionName
:
''
,
optionOrder
:
''
,
selected
:
''
}]
}],
};
this
.
loginData
=
{
...
...
@@ -65,7 +65,7 @@ export class LiveComponent implements OnInit {
this
.
tipsFlag
=
false
;
this
.
lastQuestions
=
this
.
commonService
.
todosCopy
.
filter
(
item
=>
item
.
pageId
==
16
).
pop
();
// 获取省份
this
.
commonService
.
provinceqry
({
insurerId
:
11
}).
then
(
res
=>
{
this
.
commonService
.
provinceqry
({
insurerId
:
11
}).
then
(
res
=>
{
if
(
res
[
'success'
])
{
this
.
provinceList
=
res
[
'data'
].
provinceList
;
}
...
...
@@ -234,7 +234,7 @@ export class LiveComponent implements OnInit {
this
.
errorModal
(
'手机号码输入有误'
);
return
;
}
else
if
(
this
.
loginData
.
mobileNo
)
{
this
.
commonService
.
verificationCode
({
mobileNo
:
this
.
loginData
.
mobileNo
,
type
:
'1'
}).
then
(
res
=>
{
this
.
commonService
.
verificationCode
({
mobileNo
:
this
.
loginData
.
mobileNo
,
type
:
'1'
}).
then
(
res
=>
{
if
(
res
[
'success'
])
{
this
.
sendBtnFlag
=
true
;
this
.
errorModal
(
'发送成功'
);
...
...
@@ -278,7 +278,7 @@ export class LiveComponent implements OnInit {
}).
then
(
res
=>
{
if
(
res
[
'success'
])
{
// 登录
this
.
commonService
.
login
({
'mobileNo'
:
this
.
loginData
.
mobileNo
}).
then
(
response
=>
{
this
.
commonService
.
login
({
'mobileNo'
:
this
.
loginData
.
mobileNo
}).
then
(
response
=>
{
if
(
response
[
'success'
])
{
// 登录成功
this
.
loginModalFlag
=
false
;
...
...
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