移除 www
This commit is contained in:
Vendored
+11
-11
@@ -137,19 +137,19 @@ class ActiveEpc {
|
||||
})
|
||||
}
|
||||
|
||||
var e = _this.__check(uid, /\d{1,2}/g, "用户编号填写错误!")
|
||||
var e = _this.__check(uid, /^\d{1,2}$/g, "用户编号填写错误!")
|
||||
if ( e ) {
|
||||
reject && reject(e);
|
||||
return
|
||||
}
|
||||
|
||||
e = _this.__check(utype, /\d{1}/g, "用户类型填写错误!");
|
||||
e = _this.__check(utype, /^\d{1}$/g, "用户类型填写错误!");
|
||||
if ( e ) {
|
||||
reject && reject(e);
|
||||
return
|
||||
}
|
||||
|
||||
e = _this.__check(pwd, /\d{6}/g, "密码填写错误!");
|
||||
e = _this.__check(pwd, /^\d{6}$/g, "密码填写错误!");
|
||||
if ( e ) {
|
||||
reject && reject(e);
|
||||
return
|
||||
@@ -213,7 +213,7 @@ class ActiveEpc {
|
||||
var _this = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
var e = _this.__check(minutes, /\d{1,2}/g, "时间填写错误!");
|
||||
var e = _this.__check(minutes, /^\d{1,2}$/g, "时间填写错误!");
|
||||
if ( e ) {
|
||||
reject && reject(e);
|
||||
return
|
||||
@@ -257,17 +257,17 @@ class ActiveEpc {
|
||||
})
|
||||
}
|
||||
|
||||
var e = _this.__check(uid, /\d{1,2}/g, "用户编号填写错误!");
|
||||
var e = _this.__check(uid, /^\d{1,2}$/g, "用户编号填写错误!");
|
||||
if ( e ) {
|
||||
reject && reject(e);
|
||||
return
|
||||
}
|
||||
e = _this.__check(utype, /\d{1}/g, "用户类型填写错误!");
|
||||
e = _this.__check(utype, /^\d{1}$/g, "用户类型填写错误!");
|
||||
if ( e ) {
|
||||
reject && reject(e);
|
||||
return
|
||||
}
|
||||
e = _this.__check(pwd, /\d{6}/g, "密码填写错误!");
|
||||
e = _this.__check(pwd, /^\d{6}$/g, "密码填写错误!");
|
||||
if ( e ) {
|
||||
reject && reject(e);
|
||||
return
|
||||
@@ -306,17 +306,17 @@ class ActiveEpc {
|
||||
|
||||
|
||||
|
||||
var e = _this.__check(accu, /\d{1,32}/g, "收方账户填写错误!");
|
||||
var e = _this.__check(accu, /^\d{1,32}$/g, "收方账户填写错误!");
|
||||
if ( e ) {
|
||||
reject && reject(e);
|
||||
return
|
||||
}
|
||||
e = _this.__check(ticketType, /\d{1}/g, "票据类型填写错误!");
|
||||
e = _this.__check(ticketType, /^\d{1}$/g, "票据类型填写错误!");
|
||||
if ( e ) {
|
||||
reject && reject(e);
|
||||
return
|
||||
}
|
||||
e = _this.__check(ticketNo, /\d{1,8}/g, "票据编号填写错误!");
|
||||
e = _this.__check(ticketNo, /^\d{1,8}$/g, "票据编号填写错误!");
|
||||
if ( e ) {
|
||||
reject && reject(e);
|
||||
return
|
||||
@@ -326,7 +326,7 @@ class ActiveEpc {
|
||||
reject && reject(e);
|
||||
return
|
||||
}
|
||||
e = _this.__check(banlance, /\d{1,16}/g, "金额填写错误!");
|
||||
e = _this.__check(banlance, /^\d{1,16}$/g, "金额填写错误!");
|
||||
if ( e ) {
|
||||
reject && reject(e);
|
||||
return
|
||||
|
||||
Binary file not shown.
+10
-5
@@ -5,11 +5,16 @@
|
||||
<title>无线支付密码器 js 接口示例</title>
|
||||
<style>
|
||||
body {
|
||||
width: 430px;
|
||||
width: 100%;
|
||||
overflow-x: hidden;
|
||||
color: sienna;
|
||||
}
|
||||
|
||||
.wrap{
|
||||
display:flex;
|
||||
display: -webkit-flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.step {
|
||||
margin: 1rem;
|
||||
@@ -58,11 +63,11 @@
|
||||
</style>
|
||||
<link href="layx.min.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<body class="wrap">
|
||||
<div style="width: 430px">
|
||||
<div id="title-warning" style="width: 100%; color:#f3b223; font-size: 2rem ;text-align: center"><span>您的浏览器不支持! </span></div>
|
||||
|
||||
<div style="text-align: center"><h2>功能测试</h2></div>
|
||||
<div style="text-align: center"><h2>功能测试<small>(<a target="_blank" href="./active_cpe_setup.exe">active 驱动下载</a>)</small></h2></div>
|
||||
|
||||
<div class="step">
|
||||
<h3>基本功能</h3>
|
||||
@@ -143,7 +148,7 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 仅此示例程序需要依赖 jquery -->
|
||||
<script src="jquery.min.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user