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
295f0bea
Commit
295f0bea
authored
Jun 04, 2020
by
Chao Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问卷分享bug修复
parent
ecc7b134
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
22 deletions
+35
-22
questionnaire/src/app/live/live.component.css
+2
-2
questionnaire/src/app/live/live.component.html
+7
-3
questionnaire/src/app/live/live.component.ts
+15
-11
questionnaire/src/app/transit/transit.component.html
+1
-0
questionnaire/src/app/transit/transit.component.ts
+10
-6
No files found.
questionnaire/src/app/live/live.component.css
View file @
295f0bea
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
.loginInBox
.closeBtn
{
.loginInBox
.closeBtn
{
position
:
relative
;
position
:
relative
;
top
:
25
%
;
top
:
33
%
;
width
:
40px
;
width
:
40px
;
font-size
:
32px
;
font-size
:
32px
;
color
:
#fff
;
color
:
#fff
;
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
width
:
90%
;
width
:
90%
;
margin
:
0
auto
;
margin
:
0
auto
;
position
:
relative
;
position
:
relative
;
top
:
18
%
;
top
:
30
%
;
background
:
#fff
;
background
:
#fff
;
padding
:
20px
10px
;
padding
:
20px
10px
;
}
}
...
...
questionnaire/src/app/live/live.component.html
View file @
295f0bea
...
@@ -43,7 +43,8 @@
...
@@ -43,7 +43,8 @@
<div
class=
'inputBox'
>
<div
class=
'inputBox'
>
<!--获取手机号 -->
<!--获取手机号 -->
<div
class=
"mobileNoSection inputControl"
>
<div
class=
"mobileNoSection inputControl"
>
<input
type=
'tel'
maxlength=
"11"
name=
"mobileNo"
placeholder=
"您的手机号"
[(
ngModel
)]="
loginData
.
mobileNo
"
(
blur
)="
scrollTo
()"
/>
<input
type=
'tel'
maxlength=
"11"
name=
"mobileNo"
placeholder=
"您的手机号"
[(
ngModel
)]="
loginData
.
mobileNo
"
(
blur
)="
scrollTo
()"
/>
<div
class=
'autoGet'
>
<div
class=
'autoGet'
>
<button
class=
'getPhoneNumber'
(
click
)="
sendCode
()"
[
disabled
]="
sendBtnFlag
"
>
<button
class=
'getPhoneNumber'
(
click
)="
sendCode
()"
[
disabled
]="
sendBtnFlag
"
>
{{timeHtml}}
{{timeHtml}}
...
@@ -52,7 +53,8 @@
...
@@ -52,7 +53,8 @@
</div>
</div>
<!--获取验证码 -->
<!--获取验证码 -->
<div
class=
"codeSection inputControl"
>
<div
class=
"codeSection inputControl"
>
<input
type=
'tel'
maxlength=
"4"
name=
"code"
placeholder=
"短信验证码"
[(
ngModel
)]="
loginData
.
code
"
(
blur
)="
scrollTo
()"
/>
<input
type=
'tel'
maxlength=
"4"
name=
"code"
placeholder=
"短信验证码"
[(
ngModel
)]="
loginData
.
code
"
(
blur
)="
scrollTo
()"
/>
</div>
</div>
<!--姓名-->
<!--姓名-->
<div
class=
"inputControl"
>
<div
class=
"inputControl"
>
...
@@ -70,7 +72,9 @@
...
@@ -70,7 +72,9 @@
<!--无法自动评测提示窗口START-->
<!--无法自动评测提示窗口START-->
<div
class=
"autoEvaluationContainer"
*
ngIf=
"autoEvaluationModal"
>
<div
class=
"autoEvaluationContainer"
*
ngIf=
"autoEvaluationModal"
>
<div
class=
"autoEvaluationContent"
>
<div
class=
"autoEvaluationContent"
>
<p>
抱歉,您的情况无法进行自动评测和方案制定,我们的客服会联系您进行人工评测和制定方案。
</p>
<!-- <p>抱歉,您的情况无法进行自动评测和方案制定,我们的客服会联系您进行人工评测和制定方案。</p> -->
<p>
抱歉,您提交的健康状况有部分异常,系统无法帮您自动生成保险方案。
</p>
<p>
我们的保险顾问会主动联系您定制方案,谢谢!
</p>
<div><button
(
click
)="
confirm
()"
>
确认
</button></div>
<div><button
(
click
)="
confirm
()"
>
确认
</button></div>
</div>
</div>
</div>
</div>
...
...
questionnaire/src/app/live/live.component.ts
View file @
295f0bea
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
CommonService
}
from
'../common.service'
import
{
CommonService
}
from
'../common.service'
import
{
ActivatedRoute
,
Router
}
from
"@angular/router"
;
import
{
ActivatedRoute
,
Router
}
from
"@angular/router"
;
import
{
environment
}
from
"../../environments/environment"
;
import
{
environment
}
from
"../../environments/environment"
;
declare
let
returnCitySN
:
any
;
// declare let returnCitySN: any;
let
returnCitySN
:
any
=
{
cip
:
''
,
cname
:
''
};
@
Component
({
@
Component
({
selector
:
'app-live'
,
selector
:
'app-live'
,
...
@@ -52,7 +56,7 @@ export class LiveComponent implements OnInit {
...
@@ -52,7 +56,7 @@ export class LiveComponent implements OnInit {
questions
:
[{
questions
:
[{
questionId
:
''
,
questionId
:
''
,
questionName
:
''
,
questionName
:
''
,
options
:
[{
optionId
:
''
,
optionName
:
''
,
optionOrder
:
''
,
selected
:
''
}]
options
:
[{
optionId
:
''
,
optionName
:
''
,
optionOrder
:
''
,
selected
:
''
}]
}],
}],
};
};
this
.
loginData
=
{
this
.
loginData
=
{
...
@@ -68,7 +72,7 @@ export class LiveComponent implements OnInit {
...
@@ -68,7 +72,7 @@ export class LiveComponent implements OnInit {
this
.
tipsFlag
=
false
;
this
.
tipsFlag
=
false
;
this
.
lastQuestions
=
this
.
commonService
.
todosCopy
.
filter
(
item
=>
item
.
pageId
==
16
).
pop
();
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'
])
{
if
(
res
[
'success'
])
{
this
.
provinceList
=
res
[
'data'
].
provinceList
;
this
.
provinceList
=
res
[
'data'
].
provinceList
;
}
}
...
@@ -221,6 +225,7 @@ export class LiveComponent implements OnInit {
...
@@ -221,6 +225,7 @@ export class LiveComponent implements OnInit {
return
;
return
;
}
}
}
}
this
.
commonService
.
saveCustomerAnwers
(
param
).
then
(
res
=>
{
this
.
commonService
.
saveCustomerAnwers
(
param
).
then
(
res
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
if
(
!
sessionStorage
.
getItem
(
'campaignInfo'
))
{
if
(
!
sessionStorage
.
getItem
(
'campaignInfo'
))
{
...
@@ -245,7 +250,6 @@ export class LiveComponent implements OnInit {
...
@@ -245,7 +250,6 @@ export class LiveComponent implements OnInit {
// 跳转到方案详情页面
// 跳转到方案详情页面
window
.
location
.
href
=
`
${
environment
.
hostName
}
/customizedPlanList/3?orderId=
${
sessionStorage
.
getItem
(
'orderId'
)}
&customerId=
${
sessionStorage
.
getItem
(
'customerId'
)}
&leftTimes=1`
;
window
.
location
.
href
=
`
${
environment
.
hostName
}
/customizedPlanList/3?orderId=
${
sessionStorage
.
getItem
(
'orderId'
)}
&customerId=
${
sessionStorage
.
getItem
(
'customerId'
)}
&leftTimes=1`
;
}
}
}
}
}
}
}
}
...
@@ -278,7 +282,7 @@ export class LiveComponent implements OnInit {
...
@@ -278,7 +282,7 @@ export class LiveComponent implements OnInit {
this
.
errorModal
(
'手机号码输入有误'
);
this
.
errorModal
(
'手机号码输入有误'
);
return
;
return
;
}
else
if
(
this
.
loginData
.
mobileNo
)
{
}
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'
])
{
if
(
res
[
'success'
])
{
this
.
sendBtnFlag
=
true
;
this
.
sendBtnFlag
=
true
;
this
.
errorModal
(
'发送成功'
);
this
.
errorModal
(
'发送成功'
);
...
@@ -332,7 +336,7 @@ export class LiveComponent implements OnInit {
...
@@ -332,7 +336,7 @@ export class LiveComponent implements OnInit {
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
// 登录
// 登录
this
.
commonService
.
login
({
'mobileNo'
:
this
.
loginData
.
mobileNo
}).
then
(
response
=>
{
this
.
commonService
.
login
({
'mobileNo'
:
this
.
loginData
.
mobileNo
}).
then
(
response
=>
{
if
(
response
[
'success'
])
{
if
(
response
[
'success'
])
{
const
double12_customerInfo
=
{
const
double12_customerInfo
=
{
customerId
:
response
[
'data'
][
'customerId'
],
customerId
:
response
[
'data'
][
'customerId'
],
...
@@ -450,7 +454,7 @@ export class LiveComponent implements OnInit {
...
@@ -450,7 +454,7 @@ export class LiveComponent implements OnInit {
},
1000
)
},
1000
)
}
}
// 解决IOSinput框被顶上去的bug
// 解决IOSinput框被顶上去的bug
scrollTo
()
{
scrollTo
()
{
window
.
scrollTo
(
0
,
0
);
window
.
scrollTo
(
0
,
0
);
}
}
...
...
questionnaire/src/app/transit/transit.component.html
View file @
295f0bea
<div
class=
"limbo"
>
<div
class=
"limbo"
>
<img
*
ngIf=
"advFlag"
src=
"assets/images/first.jpg"
>
<img
*
ngIf=
"advFlag"
src=
"assets/images/first.jpg"
>
<div
*
ngIf=
"!advFlag"
>
<div
*
ngIf=
"!advFlag"
>
<div
class=
"title"
*
ngIf=
"!picFlag"
>
<div
class=
"title"
*
ngIf=
"!picFlag"
>
<img
src=
"assets/images/bg_1.png"
/>
<img
src=
"assets/images/bg_1.png"
/>
...
...
questionnaire/src/app/transit/transit.component.ts
View file @
295f0bea
import
{
ChangeDetectorRef
,
Component
,
OnInit
}
from
'@angular/core'
;
import
{
ChangeDetectorRef
,
Component
,
OnInit
}
from
'@angular/core'
;
import
{
CommonService
}
from
"../common.service"
;
import
{
CommonService
}
from
"../common.service"
;
import
{
ActivatedRoute
}
from
"@angular/router"
;
import
{
ActivatedRoute
,
Router
}
from
"@angular/router"
;
import
{
environment
}
from
"../../environments/environment"
;
import
{
environment
}
from
"../../environments/environment"
;
import
set
=
Reflect
.
set
;
import
{
Location
}
from
'@angular/common'
;
declare
const
wx
:
any
;
declare
const
wx
:
any
;
@
Component
({
@
Component
({
selector
:
'app-transit'
,
selector
:
'app-transit'
,
...
@@ -17,11 +18,14 @@ export class TransitComponent implements OnInit {
...
@@ -17,11 +18,14 @@ export class TransitComponent implements OnInit {
deviceType
:
number
;
deviceType
:
number
;
dialogTips
:
string
;
dialogTips
:
string
;
advFlag
:
boolean
=
true
;
advFlag
:
boolean
=
true
;
constructor
(
private
commonService
:
CommonService
,
private
activatedRoute
:
ActivatedRoute
,
private
changeDetectorRef
:
ChangeDetectorRef
)
{
constructor
(
private
location
:
Location
,
private
router
:
Router
,
private
commonService
:
CommonService
,
private
activatedRoute
:
ActivatedRoute
,
private
changeDetectorRef
:
ChangeDetectorRef
)
{
}
}
ngOnInit
()
{
ngOnInit
()
{
this
.
customerId
=
this
.
activatedRoute
.
snapshot
.
queryParams
[
'customerId'
];
this
.
customerId
=
this
.
activatedRoute
.
snapshot
.
queryParams
[
'customerId'
];
if
(
this
.
customerId
)
{
this
.
router
.
navigateByUrl
(
`/index?campaign=AIRobot&task=AItask1`
)
}
this
.
commonService
.
surveyInfo
().
then
();
this
.
commonService
.
surveyInfo
().
then
();
const
activityCode
=
this
.
commonService
.
getQueryString
(
'activityCode'
);
const
activityCode
=
this
.
commonService
.
getQueryString
(
'activityCode'
);
if
(
activityCode
==
'mmh'
)
{
if
(
activityCode
==
'mmh'
)
{
...
@@ -36,9 +40,10 @@ export class TransitComponent implements OnInit {
...
@@ -36,9 +40,10 @@ export class TransitComponent implements OnInit {
}
}
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
advFlag
=
false
;
this
.
advFlag
=
false
;
},
1000
)
},
3000
)
console
.
log
(
this
.
activatedRoute
);
console
.
log
(
this
.
location
)
}
}
// 分享给朋友
// 分享给朋友
wxShare
()
{
wxShare
()
{
this
.
wxShareFlag
=
true
;
this
.
wxShareFlag
=
true
;
...
@@ -96,7 +101,6 @@ export class TransitComponent implements OnInit {
...
@@ -96,7 +101,6 @@ export class TransitComponent implements OnInit {
wx
.
onMenuShareQZone
(
shareData
);
// 分享到QQ空间
wx
.
onMenuShareQZone
(
shareData
);
// 分享到QQ空间
});
});
});
});
}
else
{
}
else
{
this
.
defaultWxShare
();
this
.
defaultWxShare
();
}
}
...
...
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