Commit 820f984b by Sweet Zhang

问卷修改

parent 010ebf12
...@@ -177,6 +177,7 @@ body .layui-m-layer-msg .layui-m-layercont { ...@@ -177,6 +177,7 @@ body .layui-m-layer-msg .layui-m-layercont {
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5);
display: none; display: none;
margin: 0 auto; margin: 0 auto;
z-index: 3;
} }
#luckDrawModal .luckDrawContent { #luckDrawModal .luckDrawContent {
...@@ -405,6 +406,7 @@ body .layui-m-layer-msg .layui-m-layercont { ...@@ -405,6 +406,7 @@ body .layui-m-layer-msg .layui-m-layercont {
} }
.taskListsContainer ul > li { .taskListsContainer ul > li {
position: relative;
padding: 10px 7px; padding: 10px 7px;
border-radius: 8px; border-radius: 8px;
border: 4px solid #f5cd9a; border: 4px solid #f5cd9a;
...@@ -413,6 +415,17 @@ body .layui-m-layer-msg .layui-m-layercont { ...@@ -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 { .taskListsContainer ul > li .content {
background-image: linear-gradient(#fefae9, #fcd5a7); background-image: linear-gradient(#fefae9, #fcd5a7);
border-radius: 5px; border-radius: 5px;
...@@ -739,7 +752,7 @@ body .layui-m-layer-msg .layui-m-layercont { ...@@ -739,7 +752,7 @@ body .layui-m-layer-msg .layui-m-layercont {
display: block; display: block;
} }
.completeIcon1,.completeIcon2 { .completeIcon1, .completeIcon2 {
position: absolute; position: absolute;
right: 0; right: 0;
top: 0; top: 0;
......
...@@ -30,11 +30,13 @@ ...@@ -30,11 +30,13 @@
<ul> <ul>
<li id="task01"> <li id="task01">
<img src="./images/red_pocket_active.png" alt=""> <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>
<li id="task02"> <li id="task02">
<img src="./images/red_pocket_active.png" alt=""> <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>
<li id="task03"> <li id="task03">
<img src="./images/red_pocket_active.png" alt=""> <img src="./images/red_pocket_active.png" alt="">
...@@ -54,7 +56,8 @@ ...@@ -54,7 +56,8 @@
<div class="taskListsContainer"> <div class="taskListsContainer">
<div> <div>
<ul> <ul>
<li> <li class="risk1">
<div class="disabledMask"></div>
<div class="content"> <div class="content">
<h5> <h5>
<div style="width: 30px;margin-right: 10px;"> <div style="width: 30px;margin-right: 10px;">
...@@ -72,7 +75,8 @@ ...@@ -72,7 +75,8 @@
</div> </div>
</div> </div>
</li> </li>
<li> <li class="risk2">
<div class="disabledMask"></div>
<div class="content"> <div class="content">
<h5> <h5>
<div style="width: 30px;margin-right: 10px;"> <div style="width: 30px;margin-right: 10px;">
...@@ -90,7 +94,8 @@ ...@@ -90,7 +94,8 @@
</div> </div>
</div> </div>
</li> </li>
<li> <li class="risk3">
<div class="disabledMask"></div>
<div class="content"> <div class="content">
<h5> <h5>
<div style="width: 30px;margin-right: 10px;"> <div style="width: 30px;margin-right: 10px;">
...@@ -105,7 +110,8 @@ ...@@ -105,7 +110,8 @@
</div> </div>
</div> </div>
</li> </li>
<li> <li class="risk4">
<div class="disabledMask"></div>
<div class="content"> <div class="content">
<h5> <h5>
<div style="width: 30px;margin-right: 10px;"> <div style="width: 30px;margin-right: 10px;">
...@@ -205,6 +211,10 @@ ...@@ -205,6 +211,10 @@
</svg> </svg>
</div> </div>
<p id="gift" style="margin: 15px 0;font-weight: bold;"></p> <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> <p style="font-size:14px;">中奖用户可在“银盾保险在线”微信公众号中使用活动注册手机号登录 “我的—我的奖品”查看中奖详情。</p>
<div class="close"> <div class="close">
<button style="font-size: 15px;">做任务再获开红包机会</button> <button style="font-size: 15px;">做任务再获开红包机会</button>
......
...@@ -489,10 +489,15 @@ $(function () { ...@@ -489,10 +489,15 @@ $(function () {
} else { } else {
// 总共还剩多少红包 // 总共还剩多少红包
$('#giftSum').html(activityInfo.activityGiftInfo.giftSum); $('#giftSum').html(activityInfo.activityGiftInfo.giftSum);
if(Number(activityInfo.activityGiftInfo.giftSum) < 0){$('#giftSum').html(0);}
task01 = activityTaskInfoList.filter(item => item.taskCode === '12task1').pop() || []; task01 = activityTaskInfoList.filter(item => item.taskCode === '12task1').pop() || [];
task02 = activityTaskInfoList.filter(item => item.taskCode === '12task2').pop() || []; task02 = activityTaskInfoList.filter(item => item.taskCode === '12task2').pop() || [];
task03 = activityTaskInfoList.filter(item => item.taskCode === '12task3').pop() || []; task03 = activityTaskInfoList.filter(item => item.taskCode === '12task3').pop() || [];
task04 = activityTaskInfoList.filter(item => item.taskCode === '12task4').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 && task01.activityOpportunityUsedInfo) {
if (task01.activityOpportunityUsedInfo.leftTimes > 0) { if (task01.activityOpportunityUsedInfo.leftTimes > 0) {
$('#task01 img').attr('src', './images/red_pocket_active.png') $('#task01 img').attr('src', './images/red_pocket_active.png')
...@@ -630,6 +635,14 @@ $(function () { ...@@ -630,6 +635,14 @@ $(function () {
// 开启红包 1可开启 0 不可开启 // 开启红包 1可开启 0 不可开启
// drawTimes 是否已经开启 // drawTimes 是否已经开启
function openRedPocket(status, drawTimes, campaignTaskCode) { function openRedPocket(status, drawTimes, campaignTaskCode) {
if (Number(activityInfo.activityGiftInfo.giftSum) < 0) {
layer.open({
content: '本次红包已领完,下次早点来哦',
skin: 'msg',
time: 5, //2秒后自动关闭,
});
return;
}
if (customerId) { if (customerId) {
//已经登录 //已经登录
} else { } else {
......
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";
@Component({ @Component({
selector: 'app-live', selector: 'app-live',
...@@ -187,7 +188,7 @@ export class LiveComponent implements OnInit { ...@@ -187,7 +188,7 @@ export class LiveComponent implements OnInit {
"campaignTaskCode": JSON.parse(sessionStorage.getItem('campaignInfo'))['campaignTaskCode'] "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); this.getOrderId(orderIdParam);
return; return;
} }
...@@ -203,19 +204,25 @@ export class LiveComponent implements OnInit { ...@@ -203,19 +204,25 @@ export class LiveComponent implements OnInit {
this.router.navigate(['/transit3']); this.router.navigate(['/transit3']);
} else { } else {
const task = JSON.parse(sessionStorage.getItem('campaignInfo'))['campaignTaskCode']; const task = JSON.parse(sessionStorage.getItem('campaignInfo'))['campaignTaskCode'];
//判断有无疾病 // 判断有无疾病
if (this.isDisease && task == '12task1') { if (this.isDisease && (task == '12task1' || task == 'AItask1')) {
//双12活动有疾病出弹框,确定后跳活动首页 // 双12活动有疾病出弹框,确定后跳活动首页
this.autoEvaluationModal = true; this.autoEvaluationModal = true;
} else { } else {
//无疾病判断如果是任务二或者任务三跳活动首页否则条查看方案 // 无疾病判断如果是任务二或者任务三跳活动首页否则条查看方案
if (task == '12task2' || task == '12task3') { if (task == '12task2' || task == '12task3') {
setTimeout(() => { 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) }, 2000)
} else { } else {
// 跳转到方案详情页面 if (task == 'AItask1') {
window.location.href = `https://${window.location.host}/customizedPlanList/3?orderId=${sessionStorage.getItem('orderId')}&customerId=${sessionStorage.getItem('customerId')}&leftTimes=1`; // 智能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 { ...@@ -403,7 +410,12 @@ export class LiveComponent implements OnInit {
// 不能进行自动评测 // 不能进行自动评测
confirm() { confirm() {
this.autoEvaluationModal = false; 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')}`;
}
} }
// 报错信息弹窗 // 报错信息弹窗
......
export const environment = { export const environment = {
production: true, production: true,
apiUrl: 'https://m.zuihuibi.cn/api' apiUrl: 'https://m.zuihuibi.cn/api',
hostName: 'https://m.zuihuibi.cn'
}; };
...@@ -3,5 +3,6 @@ ...@@ -3,5 +3,6 @@
*/ */
export const environment = { export const environment = {
production: false, production: false,
apiUrl: 'https://mstage.zuihuibi.cn/api' apiUrl: 'https://mstage.zuihuibi.cn/api',
hostName: 'https://mstage.zuihuibi.cn'
}; };
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
export const environment = { export const environment = {
production: false, production: false,
apiUrl: 'https://mdev.zuihuibi.cn/api' apiUrl: 'https://mdev.zuihuibi.cn/api',
hostName: 'https://mdev.zuihuibi.cn'
}; };
/* /*
......
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