Commit d88d95b5 by 李宁

1

1 parent 89701e75
......@@ -897,6 +897,7 @@ html,body{
border-radius: .32rem;
background: linear-gradient(180deg, #FFD7D7 0%, #FFF4F4 100%);
box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.12);
box-sizing: border-box;
}
.warningCon .icon{
position: absolute;
......@@ -938,6 +939,9 @@ html,body{
.warningCon .detail .des{
line-height: .6rem;
}
.warningCon .detail .dess{
display: none;
}
.warningCon .detail .des span{
color: #D90012;
font-size: .4rem;
......@@ -954,6 +958,7 @@ html,body{
line-height: .8rem;
margin: auto;
margin-top: .24rem;
display: none;
}
div{
......
......@@ -632,6 +632,7 @@ div{
background: linear-gradient(180deg, #FFD7D7 0%, #FFF4F4 100%);
box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.12);
width: 5.6rem;
box-sizing: border-box;
}
.warningCon .icon{
position: absolute;
......
......@@ -7,7 +7,7 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>江苏移动</title>
<link rel="stylesheet" href="https://xpo.oss-cn-beijing.aliyuncs.com/huaian/css/vant.css"/>
<link rel="stylesheet" href="css/demo.css?67676">
<link rel="stylesheet" href="css/demo.css?676376">
</head>
<body>
......@@ -333,24 +333,25 @@
<div class="outAlert" id="gmBoxTsAlert">
<div class="alertCon">
<div class="info">检测到主光猫置于箱(柜)内,根据内部施工规范与验收要求,建议您将设备移至箱(柜)外并预留≥5 cm散热空间。</div>
<div class="butt">
<div class="left pageClose">立即移出</div>
<div class="right continueTest">用户已同意</div>
<div class="butt" id="gmBoxButt">
<div class="left pageClose" key="move">立即移出</div>
<div class="right continueTest" key="agree">用户已同意</div>
</div>
</div>
</div>
<div class="outAlert" id="warningTsAlert" style="display: block;">
<div class="outAlert" id="warningTsAlert">
<div class="alertCon warningCon">
<img class="icon" src="https://xpo.oss-cn-beijing.aliyuncs.com/huaian/cheatWarn.png" alt="">
<div class="detail">
<img class="bg" src="https://xpo.oss-cn-beijing.aliyuncs.com/huaian/cheatBg.png" alt="">
<img class="close" src="https://xpo.oss-cn-beijing.aliyuncs.com/huaian/cheatClose.png" alt="">
<img class="close" id="cheatClose" src="https://xpo.oss-cn-beijing.aliyuncs.com/huaian/cheatClose.png" alt="">
<div class="til">环境异常警告</div>
<div class="des">系统检测到您当前在车辆内完成设备检测,不属于标准装维场景,已 <span><em id="cheatNum">1</em>次“疑似作弊”</span></div>
<div class="des">若再出现1次,该工单将自动标记为<span>“作弊工单”</span>,并<span>暂停质检并通报考核</span></div>
<div class="des dess" id="allowProcess">若再出现类似违规操作,该工单将自动标记为<span>“作弊工单”</span>,同时暂停<span>暂停质检并通报考核</span></div>
<div class="des dess" id="forbidProcess">该工单已被标记为<span>“作弊工单”</span><span>无法继续质检</span>,如存在误判情况可及时 <span>联系管理员或平台运营人员</span> 解除异常。</div>
<div class="quit">退出质检</div>
<div class="quit" id="cheatQuitBut">退出质检</div>
</div>
</div>
</div>
......@@ -367,7 +368,7 @@
<script src="js/util.js?1212"></script>
<script src="js/vue.min.js"></script>
<script src="js/vant.min.js"></script>
<script src="js/demo.js?0909090"></script>
<script src="js/demo.js?09093090"></script>
</body>
</html>
\ No newline at end of file
......@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>江苏移动</title>
<link rel="stylesheet" href="https://xpo.oss-cn-beijing.aliyuncs.com/huaian/css/vant.css"/>
<link rel="stylesheet" href="css/index.css?90909090">
<link rel="stylesheet" href="css/index.css?22">
</head>
<body>
<!-- <script>
......@@ -249,7 +249,7 @@
/>
</div>
<div class="outAlert">
<div class="outAlert" v-if="detail.checkOrderStatus==10">
<div class="alertCon warningCon">
<img class="icon" src="https://xpo.oss-cn-beijing.aliyuncs.com/huaian/cheatWarn.png" alt="">
<div class="detail">
......@@ -270,6 +270,6 @@
<script src="https://xpo.oss-cn-beijing.aliyuncs.com/huaian/js/vue.min.js"></script>
<script src="https://xpo.oss-cn-beijing.aliyuncs.com/huaian/js/vant.min.js"></script>
<script src="https://xpo.oss-cn-beijing.aliyuncs.com/huaian/js/util.js?11111"></script>
<script src="js/index.js?878787"></script>
<script src="js/index.js?8781787"></script>
</body>
</html>
\ No newline at end of file
......@@ -138,6 +138,9 @@ var noShootNum
var accountInputNum
var voiceUrl = ''
var aliyunQueryFlag = false
var cheatClickFlag = false
var gbBoxClick = false
var cheatNumRecord = 0
function getProcess(){
if(!window.location.href.includes('demo.html')){
......@@ -173,6 +176,29 @@ function getProcess(){
$('#waitting').hide()
}
//作弊弹窗的显示逻辑
if(cheatNumRecord != res.findCheatNum){
cheatClickFlag = false
}
if(res.findCheat==2 || (res.findCheat==1 && !cheatClickFlag)){
$('#cheatNum').text(res.findCheatNum)
cheatNumRecord = res.findCheatNum
if(res.findCheat == 2){
$('#cheatQuitBut').show()
$('#forbidProcess').show()
}else{
$('#allowProcess').show()
}
$('#warningTsAlert').show()
}
//主光猫是否在箱子的弹窗显示逻辑
if(res.zgmInbox==1 && !gbBoxClick){
$('#gmBoxTsAlert').show()
}
if(res.voiceCode && (res.voiceCode.includes('SN')||res.voiceCode.startsWith('account_')) && !aliyunQueryFlag){
aliyunQueryFlag = true
queryAliyunToken(res.voiceCode)
......@@ -897,6 +923,26 @@ function snInputSubmit(){
}
})
}
$('#gmBoxButt div').click((e)=>{
let key = $(e.target).attr('key')
util.httpRequest({
url: '/snConfirmButton',
data: {
applyId: applyId,
callId: callId,
voiceCode: stepId,
buttonText: key
}
}).then(res=>{
if(res.code == 200){
gbBoxClick = true
$('#gmBoxTsAlert').hide()
}else {
util.toast(res.msg)
}
})
})
function addSnInputEvent(){
document.querySelectorAll('.snInput').forEach(textarea => {
......@@ -1029,6 +1075,10 @@ $('.pageClose').click(()=>{
$('.continueTest').click(()=>{
window.location.reload()
})
$('#cheatClose').click(()=>{
cheatClickFlag = true
$('#warningTsAlert').hide()
})
release()
$('#videoBegin').click(()=>{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!