|
|
<!DOCTYPE html>
|
|
|
|
|
|
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
|
|
<head>
|
|
|
<meta charset="utf-8" />
|
|
|
<title>食堂版</title>
|
|
|
<!--<link rel="stylesheet" href="../Content/css/bootstrap.min.css" />
|
|
|
<link rel="stylesheet" href="../Content/css/bootstrap-table.min.css" />
|
|
|
<script src="../Content/js/jquery-3.3.1.min.js"></script>
|
|
|
<script src="../Content/js/bootstrap.min.js"></script>
|
|
|
<script src="../Content/js/bootstrap-table.min.js"></script>
|
|
|
<script src="../Content/js/jquery.rotate.min.js"></script>-->
|
|
|
|
|
|
<link rel="stylesheet" href="css/bootstrap_mincss.css" />
|
|
|
<link rel="stylesheet" href="css/bootstrap_table_mincss.css" />
|
|
|
<script src="js/jquery_3_3_1_min.js"></script>
|
|
|
<script src="js/bootstrap_min.js"></script>
|
|
|
<script src="js/bootstrap_table_min.js"></script>
|
|
|
<script src="js/jquery_rotate_min.js"></script>
|
|
|
|
|
|
<style>
|
|
|
html {
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
background-color: #CFD9DE;
|
|
|
}
|
|
|
|
|
|
body {
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
background: #CFD9DE;
|
|
|
overflow: hidden;
|
|
|
padding: 47px 10px 47px 10px;
|
|
|
font-family: "微软雅黑";
|
|
|
}
|
|
|
|
|
|
|
|
|
.fastheader {
|
|
|
height: 40px;
|
|
|
width: 100%;
|
|
|
position: fixed;
|
|
|
margin-left: -10px;
|
|
|
margin-right: -10px;
|
|
|
margin-top: -47px;
|
|
|
background-color: #ffffff;
|
|
|
}
|
|
|
/* 图片 */
|
|
|
.fastheader .juweilogo {
|
|
|
float: left;
|
|
|
margin: 11px 0 0 18px;
|
|
|
}
|
|
|
|
|
|
/* 图片 */
|
|
|
.fastheader .meicanyouke {
|
|
|
float: left;
|
|
|
margin: 11px 0 0 20px;
|
|
|
}
|
|
|
|
|
|
/* 食堂快餐版 */
|
|
|
.fastheader .meicanyouketext {
|
|
|
font-size: 18px;
|
|
|
font-family: MicrosoftYaHei;
|
|
|
font-weight: 400;
|
|
|
color: #00C7BA;
|
|
|
float: left;
|
|
|
line-height: 40px;
|
|
|
margin: 0;
|
|
|
margin-left: 10px;
|
|
|
}
|
|
|
|
|
|
/* 网络正常 */
|
|
|
.fastheader .networkstate {
|
|
|
text-align: right;
|
|
|
float: right;
|
|
|
font-size: 16px;
|
|
|
font-weight: 400;
|
|
|
line-height: 40px;
|
|
|
margin: 0;
|
|
|
margin-right: 20px;
|
|
|
margin-left: 15px;
|
|
|
}
|
|
|
|
|
|
/* 模块圆点 */
|
|
|
.fastheader .lbldot {
|
|
|
width: 6px;
|
|
|
height: 6px;
|
|
|
background: rgba(0,199,186,1);
|
|
|
border-radius: 50%;
|
|
|
float: left;
|
|
|
margin: 17px 0 0 14px;
|
|
|
}
|
|
|
|
|
|
/* 圆点 */
|
|
|
.fastheader .divdot {
|
|
|
width: 12px;
|
|
|
height: 12px;
|
|
|
background: rgba(0,199,186,1);
|
|
|
border-radius: 50%;
|
|
|
float: right;
|
|
|
margin: 15px 0 0 10px;
|
|
|
}
|
|
|
|
|
|
|
|
|
.main_div {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
border-radius: 5px;
|
|
|
background-color: rgba(0, 0, 0, 0.00);
|
|
|
}
|
|
|
|
|
|
.leftcontent {
|
|
|
width: 45%;
|
|
|
height: 100%;
|
|
|
float: left;
|
|
|
}
|
|
|
|
|
|
.divbottom {
|
|
|
height: 40px;
|
|
|
width: 100%;
|
|
|
position: fixed;
|
|
|
bottom: 0;
|
|
|
margin-left: -10px;
|
|
|
margin-right: -10px;
|
|
|
background-color: #ffffff;
|
|
|
}
|
|
|
|
|
|
.shoppingdiv {
|
|
|
height: 50%;
|
|
|
width: 100%;
|
|
|
background-color: #ffffff;
|
|
|
border-radius: 4px;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.shoppingdiv th {
|
|
|
background-color: #00C7BA;
|
|
|
color: #ffffff;
|
|
|
height: 40px;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.shoppingtotal {
|
|
|
height: 56px;
|
|
|
width: 100%;
|
|
|
background-color: #FF7D1D;
|
|
|
opacity: 0.15;
|
|
|
position: absolute;
|
|
|
bottom: 56px;
|
|
|
}
|
|
|
|
|
|
.shoppingtotal1 {
|
|
|
height: 56px;
|
|
|
width: 100%;
|
|
|
position: absolute;
|
|
|
bottom: 56px;
|
|
|
line-height: 56px;
|
|
|
padding-left: 10px;
|
|
|
padding-right: 10px;
|
|
|
}
|
|
|
|
|
|
.shoppingtotal1 label {
|
|
|
font-size: 16px;
|
|
|
font-weight: 500;
|
|
|
}
|
|
|
|
|
|
.shoppingtotal1 .lblreceivable {
|
|
|
font-size: 24px;
|
|
|
color: #FF7D1D;
|
|
|
float: right;
|
|
|
}
|
|
|
|
|
|
.shoppingoperation {
|
|
|
height: 56px;
|
|
|
width: 100%;
|
|
|
padding-top: 10px;
|
|
|
position: absolute;
|
|
|
bottom: 0;
|
|
|
}
|
|
|
|
|
|
.previous {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.previous {
|
|
|
font-size: 16px;
|
|
|
border: 1px solid #999999;
|
|
|
color: #999999;
|
|
|
width: 76px;
|
|
|
margin: 0 5px 0 10px;
|
|
|
}
|
|
|
|
|
|
.next {
|
|
|
font-size: 16px;
|
|
|
border: 1px solid #999999;
|
|
|
color: #999999;
|
|
|
width: 76px;
|
|
|
}
|
|
|
|
|
|
.weixin {
|
|
|
font-size: 16px;
|
|
|
border: 1px solid #04BE02;
|
|
|
color: #04BE02;
|
|
|
width: 100px;
|
|
|
margin: 0 5px 0 10px;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.divright {
|
|
|
position: absolute;
|
|
|
color: #FFFFFF;
|
|
|
font-size: 16px;
|
|
|
background-color: #F45B63;
|
|
|
width: 20px;
|
|
|
height: 20px;
|
|
|
line-height: 20px;
|
|
|
left: 90%;
|
|
|
top: -12px;
|
|
|
text-align: center;
|
|
|
-webkit-border-radius: 20px;
|
|
|
border-radius: 20px;
|
|
|
}
|
|
|
|
|
|
.alldelete {
|
|
|
font-size: 16px;
|
|
|
background: #00C7BA;
|
|
|
color: #FFFFFF;
|
|
|
width: 76px;
|
|
|
float: right;
|
|
|
}
|
|
|
|
|
|
.delete {
|
|
|
font-size: 16px;
|
|
|
background: #F45B63;
|
|
|
color: #FFFFFF;
|
|
|
width: 76px;
|
|
|
float: right;
|
|
|
margin: 0 10px 0 10px;
|
|
|
}
|
|
|
|
|
|
.saleorderlist {
|
|
|
height: 49%;
|
|
|
width: 100%;
|
|
|
margin-top: 10px;
|
|
|
background-color: #F8F8F8;
|
|
|
border-radius: 4px;
|
|
|
bottom: 0;
|
|
|
}
|
|
|
|
|
|
.saleorderlist th {
|
|
|
background-color: #00C7BA;
|
|
|
color: #ffffff;
|
|
|
height: 40px;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.rightcontent {
|
|
|
width: 55%;
|
|
|
height: 100%;
|
|
|
float: right;
|
|
|
padding-left: 10px;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.memberdiv {
|
|
|
height: 50px;
|
|
|
background-color: #F8F8F8;
|
|
|
border-radius: 4px;
|
|
|
line-height: 50px;
|
|
|
font-size: 18px;
|
|
|
margin-bottom: 6px;
|
|
|
}
|
|
|
|
|
|
.textmoney {
|
|
|
margin-bottom: 10px;
|
|
|
padding-top: 5px;
|
|
|
background-color: #ffffff;
|
|
|
height: 70px;
|
|
|
border-radius: 4px;
|
|
|
border: 1px solid #C8C8C8;
|
|
|
}
|
|
|
|
|
|
.numerictable td {
|
|
|
width: 33.3333333%;
|
|
|
/*border: solid 1px #B2B9C1;*/
|
|
|
padding: 5px;
|
|
|
}
|
|
|
|
|
|
.numericdiv {
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
padding-bottom: 200px;
|
|
|
}
|
|
|
|
|
|
.numericdiv td {
|
|
|
border-top: 0;
|
|
|
border-left: 0;
|
|
|
}
|
|
|
|
|
|
.numerickey {
|
|
|
font-size: 36px;
|
|
|
width: 100%;
|
|
|
background-color: #FFFFFF;
|
|
|
/*border-radius: 0;*/
|
|
|
height: 100%;
|
|
|
border: 1px solid #C8C8C8;
|
|
|
}
|
|
|
|
|
|
.paydiv {
|
|
|
height: 140px;
|
|
|
width: 100%;
|
|
|
position: absolute;
|
|
|
bottom: 60px;
|
|
|
left: 5px;
|
|
|
}
|
|
|
|
|
|
.paydiv .btnmember {
|
|
|
background-color: #F8F8F8;
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
font-size: 22px;
|
|
|
line-height: 110px;
|
|
|
}
|
|
|
|
|
|
.paydiv td {
|
|
|
padding: 0 5px 0 5px;
|
|
|
width: 33.333%;
|
|
|
}
|
|
|
|
|
|
.functionmodule {
|
|
|
width: 100%;
|
|
|
position: absolute;
|
|
|
bottom: 0;
|
|
|
right: 10px;
|
|
|
}
|
|
|
|
|
|
.functionmodule div {
|
|
|
background-color: #F8F8F8;
|
|
|
height: 60px;
|
|
|
width: 100%;
|
|
|
line-height: 40px;
|
|
|
font-size: 22px;
|
|
|
}
|
|
|
|
|
|
.functionmodule td {
|
|
|
padding: 0 5px 0 5px;
|
|
|
}
|
|
|
|
|
|
|
|
|
.ShoppingSelect {
|
|
|
background-color: beige;
|
|
|
}
|
|
|
|
|
|
.btn-success {
|
|
|
border-color: rgba(0,0,0,0);
|
|
|
}
|
|
|
|
|
|
.btn-success:hover, .btn-success:focus, .btn-success.focus, .btn-success:active, .btn-success.active, .open > .dropdown-toggle.btn-success {
|
|
|
border-color: rgba(0,0,0,0);
|
|
|
}
|
|
|
|
|
|
.btn-danger:hover, .btn-success:focus, .btn-success.focus, .btn-success:active, .btn-success.active, .open > .dropdown-toggle.btn-success {
|
|
|
border-color: rgba(0,0,0,0);
|
|
|
}
|
|
|
|
|
|
.merchandiselist::-webkit-scrollbar {
|
|
|
display: none
|
|
|
}
|
|
|
|
|
|
.progress-bar-success {
|
|
|
background-color: #00C7BA;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body oncontextmenu="return false;" onselectstart="return false;">
|
|
|
<!--标头-->
|
|
|
<div class="fastheader">
|
|
|
<img class="juweilogo" src="img/logo.png" />
|
|
|
<img class="meicanyouke" src="img/MCYK.png" />
|
|
|
<div class="lbldot"></div>
|
|
|
<label class="meicanyouketext">食堂快餐版</label>
|
|
|
<label class="networkstate">网络正常</label>
|
|
|
<div class="divdot"></div>
|
|
|
<div class="divdot"></div>
|
|
|
<div class="divdot"></div>
|
|
|
<div class="divdot"></div>
|
|
|
<div class="divdot"></div>
|
|
|
</div>
|
|
|
|
|
|
<!--主内容-->
|
|
|
<div class="main_div">
|
|
|
<!--左侧内容-->
|
|
|
<div class="leftcontent">
|
|
|
<!--点菜列-->
|
|
|
<div class="shoppingdiv">
|
|
|
<!--table-->
|
|
|
<table id="shoppinglist" data-response-handler="responseHandler" class="table" style="margin:0;">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th style="border-radius: 4px 0 0 0; border:0;">品名</th>
|
|
|
<th style="width:70px; text-align:center; border:0;">数量</th>
|
|
|
<th style="width:70px; text-align:center; border:0;">单价</th>
|
|
|
<th style="width:70px; text-align:center; border:0;">金额</th>
|
|
|
<th style="width:70px; text-align:center; border:0; border-radius: 0 4px 0 0;">优惠</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
</table>
|
|
|
<div class="shoppingitem" style="width:100%; overflow-x:auto;">
|
|
|
<table class="table">
|
|
|
<tbody class="shoppingtbody "></tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
<!--透明底-->
|
|
|
<div class="shoppingtotal">
|
|
|
|
|
|
</div>
|
|
|
<!--合计块-->
|
|
|
<div class="shoppingtotal1">
|
|
|
<label>
|
|
|
合计:
|
|
|
</label>
|
|
|
<label class="total_copies">
|
|
|
0.00
|
|
|
</label>
|
|
|
<label>
|
|
|
份
|
|
|
</label>
|
|
|
<label style="margin-left:20px;">
|
|
|
优惠:
|
|
|
</label>
|
|
|
<label>
|
|
|
¥
|
|
|
</label>
|
|
|
<label class="total_discount">
|
|
|
0.00
|
|
|
</label>
|
|
|
<label class="lblreceivable total_amount">
|
|
|
0.00
|
|
|
</label>
|
|
|
<label class="lblreceivable">
|
|
|
¥
|
|
|
</label>
|
|
|
|
|
|
<label class="lblreceivable">
|
|
|
应收:
|
|
|
</label>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!--翻页 消单 删除-->
|
|
|
<div class="shoppingoperation">
|
|
|
<div class="btn previous" onclick="page_turning(this);">上一页</div>
|
|
|
<div class="btn next" onclick="page_turning(this);">下一页</div>
|
|
|
|
|
|
<div class="btn weixin" name="微信订单" onclick="AuthorityClick(this);">微信订单<div class="divright"></div></div>
|
|
|
|
|
|
<div class="btn delete" name="删除" onclick="AuthorityClick(this);">删除</div>
|
|
|
<div class="btn alldelete" name="消单" onclick="AuthorityClick(this);">消单</div>
|
|
|
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<!--订单列-->
|
|
|
<div class="saleorderlist">
|
|
|
<!--table-->
|
|
|
<table id="" data-response-handler="responseHandler" class="table" style="margin:0;">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th style=" border-radius: 4px 0 0 0; border:0;">时间</th>
|
|
|
<th style="width:70px; text-align:center; border:0;">订单号</th>
|
|
|
<th style="width:70px; text-align:center; border:0;">金额</th>
|
|
|
<th style="width:100px; text-align:center; border:0;">付款方式</th>
|
|
|
<th style="width:100px; text-align:center; border:0; border-radius: 0 4px 0 0; ">状态</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
</table>
|
|
|
<div style="height:100%;width:100%; overflow-x:auto;">
|
|
|
<table class="table">
|
|
|
<tbody class="OrderPayList">
|
|
|
<!--<tr id=''>
|
|
|
<td style =font-size:16px; border-bottom: 1px solid #E0E0E0;>
|
|
|
自选快餐
|
|
|
</td>
|
|
|
<td style=font-size:16px; width:70px; border-bottom: 1px solid #E0E0E0; text-align:center;>
|
|
|
123
|
|
|
</td>
|
|
|
<td style=font-size:16px; width:100px; border-bottom: 1px solid #E0E0E0; text-align:center;>
|
|
|
123
|
|
|
</td>
|
|
|
<td id='orderpaystate' style=font-size:16px; width:100px; border-bottom: 1px solid #E0E0E0; text-align:center;>
|
|
|
支付中
|
|
|
</td>
|
|
|
</tr>-->
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<!--右侧内容-->
|
|
|
<div class="rightcontent">
|
|
|
|
|
|
<!--数字键盘-->
|
|
|
<div class="numericdiv">
|
|
|
<div style=" padding:15px; width:100%; height:100%; background-color:#F8F8F8; border-radius:4px;">
|
|
|
|
|
|
<div class="keyboarddiv" style="height:100%;width:100%; ">
|
|
|
<div class="textmoney">
|
|
|
<div style="border-radius:4px;">
|
|
|
<input class="txtmoneyval" type="text" style=" background-color:#ffffff; width:100%; border:0; outline:none; font-size:36px; text-align:center" readonly="readonly" oninput="txtmoneyval();" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="height: 100%; width: 100%; position: absolute; padding-right: 40px; padding-bottom: 305px;">
|
|
|
<table class="numerictable" style="height:100%; width:75%; float:left; margin-left: -5px;">
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td style="padding-top:0;">
|
|
|
<div key="1" class="btn numerickey" onclick="OnClickNumericKey(this)">1</div>
|
|
|
</td>
|
|
|
<td style="padding-top:0;">
|
|
|
<div key="2" class="btn numerickey" onclick="OnClickNumericKey(this)">2</div>
|
|
|
</td>
|
|
|
<td style="padding-top:0;">
|
|
|
<div key="3" class="btn numerickey" onclick="OnClickNumericKey(this)">3</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>
|
|
|
<div key="4" class="btn numerickey" onclick="OnClickNumericKey(this)">4</div>
|
|
|
</td>
|
|
|
<td>
|
|
|
<div key="5" class="btn numerickey" onclick="OnClickNumericKey(this)">5</div>
|
|
|
</td>
|
|
|
<td>
|
|
|
<div key="6" class="btn numerickey" onclick="OnClickNumericKey(this)">6</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td style="padding-bottom:0">
|
|
|
<div key="7" class="btn numerickey" onclick="OnClickNumericKey(this)">7</div>
|
|
|
</td>
|
|
|
<td style="padding-bottom:0">
|
|
|
<div key="8" class="btn numerickey" onclick="OnClickNumericKey(this)">8</div>
|
|
|
</td>
|
|
|
<td style="padding-bottom:0">
|
|
|
<div key="9" class="btn numerickey" onclick="OnClickNumericKey(this)">9</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td style="border-bottom:0; padding-top:10px; padding-bottom: 0;">
|
|
|
<div key="0" class="btn numerickey" onclick="OnClickNumericKey(this)">0</div>
|
|
|
</td>
|
|
|
<td style="border-bottom:0; padding-top:10px; padding-bottom: 0;">
|
|
|
<div key="." class="btn numerickey" onclick="OnClickNumericKey(this)">.</div>
|
|
|
</td>
|
|
|
<td style="border-bottom:0; padding-top:10px; padding-bottom: 0;">
|
|
|
<div key="backspace" class="btn numerickey" onclick="OnClickNumericKey(this)"><img src="/img/Rounded.png" /></div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
<div key="+" class="btn numericadd" style=" float:right; width:25%;height:100%; font-size:51px; background-color:#ffffff; border-radius:4px; border:1px solid #C8C8C8" onclick="OnClickNumericKey(this)">
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="itemlistdiv" style="height:100%;width:100%; display:block; position:relative; overflow:hidden; display:none;">
|
|
|
<div class="merchandiselist" style=" height:100%;width:100%; float:left; margin-top: -105px;padding-top: 105px;overflow: hidden; ">
|
|
|
|
|
|
</div>
|
|
|
<div style="height:80px; width:100%; position:absolute; bottom: 20px;">
|
|
|
<div class="btn " name="上一页" style="padding: 28px;width: 49.9%; border:1px solid #999999; float:left" onclick="Itempageturning(this);"><img src="Report/direction.png" style="transform:rotate(180deg)" /></div>
|
|
|
<div class="btn " name="下一页" style="padding: 28px;width: 49.9%; border:1px solid #999999; float:right" onclick="Itempageturning(this);"> <img src="Report/direction.png" /> </div>
|
|
|
</div>
|
|
|
<!--<div class="progress progress-striped active" style=" width: 100%; position: absolute; bottom: 0;height: 10px;">
|
|
|
<div class="progress-bar progress-bar-success" role="progressbar"
|
|
|
aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"
|
|
|
style="width: 0%;">
|
|
|
</div>
|
|
|
</div>-->
|
|
|
</div>
|
|
|
<!--金额显示-->
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!--支付块-->
|
|
|
<div class="paydiv">
|
|
|
<table style="width:100%; height:100%">
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td>
|
|
|
<div class="btn btnmember" name="现金" onclick="AuthorityClick(this);">
|
|
|
<img src="img/Cashier.png" />
|
|
|
现金
|
|
|
</div>
|
|
|
|
|
|
</td>
|
|
|
<td>
|
|
|
<div class="btn btnmember" name="会员卡" onclick="AuthorityClick(this);">
|
|
|
<img src="img/cards.png" />
|
|
|
会员卡
|
|
|
</div>
|
|
|
</td>
|
|
|
<td>
|
|
|
<div class="btn btnmember" name="扫码支付" onclick="AuthorityClick(this);">
|
|
|
<img src="img/Rectangular.png" />
|
|
|
扫码支付
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
<!--功能块-->
|
|
|
<div class="row functionmodule">
|
|
|
<table style="width:100%;">
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td style="width:16.66%;">
|
|
|
<div class=" btn" name="功能" onclick="AuthorityClick(this);">功能</div>
|
|
|
</td>
|
|
|
<td style="width:16.66%;">
|
|
|
<div class=" btn" name="点菜" onclick="AuthorityClick(this);">点菜</div>
|
|
|
</td>
|
|
|
<td style="width:16.66%;">
|
|
|
<div class=" btn" name="交班" onclick="AuthorityClick(this);">交班</div>
|
|
|
</td>
|
|
|
<td style="width:16.66%;">
|
|
|
<div class=" btn" name="离线支付" onclick="AuthorityClick(this);">离线支付</div>
|
|
|
</td>
|
|
|
<td style="width:16px;">
|
|
|
<div class=" btn" name="最小化" onclick="AuthorityClick(this);">最小化</div>
|
|
|
</td>
|
|
|
<td style="width:16px;">
|
|
|
<div class=" btn" name="关闭" onclick="AuthorityClick(this);">退出</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<!--底部-->
|
|
|
<div class="divbottom">
|
|
|
<table class="table">
|
|
|
<tbody>
|
|
|
<tr style="text-align:center;">
|
|
|
<td class="StoreInfoName">门店:1213451615-深圳店</td>
|
|
|
<td></td>
|
|
|
<td class="posNo">pos号:00808</td>
|
|
|
<td></td>
|
|
|
<td class="staffNo">工号:00001</td>
|
|
|
<td></td>
|
|
|
<td class="loginDate">登录时间:2018.11.13 14:30</td>
|
|
|
<td></td>
|
|
|
<td class="thisdate">当前时间:2018.11.13 16:14</td>
|
|
|
<td></td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
|
|
|
<div class="coverdiv" style="width:100%;height:100%; position:absolute; opacity:0.5; background-color:#000000; top:0;left:0; display:none;">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="PayView" style="width:630px;height:318px;background:#ffffff; padding:24px; border-radius:4px; display:none; position: absolute; " onkeydown="return PayViewkeydown(event)">
|
|
|
<div class="PayViewClose" style=" width:100%;" onclick="PayViewClose()">
|
|
|
<img src="img/down.png" style="float:right;" />
|
|
|
</div>
|
|
|
<div style="height:63px; width:100%; text-align:center;">
|
|
|
<label style="font-size:24px;font-family:SourceHanSansCN-Regular;font-weight:400;color:rgba(68,68,68,1); ">扫码支付:</label>
|
|
|
<label class="PayViewMoney" style="font-size:30px;font-family:SourceHanSansCN-Regular;font-weight:bold;color:rgba(255,134,37,1); ">¥0.00</label>
|
|
|
</div>
|
|
|
|
|
|
<div style="width:100%;height:70px; background-color:#ffffff;">
|
|
|
<div style="height:70px;width:472px; float:left; border:1px solid #D0D0D0;border-radius:4px;">
|
|
|
<input class="payview_paycode" type="text" style="width:352px; border:0; outline:none; font-size:24px; margin-top:16px;" placeholder="请提示顾客出示付款码" />
|
|
|
<div class="btn" style=" height:50px; line-height:39px; font-size:20px; background-color:#0FCABE;color:#F3F3F3; margin-top:-10px;" onclick="ShowPayTicket()">手工核销</div>
|
|
|
</div>
|
|
|
<div class="btn " style="background:rgba(255,134,37,1); color:#F3F3F3;height:50px; line-height:39px; font-size:20px; float:right; margin-top:10px; width:90px;" onclick="$('.payview_paycode').val('');">
|
|
|
清空
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div style="height: 40px; width:100%; margin-top:10px;">
|
|
|
<img src="img/prompt.png" style="float:left; margin-top:10px;" />
|
|
|
<label class="payviewmessage" style="font-size:24px;font-family:SourceHanSansCN-Regular;font-weight:400;color:rgba(255,134,37,1); margin: 5px 0 0 5px ;float:left;">请扫码...</label>
|
|
|
</div>
|
|
|
<div class="btn center-block" style="font-size:24px; background-color:#0FCABE; color:#fff; width:300px; margin-top:35px; height: 56px;line-height: 42px;" onclick="PayViewPayMent();">
|
|
|
确认
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<!--支付窗口-->
|
|
|
<!--<div class="modal fade" style="margin-top:15%;" id="PayView" tabindex="-1" role="dialog" aria-labelledby="PayView" aria-hidden="true" onkeydown="return PayViewkeydown(event) ">
|
|
|
<div class="modal-dialog">
|
|
|
<div style="width:630px;height:318px;background:#ffffff; padding:24px; border-radius:4px; ">
|
|
|
<div class="PayViewClose" style=" width:100%;" onclick="PayViewClose()">
|
|
|
<img src="img/down.png" style="float:right;" />
|
|
|
</div>
|
|
|
<div style="height:63px; width:100%; text-align:center;">
|
|
|
<label style="font-size:24px;font-family:SourceHanSansCN-Regular;font-weight:400;color:rgba(68,68,68,1); ">扫码支付:</label>
|
|
|
<label class="PayViewMoney" style="font-size:30px;font-family:SourceHanSansCN-Regular;font-weight:bold;color:rgba(255,134,37,1); ">¥0.00</label>
|
|
|
</div>
|
|
|
|
|
|
<div style="width:100%;height:70px; background-color:#ffffff;">
|
|
|
<div style="height:70px;width:472px; float:left; border:1px solid #D0D0D0;border-radius:4px;">
|
|
|
<input class="payview_paycode" type="text" style="width:352px; border:0; outline:none; font-size:24px; margin-top:16px;" placeholder="请提示顾客出示付款码" />
|
|
|
<div class="btn" style=" height:50px; line-height:39px; font-size:20px; background-color:#0FCABE;color:#F3F3F3; margin-top:-10px;" onclick="ShowPayTicket()">手工核销</div>
|
|
|
</div>
|
|
|
<div class="btn " style="background:rgba(255,134,37,1); color:#F3F3F3;height:50px; line-height:39px; font-size:20px; float:right; margin-top:10px; width:90px;" onclick="$('.payview_paycode').val('');">
|
|
|
清空
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div style="height: 40px; width:100%; margin-top:10px;">
|
|
|
<img src="img/prompt.png" style="float:left; margin-top:10px;" />
|
|
|
<label class="payviewmessage" style="font-size:24px;font-family:SourceHanSansCN-Regular;font-weight:400;color:rgba(255,134,37,1); margin: 5px 0 0 5px ;float:left;">请扫码...</label>
|
|
|
</div>
|
|
|
<div class="btn center-block" style="font-size:24px; background-color:#0FCABE; color:#fff; width:300px; margin-top:35px; height: 56px;line-height: 42px;" onclick="PayViewPayMent();">
|
|
|
确认
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>-->
|
|
|
<!--重新结账界面-->
|
|
|
<div class="modal fade" orderno="" style="margin-top:15%;" id="AnewPayView" tabindex="-1" role="dialog" aria-labelledby="AnewPayView" aria-hidden="true">
|
|
|
<div class="modal-dialog">
|
|
|
<div style="width:610px;height:500px; background:rgba(243,243,243,1);border-radius:4px; padding:20px 36px 34px 36px;">
|
|
|
<div name="AnewPayViewClose" style="width:100%;height:19px; " onclick="AnewPayClick(this)">
|
|
|
<img src="img/down.png" style="float:right" />
|
|
|
</div>
|
|
|
<div style="text-align:center; width:100%; height:29px; margin-bottom:40px;">
|
|
|
<img style="margin-left: 20px;" src="img/Warning.png" />
|
|
|
</div>
|
|
|
<div style="text-align:center;">
|
|
|
<label class="AnewPayViewmessage" style="font-size:24px;font-weight:400;color:rgba(68,68,68,1);">
|
|
|
|
|
|
</label>
|
|
|
</div>
|
|
|
|
|
|
<div style="width:100%; margin-top:10px;">
|
|
|
<label style="color:#F45B63;font-size:24px;font-weight:400;">选择再支付:</label>
|
|
|
<table class="center-block" style="margin-left:20px;">
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td name="AnewPayViewMemberPay" style="padding:20px 30px 0 30px;" onclick="AnewPayClick(this)"><div class="btn" style="height:90px;width:200px; background-color:#B39877; color:#F3F3F3;font-size:24px; line-height:73px;"><img src="img/cards_white.png" style="margin-right:12px;" />会员卡</div></td>
|
|
|
<td name="AnewPayViewScanCodePay" style="padding:20px 0 0 0;" onclick="AnewPayClick(this)"><div class="btn" style="height:90px;width:200px; background-color:#01AAEF; color:#F3F3F3;font-size:24px; line-height:73px;"><img src="img/Rectangular_white.png" style="margin-right:12px;" />扫码支付</div></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td name="AnewPayViewCashPay" style="padding:20px 30px 0 30px;" onclick="AnewPayClick(this)"><div class="btn" style="height:90px;width:200px; background-color:#FF8625; color:#F3F3F3;font-size:24px; line-height:73px;"><img src="img/Cashier_white.png" style="margin-right:12px;" />现金</div></td>
|
|
|
<td name="AnewPayViewCancelOrder" style="padding:20px 0 0 0;" onclick="AnewPayClick(this)"><div class="btn" style="height:90px;width:200px; background-color:#C4C4C4; color:#F3F3F3;font-size:24px; line-height:73px;">取消订单</div></td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<!--正在支付-->
|
|
|
<div class="modal fade" orderno="" style="margin-top:15%;" id="InPayMent" tabindex="-1" role="dialog" aria-labelledby="InPayMent" aria-hidden="true">
|
|
|
<div class="modal-dialog">
|
|
|
<div style=" height:450px; background:rgba(243,243,243,1);border-radius:4px; padding:20px;">
|
|
|
<!--<div style="width:100%;height:19px;" onclick="InPayMentHide();">
|
|
|
<img src="img/down.png" style="float:right" />
|
|
|
</div>-->
|
|
|
<div style="text-align:center; width:100%; height:29px; margin-bottom:40px;">
|
|
|
<img class="center-block" src="img/Warning.png" />
|
|
|
</div>
|
|
|
<div style="width:100%;text-align:center; margin-bottom: 20px;padding-top: 20px;">
|
|
|
<h2 class="center-block InPayMentImportant " style="margin:0; color:#666666">请提醒顾客,输入支付密码</h2>
|
|
|
</div>
|
|
|
<div style="width:100%;text-align:center; margin-bottom: 20px;padding-top: 20px;">
|
|
|
<h2 class="center-block InPayMentTxt" style="margin:0; color :#F45B63; font-size:50px">0S</h2>
|
|
|
</div>
|
|
|
<div style="height:120px;width:100%;">
|
|
|
<div class="btn center-block" style="background-color:#0FCABE;margin-bottom: 20px; " onclick="InPayMentHide();">
|
|
|
<p style="font-size:36px; color:#F3F3F3;">最小化</p>
|
|
|
<p style="font-size:27px; color:#F3F3F3;">继续下一单收银</p>
|
|
|
</div>
|
|
|
<div style="height:30px; text-align:center;">
|
|
|
<p style="font-size:24px; color:#666666">最小化后,不会影响顾客支付</p>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
<!--<div class="">
|
|
|
<img height="150" width="150" id="InPayMentImg" class="center-block" src="img/Loading.png" />
|
|
|
</div>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
//折叠代码
|
|
|
function Fold() {
|
|
|
//$(document).keydown(function (event) {
|
|
|
// var _code = event.keyCode;
|
|
|
// var _val = 0;
|
|
|
// switch (_code) {
|
|
|
// case 96:
|
|
|
// case 48://0
|
|
|
// _val = 0;
|
|
|
// break;
|
|
|
// case 97:
|
|
|
// case 49://1
|
|
|
// _val = 1;
|
|
|
// break;
|
|
|
// case 98:
|
|
|
// case 50://2
|
|
|
// _val = 2;
|
|
|
// break;
|
|
|
// case 99:
|
|
|
// case 51://3
|
|
|
// _val = 3;
|
|
|
// break;
|
|
|
// case 100:
|
|
|
// case 52://4
|
|
|
// _val = 4;
|
|
|
// break;
|
|
|
// case 101:
|
|
|
// case 53://5
|
|
|
// _val = 5;
|
|
|
// break;
|
|
|
// case 102:
|
|
|
// case 54://6
|
|
|
// _val = 6;
|
|
|
// break;
|
|
|
// case 103:
|
|
|
// case 55://7
|
|
|
// _val = 7;
|
|
|
// break;
|
|
|
// case 104:
|
|
|
// case 56://8
|
|
|
// _val = 8;
|
|
|
// break;
|
|
|
// case 105:
|
|
|
// case 57://9
|
|
|
// _val = 9;
|
|
|
// break;
|
|
|
// case 110://点
|
|
|
// decimalpoint();
|
|
|
// return;
|
|
|
// case 107://加
|
|
|
// AddOrderItem();
|
|
|
// return;
|
|
|
// case 8://退格
|
|
|
// BackspaceMoneyVal();
|
|
|
// return;
|
|
|
// default:
|
|
|
// return;
|
|
|
// }
|
|
|
// SetTxtmoney(_val);
|
|
|
//})
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//==================页面加载完成事假===================
|
|
|
$(document).ready(function () {
|
|
|
//键盘文件垂直居中
|
|
|
$('.numericadd').css('line-height', $('.numericadd').height() + "px");//+元素高度
|
|
|
$('.numerickey').css('line-height', $('.numerickey').height() + "px");//数字键文字居中
|
|
|
$('.numerictable .numerickey').css('height', $('.numerictable td').height() + 1);
|
|
|
var _m = ($('.shoppingdiv').height());
|
|
|
$('.shoppingitem').css('height', ($('.shoppingdiv').height() - 56 - 56 - 40) + 'px');
|
|
|
|
|
|
/*微信订单角标不显示*/
|
|
|
$('.btn .weixin').hide();
|
|
|
$('.divright').hide();
|
|
|
|
|
|
try {
|
|
|
net.Init();
|
|
|
LoadItemData();
|
|
|
} catch (e) {
|
|
|
window.location.reload()
|
|
|
}
|
|
|
|
|
|
//$('#PayView').on('shown.bs.modal ', function (e) {
|
|
|
// $(".payview_paycode").focus();
|
|
|
//})
|
|
|
|
|
|
//日期
|
|
|
setInterval(time, 1000);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var _dochei = $(document).height();
|
|
|
var _payheight = $('.PayView').height();
|
|
|
|
|
|
var _docwidth = $(document).width();
|
|
|
var _paywidth = $('.PayView').width();
|
|
|
|
|
|
$('.PayView').css('top', (_dochei / 2) - (_payheight / 2) + 'px')
|
|
|
$('.PayView').css('left', (_docwidth / 2) - (_paywidth / 2) + 'px')
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//==================获取当前时间=======================
|
|
|
function time() {
|
|
|
var myDate = new Date();
|
|
|
//获取当前年
|
|
|
var year = myDate.getFullYear();
|
|
|
//获取当前月
|
|
|
var month = myDate.getMonth() + 1;
|
|
|
//获取当前日
|
|
|
var date = myDate.getDate();
|
|
|
var h = myDate.getHours(); //获取当前小时数(0-23)
|
|
|
var m = myDate.getMinutes(); //获取当前分钟数(0-59)
|
|
|
var s = myDate.getSeconds();
|
|
|
|
|
|
var now = year + '-' + getNow(month) + "-" + getNow(date) + " " + getNow(h) + ':' + getNow(m) + ":" + getNow(s);
|
|
|
$('.thisdate').html('当前时间:' + now);
|
|
|
}
|
|
|
|
|
|
function getNow(s) {
|
|
|
return s < 10 ? '0' + s : s;
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//==================下一页、上一页=======================
|
|
|
function page_turning(_this) {
|
|
|
var _name = $(_this).html();
|
|
|
|
|
|
switch (_name) {
|
|
|
case "上一页":
|
|
|
$('.shoppingitem').scrollTop($('.shoppingitem').scrollTop() - $('.shoppingitem').height());
|
|
|
break;
|
|
|
case "下一页":
|
|
|
$('.shoppingitem').scrollTop($('.shoppingitem').scrollTop() + $('.shoppingitem').height());
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//==================数字键按钮事件=======================
|
|
|
function OnClickNumericKey(_this) {
|
|
|
try {
|
|
|
//获取点击Key值
|
|
|
var _keyval = $(_this).attr('key');
|
|
|
switch (_keyval) {
|
|
|
case "backspace"://退格
|
|
|
BackspaceMoneyVal();
|
|
|
break;
|
|
|
case "+"://累加商品
|
|
|
AddOrderItem();
|
|
|
break;
|
|
|
case "."://点
|
|
|
decimalpoint();
|
|
|
break;
|
|
|
default:
|
|
|
SetTxtmoney(_keyval);
|
|
|
break;
|
|
|
}
|
|
|
} catch (e) {
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//写金额文本框值
|
|
|
function SetTxtmoney(val) {
|
|
|
|
|
|
val = parseInt(val);
|
|
|
|
|
|
if (isNaN(val)) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if ($('.txtmoneyval').val().length >= 6) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if ($('.txtmoneyval').val() == '0') {
|
|
|
$('.txtmoneyval').val('');
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($('.txtmoneyval').val().indexOf('.') != -1) {
|
|
|
|
|
|
var _ddd = $('.txtmoneyval').val().substring($('.txtmoneyval').val().indexOf('.') + 1);
|
|
|
|
|
|
if ($('.txtmoneyval').val().substring($('.txtmoneyval').val().indexOf('.') + 1) == "") {
|
|
|
$('.txtmoneyval').val($('.txtmoneyval').val() + Number(val));
|
|
|
net.OnInputValueChanged($('.txtmoneyval').val());
|
|
|
InitializeTotal();
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
if ($('.txtmoneyval').val().indexOf('.') != -1) {
|
|
|
if ($('.txtmoneyval').val().substring($('.txtmoneyval').val().indexOf('.') + 2) != "") {
|
|
|
$('.txtmoneyval').val(Number($('.txtmoneyval').val()).toFixed(2));
|
|
|
net.OnInputValueChanged($('.txtmoneyval').val());
|
|
|
InitializeTotal();
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$('.txtmoneyval').val(parseFloat($('.txtmoneyval').val() + val));
|
|
|
|
|
|
net.OnInputValueChanged($('.txtmoneyval').val());
|
|
|
InitializeTotal();
|
|
|
}
|
|
|
|
|
|
//直接写入数值到文本
|
|
|
function SetTxt(val) {
|
|
|
$('.txtmoneyval').val(val);
|
|
|
InitializeTotal();
|
|
|
}
|
|
|
|
|
|
//键盘按.逻辑
|
|
|
function decimalpoint() {
|
|
|
var _val = $('.txtmoneyval').val();
|
|
|
|
|
|
if (_val == null || _val == "") {
|
|
|
|
|
|
$('.txtmoneyval').val('0.');//空值加
|
|
|
|
|
|
} else if (_val.indexOf('.') == -1) {
|
|
|
|
|
|
$('.txtmoneyval').val($('.txtmoneyval').val() + '.');//无小数点加
|
|
|
|
|
|
}
|
|
|
net.OnInputValueChanged($('.txtmoneyval').val());
|
|
|
InitializeTotal();
|
|
|
}
|
|
|
|
|
|
//退格
|
|
|
function BackspaceMoneyVal() {
|
|
|
$('.txtmoneyval').val($('.txtmoneyval').val().substring(0, ($('.txtmoneyval').val().length - 1)))
|
|
|
net.OnInputValueChanged($('.txtmoneyval').val());
|
|
|
InitializeTotal();
|
|
|
}
|
|
|
|
|
|
//"+" 累加商品
|
|
|
function AddOrderItem() {
|
|
|
net.OrderOperateBtn_Click("AddItem");
|
|
|
$('.txtmoneyval').val('');
|
|
|
InitializeTotal();
|
|
|
}
|
|
|
|
|
|
function ShowPayTicket() {
|
|
|
PayViewClose(null);
|
|
|
if (net.GetIsAnewPay()) {
|
|
|
var _TradeNo = $('.PayView').attr('TradeNo');
|
|
|
net.ShowPayTicket(_TradeNo);
|
|
|
} else {
|
|
|
net.ShowPayTicket();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//======================回调函数===============================
|
|
|
//点击购物车项事件
|
|
|
function ShoppingClickRow(_this) {
|
|
|
$('.shoppingtbody tr').removeClass('ShoppingSelect');
|
|
|
$(_this).addClass('ShoppingSelect');
|
|
|
}
|
|
|
|
|
|
//更新购物车行
|
|
|
function UpdateShoppingRow(_data) {
|
|
|
try {
|
|
|
_data = JSON.parse(_data);
|
|
|
|
|
|
if (_data == null) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
}
|
|
|
|
|
|
//tr
|
|
|
$('#saleitem' + _data.orderNo + ' .quantity').html(_data.quantity);
|
|
|
$('#saleitem' + _data.orderNo + ' .salePrice').html(_data.salePrice.toFixed(2));
|
|
|
$('#saleitem' + _data.orderNo + ' .amount').html(_data.amount.toFixed(2));
|
|
|
$('#saleitem' + _data.orderNo + ' .discount').html(_data.discount.toFixed(2));
|
|
|
}
|
|
|
|
|
|
//添加购物车项
|
|
|
function AddNewShoppintRow(_data) {
|
|
|
try {
|
|
|
_data = JSON.parse(_data);
|
|
|
var _html = "<tr id='saleitem" + _data.orderNo + "' class=\"ShoppingSelect\" onclick='ShoppingClickRow(this)' >" +
|
|
|
"<td style=\"font-size:16px;\">" +
|
|
|
_data.productName +//商品名称
|
|
|
"</td>" +
|
|
|
"<td class='quantity' style=\"font-size:16px; text-align:center;;width:70px;\">" +
|
|
|
_data.quantity +//商品数量
|
|
|
"</td>" +
|
|
|
"<td class='salePrice'class=\"\" style=\"font-size:16px; text-align:center;width:70px;\">" +
|
|
|
_data.salePrice.toFixed(2) +
|
|
|
"</td>" +
|
|
|
"<td class='amount' style=\"font-size:16px; text-align:center; width:70px;\">" +
|
|
|
_data.amount.toFixed(2) +
|
|
|
"</td>" +
|
|
|
"<td class='discount' style=\"font-size:16px; text-align:central; width:70px;\">" +
|
|
|
_data.discount.toFixed(2) +
|
|
|
"</td>" +
|
|
|
"</tr>";
|
|
|
$('.shoppingtbody').children().removeClass('ShoppingSelect');
|
|
|
$('.shoppingtbody').append(_html);
|
|
|
$('.shoppingitem').scrollTop($('.shoppingitem table').height());
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//删除购物车当前项
|
|
|
function DeleteShoppintRow(_data) {
|
|
|
try {
|
|
|
_data = JSON.parse(_data);
|
|
|
$('#saleitem' + _data.orderNo).remove();
|
|
|
} catch (e) {
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//权限统一函数
|
|
|
function AuthorityClick(_this) {
|
|
|
var _name = $(_this).attr('name');
|
|
|
|
|
|
switch (_name) {
|
|
|
case "删除":
|
|
|
OrderNoDeleteShoppintRow();
|
|
|
InitializeTotal();
|
|
|
break;
|
|
|
case "消单":
|
|
|
net.OrderOperateBtn_Click("消单");
|
|
|
InitializeTotal();
|
|
|
break;
|
|
|
case "微信订单":/*zhangy 2020-03-13 Add 小程序订单*/
|
|
|
|
|
|
$('.divright').html("");
|
|
|
$('.divright').hide();
|
|
|
|
|
|
net.OrderOperateBtn_Click("微信订单");
|
|
|
break;
|
|
|
case "会员卡":
|
|
|
$('.txtmoneyval').val('');
|
|
|
net.FunctionBtn_Click("会员卡");
|
|
|
break;
|
|
|
case "现金":
|
|
|
$('.txtmoneyval').val('');
|
|
|
net.FunctionBtn_Click("现金");
|
|
|
break;
|
|
|
case "扫码支付":
|
|
|
$('.txtmoneyval').val('');
|
|
|
net.FunctionBtn_Click("扫码支付");
|
|
|
break;
|
|
|
case "功能":
|
|
|
net.OrderOperateBtn_Click("功能");
|
|
|
break;
|
|
|
case "交班":
|
|
|
net.OrderOperateBtn_Click("交班");
|
|
|
break;
|
|
|
case "离线支付":
|
|
|
$('.txtmoneyval').val('');
|
|
|
net.FunctionBtn_Click("离线支付");
|
|
|
break;
|
|
|
case "最小化":
|
|
|
net.OrderOperateBtn_Click("最小化");
|
|
|
break;
|
|
|
case "关闭":
|
|
|
net.OrderOperateBtn_Click("退出");
|
|
|
break;
|
|
|
case "点菜":
|
|
|
if ($(_this).html() == '点菜') {
|
|
|
$(_this).html('自选');
|
|
|
$('.keyboarddiv').hide();
|
|
|
$('.itemlistdiv').show();
|
|
|
setTimeout(function myfunction() {
|
|
|
var _mianheight = $('.merchandiselist').height();
|
|
|
//100+10
|
|
|
var heightnumber = (_mianheight / Math.round((_mianheight / 100))) - 10;
|
|
|
var _mianwidth = $('.merchandiselist').width();
|
|
|
var widthnumber = (_mianwidth / Math.round((_mianwidth / 130))) - 10;
|
|
|
|
|
|
var _merchandiselist = $('.merchandiselist').children();
|
|
|
for (var i = 0; i < _merchandiselist.length; i++) {
|
|
|
|
|
|
$(_merchandiselist[i]).css({ width: widthnumber + "px", height: heightnumber + "px" });
|
|
|
}
|
|
|
|
|
|
}, 0);
|
|
|
|
|
|
} else {
|
|
|
$(_this).html('点菜');
|
|
|
$('.keyboarddiv').show();
|
|
|
$('.itemlistdiv').hide();
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//消单
|
|
|
function DeleteAllShoppintRow(_isfalse) {
|
|
|
/**zhangy 2020-03-21 Edit 不再弹框提示*/
|
|
|
var is = true;
|
|
|
if (_isfalse == "false") {
|
|
|
is = false;
|
|
|
}
|
|
|
|
|
|
var isDeleteAll = net.DeleteAllShoppintRow(is);
|
|
|
if (isDeleteAll) {
|
|
|
$('.shoppingtbody').children().remove();
|
|
|
}
|
|
|
$('.txtmoneyval').val('');
|
|
|
InitializeTotal();
|
|
|
}
|
|
|
|
|
|
//删除
|
|
|
function OrderNoDeleteShoppintRow() {
|
|
|
var _id = $('.ShoppingSelect').attr('id');
|
|
|
|
|
|
_id = _id.substring(8);
|
|
|
if (net.OrderNoDeleteShoppintRow(_id)) {
|
|
|
$('.ShoppingSelect').remove();
|
|
|
$('.txtmoneyval').val('');
|
|
|
|
|
|
var _body = $('.shoppingtbody').children();
|
|
|
if (_body == null) {
|
|
|
return;
|
|
|
}
|
|
|
$(_body[_body.length - 1]).addClass('ShoppingSelect');
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
//添加正在支付列
|
|
|
function AddOrderPayList(_data) {
|
|
|
_data = JSON.parse(_data);
|
|
|
|
|
|
if (_data == null) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var _childrens = $('.OrderPayList').children();
|
|
|
|
|
|
if (_childrens.length >= 10) {
|
|
|
for (var i = 9; i < _childrens.length; i++) {
|
|
|
$(_childrens[i]).remove();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var _html = "";
|
|
|
var img = "";
|
|
|
if (_data.PayType == '会员卡') {
|
|
|
img = "<img src=\"img/VIPCard.png\" />";
|
|
|
} else if (_data.PayType == '现金支付') {
|
|
|
img = "<img src=\"img/_Cash.png\" />";
|
|
|
} else if (_data.PayType == '微信支付') {
|
|
|
img = "<img style=' height:26px; width: 26px;' src=\"img/wechat.png\" />";
|
|
|
} else if (_data.PayType == '离线支付') {
|
|
|
img = "<img style=' height:26px; width: 26px;' src=\"img/OfflinePay.png\" />";
|
|
|
} else {
|
|
|
img = "<img style=' height:26px; width: 26px;' src=\"img/alipay.png\" />";
|
|
|
}
|
|
|
|
|
|
_html = "<tr id='" + _data.no + "' status='0' >" +
|
|
|
"<td style ='font-size:16px; border-bottom: 1px solid #E0E0E0;'>" +
|
|
|
_data.Time.substring(10) +
|
|
|
"</td>" +
|
|
|
"<td style='font-size:16px; width:70px; border-bottom: 1px solid #E0E0E0; text-align:center;'>" +
|
|
|
_data.no.substring(14) +
|
|
|
" </td>" +
|
|
|
"<td style='font-size:16px; width:70px; border-bottom: 1px solid #E0E0E0; text-align:center;'>" +
|
|
|
_data.Money.toFixed(2) +
|
|
|
" </td>" +
|
|
|
" <td id='orderpaytype' style='font-size:16px; width:100px; border-bottom: 1px solid #E0E0E0; text-align:center;'>" +
|
|
|
img +
|
|
|
"</td>" +
|
|
|
"<td style='font-size:16px; width:100px; border-bottom: 1px solid #E0E0E0; text-align:center; padding: 0;' data-toggle='tooltip' data-placement='top' name='扫码支付' onclick=\"AnewPay(this)\">" +
|
|
|
"<div id='orderpaystate' class=\"btn btn-info\"style =' margin-top:3px;' >支付中...</div>" +
|
|
|
"</td>" +
|
|
|
"</tr>";
|
|
|
|
|
|
$('.OrderPayList').prepend(_html);
|
|
|
$("[data-toggle='tooltip']").tooltip();
|
|
|
}
|
|
|
|
|
|
//更新正在支付列
|
|
|
function UpdateAddOrderPayList(_data) {
|
|
|
_data = JSON.parse(_data);
|
|
|
var _mess = _data.Message;
|
|
|
var _order = _data.orderObject;
|
|
|
var img = "";
|
|
|
if (_order == null) {
|
|
|
return;
|
|
|
}
|
|
|
$('#' + _order.no + ' #orderpaystate').html(_order.PayState);
|
|
|
if (_data.PayType != null && _data.PayType != "") {
|
|
|
|
|
|
if (_data.PayType == '会员卡') {
|
|
|
img = "<img src=\"img/VIPCard.png\" />";
|
|
|
} else if (_data.PayType == '人民币') {
|
|
|
img = "<img src=\"img/_Cash.png\" />";
|
|
|
} else if (_data.PayType == '微信支付') {
|
|
|
img = "<img style=' height:26px; width: 26px;' src=\"img/wechat.png\" />";
|
|
|
} else if (_data.PayType == '离线支付') {
|
|
|
img = "<img style=' height:26px; width: 26px;' src=\"img/OfflinePay.png\" />";
|
|
|
} else {
|
|
|
img = "<img style=' height:26px; width: 26px;' src=\"img/alipay.png\" />";
|
|
|
}
|
|
|
$('#' + _order.no + ' #orderpaytype').html(img);
|
|
|
}
|
|
|
|
|
|
|
|
|
//$('#' + _order.no + ' #orderpaystate').parent().attr('data-original-title', _mess);
|
|
|
switch (_order.PayState) {
|
|
|
case "支付成功":
|
|
|
$('#' + _order.no).attr('status', "0");
|
|
|
$('#' + _order.no + ' #orderpaystate').attr('class', 'btn btn-success');
|
|
|
$('#' + _order.no + ' #orderpaystate').css('background', '#00C7BA');
|
|
|
break;
|
|
|
case "订单取消":
|
|
|
$('#' + _order.no).attr('status', "2");
|
|
|
$('#' + _order.no + ' #orderpaystate').attr('class', 'btn ');
|
|
|
$('#' + _order.no + ' #orderpaystate').css('background', '#E0E0E0');
|
|
|
break;
|
|
|
default:
|
|
|
$('#' + _order.no).attr('status', "1");
|
|
|
$('#' + _order.no + ' #orderpaystate').attr('class', 'btn btn-danger');
|
|
|
$('#' + _order.no + ' #orderpaystate').css('background', '#F45B63');
|
|
|
break;
|
|
|
}
|
|
|
var _table = $('.OrderPayList').children();
|
|
|
|
|
|
console.log(_table);
|
|
|
|
|
|
var defeated = [];
|
|
|
for (var i = _table.length; i >= 0; i--) {
|
|
|
if ($(_table[i]).attr('status') == '1') {
|
|
|
defeated[defeated.length] = $(_table[i]);
|
|
|
$(_table[i]).remove();
|
|
|
}
|
|
|
}
|
|
|
for (var i = 0; i < defeated.length; i++) {
|
|
|
$('.OrderPayList').prepend($(defeated[i]));
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|
|
|
//显示销售金额
|
|
|
function InitializeTotal() {
|
|
|
var _quantity = 0;
|
|
|
var _salePrice = 0;
|
|
|
var _amount = 0;
|
|
|
var _discount = 0;
|
|
|
var _data = net.GetOrderObject();// 查询当前订单
|
|
|
var _item = null;// net.GetThisItme();// 查询当前项
|
|
|
|
|
|
if (_item != null) {
|
|
|
_item = JSON.parse(_item);
|
|
|
_quantity = Number(Number(_quantity) + _item.quantity).toFixed(2);
|
|
|
_salePrice = Number(Number(_salePrice) + _item.salePrice).toFixed(2);
|
|
|
_amount = Number(Number(_amount) + _item.receivableAmount).toFixed(2);
|
|
|
_discount = Number(Number(_discount) + _item.discountAmount).toFixed(2);
|
|
|
}
|
|
|
if (_data == null || _data == "") {
|
|
|
return;
|
|
|
}
|
|
|
try {
|
|
|
_data = JSON.parse(_data);
|
|
|
for (var i = 0; i < _data.items.length; i++) {
|
|
|
_quantity = Number(Number(_quantity) + _data.items[i].quantity).toFixed(2);
|
|
|
_salePrice = Number(Number(_salePrice) + _data.items[i].salePrice).toFixed(2);
|
|
|
_amount = Number(Number(_amount) + _data.items[i].receivableAmount).toFixed(2);
|
|
|
_discount = Number(Number(_discount) + _data.items[i].discountAmount).toFixed(2);
|
|
|
|
|
|
//$('#saleitem' + _data.items[i].orderNo + ' .amount').html(_data.items[i].salePrice.toFixed(2));
|
|
|
//$('#saleitem' + _data.items[i].orderNo + ' .discount').html(_data.items[i].discountAmount.toFixed(2));
|
|
|
}
|
|
|
$('.total_amount').html(_amount);
|
|
|
$('.total_discount').html(_discount);
|
|
|
$('.total_copies').html(_quantity);
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function ChangNetworkStatus(str) {
|
|
|
|
|
|
var _Status = str;
|
|
|
|
|
|
|
|
|
$('.networkstate').html(_Status);
|
|
|
if (_Status == '网络正常') {
|
|
|
$('.divdot').css('background', 'rgba(0,199,186,1)');
|
|
|
|
|
|
} else {
|
|
|
$('.divdot').css('background', 'red');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//======================支付界面============================
|
|
|
//重新结账
|
|
|
function AnewPay(_this) {
|
|
|
var _no = $(_this).parent().attr('id');
|
|
|
net.TradeNoAnewPay(_no);
|
|
|
}
|
|
|
|
|
|
//退出支付界面
|
|
|
function PayViewClose(_data) {
|
|
|
$('.coverdiv').hide();
|
|
|
$('.PayView').hide();
|
|
|
}
|
|
|
|
|
|
//显示扫码界面
|
|
|
function ShowPayView(_data) {
|
|
|
_data = JSON.parse(_data);
|
|
|
$('.payview_paycode').val('');
|
|
|
$('.PayViewMoney').html('¥ ' + _data.receivable);
|
|
|
$('.payviewmessage').html('请扫码...');
|
|
|
|
|
|
$('.coverdiv').show();
|
|
|
$('.PayView').show();
|
|
|
$(".payview_paycode").focus()
|
|
|
$('.PayView').attr('TradeNo', _data.no);
|
|
|
|
|
|
}
|
|
|
|
|
|
//确认支付
|
|
|
function PayViewPayMent() {
|
|
|
var _paycode = $('.payview_paycode').val();
|
|
|
var _TradeNo = $('.PayView').attr('TradeNo');
|
|
|
if (_paycode == null || _paycode == "") {
|
|
|
$('.payviewmessage').html('请输入支付码!');
|
|
|
return;
|
|
|
};
|
|
|
|
|
|
//优化代码,在非常卡的电脑上条码没有完成的加载在文本框中就自定回车,导致条码错误
|
|
|
|
|
|
if (_paycode.length != 18) {
|
|
|
setTimeout("CallPay('" + _TradeNo + "', '" + _paycode + "')", "500");
|
|
|
} else {
|
|
|
CallPay(_TradeNo, _paycode);
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
function CallPay(_TradeNo, _paycode) {
|
|
|
if (net.GetIsAnewPay()) {
|
|
|
net.AnewPay(_TradeNo, _paycode); //重新结账
|
|
|
} else {
|
|
|
net.InitiatePay(_paycode);//当前订单结账
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//支付状态提示
|
|
|
function SetPayViewMessage(_str) {
|
|
|
$('.payviewmessage').html(_str);
|
|
|
}
|
|
|
|
|
|
//支付界面事件
|
|
|
function PayViewkeydown(_this) {
|
|
|
$('.payview_paycode').focus();
|
|
|
|
|
|
switch (_this.keyCode) {
|
|
|
case 55:
|
|
|
case 13:
|
|
|
PayViewPayMent();
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//======================重新结账界面============================
|
|
|
function ShowAnewPayView(_data) {
|
|
|
var _data = JSON.parse(_data);
|
|
|
|
|
|
$('#AnewPayView').attr('orderno', _data.TradeNo)
|
|
|
$('#AnewPayView').modal('show');
|
|
|
|
|
|
var _str = _data;
|
|
|
|
|
|
if (_data.ErrorMessage.indexOf("请扫描微信支付授权码(以10/11/12/13/14/15为前缀的18位数字)") != -1) {
|
|
|
_data.ErrorMessage = "支付条码错误,请重新扫码"
|
|
|
}
|
|
|
$('.AnewPayViewmessage').html(_data.ErrorMessage)
|
|
|
}
|
|
|
|
|
|
//重新结账点击事件
|
|
|
function AnewPayClick(_this) {
|
|
|
var _nane = $(_this).attr('name');
|
|
|
var _orderno = $('#AnewPayView').attr('orderno');
|
|
|
|
|
|
AnewPayViewHide();
|
|
|
|
|
|
switch (_nane) {
|
|
|
case "AnewPayViewMemberPay":
|
|
|
net.AnewPay(_orderno, '会员卡')
|
|
|
break;
|
|
|
case "AnewPayViewScanCodePay":
|
|
|
net.AnewPay(_orderno)
|
|
|
break;
|
|
|
case "AnewPayViewCashPay":
|
|
|
net.AnewPay(_orderno, '现金')
|
|
|
break;
|
|
|
case "AnewPayViewCancelOrder":
|
|
|
net.AnewPay(_orderno, '取消订单')
|
|
|
break;
|
|
|
case "PayViewClose":
|
|
|
AnewPayViewHide();
|
|
|
break;
|
|
|
default:
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function AnewPayViewHide() {
|
|
|
// $('.InPayMentTxt').html('');
|
|
|
$('#AnewPayView').modal('hide');
|
|
|
}
|
|
|
|
|
|
|
|
|
//======================重新结账界面============================
|
|
|
//图片旋转
|
|
|
//var angle = 0;
|
|
|
setInterval(function () {
|
|
|
countdown();
|
|
|
}, 1000);
|
|
|
|
|
|
function ShowInPayMent(_data) {
|
|
|
_data = JSON.parse(_data)
|
|
|
|
|
|
$('#InPayMent').modal({ backdrop: 'static', keyboard: false });
|
|
|
if ($('#InPayMent').hasClass('in')) {
|
|
|
return;
|
|
|
}
|
|
|
$("#InPayMent").modal('show');
|
|
|
$("#InPayMent").attr('orderno', _data.TradeNo)
|
|
|
_CountDown = _data.Date;
|
|
|
}
|
|
|
var _CountDown = 0;
|
|
|
|
|
|
function countdown() {
|
|
|
|
|
|
_CountDown--;
|
|
|
|
|
|
if (_CountDown > 0) {
|
|
|
$(".InPayMentTxt").html(_CountDown + "S");
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
//关闭
|
|
|
function InPayMentHide() {
|
|
|
|
|
|
//var _orderno = $('#AnewPayView').attr('orderno');
|
|
|
//net.AnewPay(_orderno, '取消订单')
|
|
|
|
|
|
var _data = $("#InPayMent").attr('orderno');
|
|
|
net.IsPayOrderList(_data);
|
|
|
$("#InPayMent").modal('hide');
|
|
|
}
|
|
|
|
|
|
//更新状态
|
|
|
function InPayMentStatusUpdate(_data) {
|
|
|
|
|
|
_data = JSON.parse(_data);
|
|
|
var _mess = _data.Message;
|
|
|
var _order = _data.orderObject;
|
|
|
var _thisno = $("#InPayMent").attr('orderno');
|
|
|
|
|
|
if (_thisno != _order.no) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
// $('.InPayMentTxt').html(_mess);
|
|
|
|
|
|
if (_mess != "用户正在输入密码") {
|
|
|
InPayMentHide();
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
//var m_size, m_current, m_total;
|
|
|
//======================商品信息============================
|
|
|
function LoadItemData() {
|
|
|
var _data = JSON.parse(net.GetItemData());
|
|
|
//_data = _json.data;
|
|
|
//m_size = _json.size;
|
|
|
//m_current = _json.current;
|
|
|
//m_total = _json.total;
|
|
|
|
|
|
if (_data == null) {
|
|
|
return;
|
|
|
} else {
|
|
|
var _html = "";
|
|
|
$('.merchandiselist').html();
|
|
|
for (var i = 0; i < _data.length; i++) {
|
|
|
_html =
|
|
|
"<div id='" + _data[i].id + "' specId='" + _data[i].specId + "' class=\"btn \" style=\"height:" + 100 + "px; width:" + 130 + "px; margin:5px; background-color:#DDDEE2;\" onclick='AddItem(this)'>" +
|
|
|
"<div class=\"\" style=\"height:80% ;width:100%; white-space: normal;\">" +
|
|
|
"<!--商品名称-->" +
|
|
|
"<div style=\"text-align:left;font-size:14px;font-weight:bold;word-wrap: break-word;word-break: break-all;overflow: hidden;white-space: normal;color: #444444; \">" +
|
|
|
_data[i].name +
|
|
|
"</div>" +
|
|
|
"</div>" +
|
|
|
"<div class=\"\" style=\"height:20%;width:100%;\">" +
|
|
|
"<!--价格-->" +
|
|
|
"<div style=\"text-align:left; font-size:14px; font-weight:bold;color:rgba(244,91,99,1);line-height:22px;\">¥" + _data[i].price + "</div>" +
|
|
|
"</div>" +
|
|
|
"</div>";
|
|
|
$('.merchandiselist').prepend(_html);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function AddItem(_this) {
|
|
|
var _id = $(_this).attr('id');
|
|
|
net.AddItemData(_id);
|
|
|
InitializeTotal();
|
|
|
}
|
|
|
|
|
|
|
|
|
function Itempageturning(_this) {
|
|
|
var _name = $(_this).attr('name');
|
|
|
|
|
|
t = document.getElementsByClassName('merchandiselist')[0].scrollTop;
|
|
|
l = document.getElementsByClassName('merchandiselist')[0].scrollLeft;
|
|
|
w = document.getElementsByClassName('merchandiselist')[0].scrollWidth;
|
|
|
h = document.getElementsByClassName('merchandiselist')[0].scrollHeight;
|
|
|
mh = $('.merchandiselist').height()
|
|
|
|
|
|
|
|
|
switch (_name) {
|
|
|
case "上一页":
|
|
|
document.getElementsByClassName('merchandiselist')[0].scrollTop = (t - mh);
|
|
|
break;
|
|
|
case "下一页":
|
|
|
document.getElementsByClassName('merchandiselist')[0].scrollTop = (t + mh);
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
//console.log("--------------------------------------------------");
|
|
|
//console.log(t);
|
|
|
//console.log(l);
|
|
|
//console.log(w);
|
|
|
//console.log(h);
|
|
|
//console.log(mh);
|
|
|
|
|
|
|
|
|
// $(".progress-bar-success").css({ width: GetPercent(t, h) });
|
|
|
}
|
|
|
|
|
|
function GetPercent(num, total) {
|
|
|
/// <summary>
|
|
|
/// 求百分比
|
|
|
/// </summary>
|
|
|
/// <param name="num">当前数</param>
|
|
|
/// <param name="total">总数</param>
|
|
|
num = parseFloat(num);
|
|
|
total = parseFloat(total);
|
|
|
if (isNaN(num) || isNaN(total)) {
|
|
|
return "-";
|
|
|
}
|
|
|
return total <= 0 ? "0%" : (Math.round(num / total * 10000) / 100.00) + "%";
|
|
|
}
|
|
|
//======================底部信息============================
|
|
|
function StaffData(_data) {
|
|
|
var data = JSON.parse(_data);
|
|
|
$('.StoreInfoName').html('门店:' + data.StoreInfoName);
|
|
|
$('.posNo').html('POS号:' + data.posNo);
|
|
|
$('.staffNo').html('工号:' + data.No);
|
|
|
$('.loginDate').html('登录时间:' + data.loginDate);
|
|
|
}
|
|
|
|
|
|
/*微信订单消息提醒*/
|
|
|
function ShowWxProgramOrderNotify(_data) {
|
|
|
var data = JSON.parse(_data);
|
|
|
if (data.enable == 1) {
|
|
|
$('.weixin').show();
|
|
|
} else {
|
|
|
$('.weixin').hide();
|
|
|
}
|
|
|
|
|
|
$('.divright').hide();
|
|
|
$('.divright').html(data.count);
|
|
|
$('.divright').show();
|
|
|
}
|
|
|
</script>
|
|
|
</body>
|
|
|
</html> |