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
820f984b
Commit
820f984b
authored
Dec 17, 2019
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问卷修改
parent
010ebf12
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
70 additions
and
19 deletions
+70
-19
2019Double12/css/style.css
+14
-1
2019Double12/images/YDL.png
+0
-0
2019Double12/index.html
+16
-6
2019Double12/js/base.js
+13
-0
questionnaire/src/app/live/live.component.ts
+21
-9
questionnaire/src/environments/environment.prod.ts
+2
-1
questionnaire/src/environments/environment.stage.ts
+2
-1
questionnaire/src/environments/environment.ts
+2
-1
No files found.
2019Double12/css/style.css
View file @
820f984b
...
...
@@ -177,6 +177,7 @@ body .layui-m-layer-msg .layui-m-layercont {
background
:
rgba
(
0
,
0
,
0
,
0.5
);
display
:
none
;
margin
:
0
auto
;
z-index
:
3
;
}
#luckDrawModal
.luckDrawContent
{
...
...
@@ -405,6 +406,7 @@ body .layui-m-layer-msg .layui-m-layercont {
}
.taskListsContainer
ul
>
li
{
position
:
relative
;
padding
:
10px
7px
;
border-radius
:
8px
;
border
:
4px
solid
#f5cd9a
;
...
...
@@ -413,6 +415,17 @@ body .layui-m-layer-msg .layui-m-layercont {
}
.taskListsContainer
ul
>
li
.disabledMask
{
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
;
background-color
:
rgba
(
255
,
255
,
255
,
0.5
);
z-index
:
2
;
display
:
none
;
}
.taskListsContainer
ul
>
li
.content
{
background-image
:
linear-gradient
(
#fefae9
,
#fcd5a7
);
border-radius
:
5px
;
...
...
@@ -739,7 +752,7 @@ body .layui-m-layer-msg .layui-m-layercont {
display
:
block
;
}
.completeIcon1
,
.completeIcon2
{
.completeIcon1
,
.completeIcon2
{
position
:
absolute
;
right
:
0
;
top
:
0
;
...
...
2019Double12/images/YDL.png
0 → 100644
View file @
820f984b
34.9 KB
2019Double12/index.html
View file @
820f984b
...
...
@@ -30,11 +30,13 @@
<ul>
<li
id=
"task01"
>
<img
src=
"./images/red_pocket_active.png"
alt=
""
>
<span
style=
"position: absolute;bottom: 5%;color: #ffd899;font-size: 12px;"
class=
"login"
>
点我领取
</span>
<span
style=
"position: absolute;bottom: 5%;color: #ffd899;font-size: 12px;"
class=
"login"
>
点我领取
</span>
</li>
<li
id=
"task02"
>
<img
src=
"./images/red_pocket_active.png"
alt=
""
>
<span
style=
"position: absolute;bottom: 5%;color: #ffd899;font-size: 12px;"
class=
"login"
>
点我领取
</span>
<span
style=
"position: absolute;bottom: 5%;color: #ffd899;font-size: 12px;"
class=
"login"
>
点我领取
</span>
</li>
<li
id=
"task03"
>
<img
src=
"./images/red_pocket_active.png"
alt=
""
>
...
...
@@ -54,7 +56,8 @@
<div
class=
"taskListsContainer"
>
<div>
<ul>
<li>
<li
class=
"risk1"
>
<div
class=
"disabledMask"
></div>
<div
class=
"content"
>
<h5>
<div
style=
"width: 30px;margin-right: 10px;"
>
...
...
@@ -72,7 +75,8 @@
</div>
</div>
</li>
<li>
<li
class=
"risk2"
>
<div
class=
"disabledMask"
></div>
<div
class=
"content"
>
<h5>
<div
style=
"width: 30px;margin-right: 10px;"
>
...
...
@@ -90,7 +94,8 @@
</div>
</div>
</li>
<li>
<li
class=
"risk3"
>
<div
class=
"disabledMask"
></div>
<div
class=
"content"
>
<h5>
<div
style=
"width: 30px;margin-right: 10px;"
>
...
...
@@ -105,7 +110,8 @@
</div>
</div>
</li>
<li>
<li
class=
"risk4"
>
<div
class=
"disabledMask"
></div>
<div
class=
"content"
>
<h5>
<div
style=
"width: 30px;margin-right: 10px;"
>
...
...
@@ -205,6 +211,10 @@
</svg>
</div>
<p
id=
"gift"
style=
"margin: 15px 0;font-weight: bold;"
></p>
<div
class=
"qrcodeBox"
style=
"width: 150px;height: 150px;"
>
<img
src=
"./images/YDL.png"
alt=
"银盾保险在线"
>
</div>
<p
style=
"font-size: 15px;font-weight: bold;color: #d81e06;"
><strong>
扫码关注公众号【银盾保险在线】,回复“红包”领取你的中奖红包
</strong></p>
<p
style=
"font-size:14px;"
>
中奖用户可在“银盾保险在线”微信公众号中使用活动注册手机号登录 “我的—我的奖品”查看中奖详情。
</p>
<div
class=
"close"
>
<button
style=
"font-size: 15px;"
>
做任务再获开红包机会
</button>
...
...
2019Double12/js/base.js
View file @
820f984b
...
...
@@ -489,10 +489,15 @@ $(function () {
}
else
{
// 总共还剩多少红包
$
(
'#giftSum'
).
html
(
activityInfo
.
activityGiftInfo
.
giftSum
);
if
(
Number
(
activityInfo
.
activityGiftInfo
.
giftSum
)
<
0
){
$
(
'#giftSum'
).
html
(
0
);}
task01
=
activityTaskInfoList
.
filter
(
item
=>
item
.
taskCode
===
'12task1'
).
pop
()
||
[];
task02
=
activityTaskInfoList
.
filter
(
item
=>
item
.
taskCode
===
'12task2'
).
pop
()
||
[];
task03
=
activityTaskInfoList
.
filter
(
item
=>
item
.
taskCode
===
'12task3'
).
pop
()
||
[];
task04
=
activityTaskInfoList
.
filter
(
item
=>
item
.
taskCode
===
'12task4'
).
pop
()
||
[];
if
(
task01
.
length
<
1
){
$
(
'.risk1 .disabledMask'
).
show
();}
if
(
task02
.
length
<
1
){
$
(
'.risk2 .disabledMask'
).
show
();}
if
(
task03
.
length
<
1
){
$
(
'.risk3 .disabledMask'
).
show
();}
if
(
task04
.
length
<
1
){
$
(
'.risk4 .disabledMask'
).
show
();}
if
(
task01
&&
task01
.
activityOpportunityUsedInfo
)
{
if
(
task01
.
activityOpportunityUsedInfo
.
leftTimes
>
0
)
{
$
(
'#task01 img'
).
attr
(
'src'
,
'./images/red_pocket_active.png'
)
...
...
@@ -630,6 +635,14 @@ $(function () {
// 开启红包 1可开启 0 不可开启
// drawTimes 是否已经开启
function
openRedPocket
(
status
,
drawTimes
,
campaignTaskCode
)
{
if
(
Number
(
activityInfo
.
activityGiftInfo
.
giftSum
)
<
0
)
{
layer
.
open
({
content
:
'本次红包已领完,下次早点来哦'
,
skin
:
'msg'
,
time
:
5
,
//2秒后自动关闭,
});
return
;
}
if
(
customerId
)
{
//已经登录
}
else
{
...
...
questionnaire/src/app/live/live.component.ts
View file @
820f984b
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
CommonService
}
from
'../common.service'
import
{
ActivatedRoute
,
Router
}
from
"@angular/router"
;
import
{
environment
}
from
"../../environments/environment"
;
@
Component
({
selector
:
'app-live'
,
...
...
@@ -187,7 +188,7 @@ export class LiveComponent implements OnInit {
"campaignTaskCode"
:
JSON
.
parse
(
sessionStorage
.
getItem
(
'campaignInfo'
))[
'campaignTaskCode'
]
}
}
if
(
type
!==
1
&&
JSON
.
parse
(
sessionStorage
.
getItem
(
'campaignInfo'
))[
'campaignTaskCode'
]
==
'12task1'
)
{
if
(
type
!==
1
&&
(
JSON
.
parse
(
sessionStorage
.
getItem
(
'campaignInfo'
))[
'campaignTaskCode'
]
==
'12task1'
||
JSON
.
parse
(
sessionStorage
.
getItem
(
'campaignInfo'
))[
'campaignTaskCode'
]
==
'AItask1'
)
)
{
this
.
getOrderId
(
orderIdParam
);
return
;
}
...
...
@@ -203,19 +204,25 @@ export class LiveComponent implements OnInit {
this
.
router
.
navigate
([
'/transit3'
]);
}
else
{
const
task
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'campaignInfo'
))[
'campaignTaskCode'
];
//判断有无疾病
if
(
this
.
isDisease
&&
task
==
'12task1'
)
{
//双12活动有疾病出弹框,确定后跳活动首页
//
判断有无疾病
if
(
this
.
isDisease
&&
(
task
==
'12task1'
||
task
==
'AItask1'
)
)
{
//
双12活动有疾病出弹框,确定后跳活动首页
this
.
autoEvaluationModal
=
true
;
}
else
{
//无疾病判断如果是任务二或者任务三跳活动首页否则条查看方案
//
无疾病判断如果是任务二或者任务三跳活动首页否则条查看方案
if
(
task
==
'12task2'
||
task
==
'12task3'
)
{
setTimeout
(()
=>
{
window
.
location
.
href
=
`
https://
${
window
.
location
.
host
}
/2019Double12/index.html?customerId=
${
sessionStorage
.
getItem
(
'customerId'
)}
`
;
window
.
location
.
href
=
`
${
environment
.
hostName
}
/2019Double12/index.html?customerId=
${
sessionStorage
.
getItem
(
'customerId'
)}
`
;
},
2000
)
}
else
{
// 跳转到方案详情页面
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/customizedPlanList/3?orderId=
${
sessionStorage
.
getItem
(
'orderId'
)}
&customerId=
${
sessionStorage
.
getItem
(
'customerId'
)}
&leftTimes=1`
;
if
(
task
==
'AItask1'
)
{
// 智能AI
window
.
location
.
href
=
`
${
environment
.
hostName
}
/customizedPlanList/3?orderId=
${
sessionStorage
.
getItem
(
'orderId'
)}
&customerId=
${
sessionStorage
.
getItem
(
'customerId'
)}
`
;
}
else
{
// 跳转到方案详情页面
window
.
location
.
href
=
`
${
environment
.
hostName
}
/customizedPlanList/3?orderId=
${
sessionStorage
.
getItem
(
'orderId'
)}
&customerId=
${
sessionStorage
.
getItem
(
'customerId'
)}
&leftTimes=1`
;
}
}
}
}
...
...
@@ -403,7 +410,12 @@ export class LiveComponent implements OnInit {
// 不能进行自动评测
confirm
()
{
this
.
autoEvaluationModal
=
false
;
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/2019Double12/index.html?customerId=
${
sessionStorage
.
getItem
(
'customerId'
)}
`
;
if
(
JSON
.
parse
(
sessionStorage
.
getItem
(
'campaignInfo'
))[
'campaignTaskCode'
]
&&
JSON
.
parse
(
sessionStorage
.
getItem
(
'campaignInfo'
))[
'campaignTaskCode'
]
==
'AItask1'
)
{
window
.
location
.
href
=
`
${
environment
.
hostName
}
/index`
;
}
else
{
window
.
location
.
href
=
`
${
environment
.
hostName
}
/2019Double12/index.html?customerId=
${
sessionStorage
.
getItem
(
'customerId'
)}
`
;
}
}
// 报错信息弹窗
...
...
questionnaire/src/environments/environment.prod.ts
View file @
820f984b
export
const
environment
=
{
production
:
true
,
apiUrl
:
'https://m.zuihuibi.cn/api'
apiUrl
:
'https://m.zuihuibi.cn/api'
,
hostName
:
'https://m.zuihuibi.cn'
};
questionnaire/src/environments/environment.stage.ts
View file @
820f984b
...
...
@@ -3,5 +3,6 @@
*/
export
const
environment
=
{
production
:
false
,
apiUrl
:
'https://mstage.zuihuibi.cn/api'
apiUrl
:
'https://mstage.zuihuibi.cn/api'
,
hostName
:
'https://mstage.zuihuibi.cn'
};
questionnaire/src/environments/environment.ts
View file @
820f984b
...
...
@@ -4,7 +4,8 @@
export
const
environment
=
{
production
:
false
,
apiUrl
:
'https://mdev.zuihuibi.cn/api'
apiUrl
:
'https://mdev.zuihuibi.cn/api'
,
hostName
:
'https://mdev.zuihuibi.cn'
};
/*
...
...
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