From 9a453b9f20fd003be920af0d2c8e0a73693de93b Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 10 七月 2020 09:39:46 +0800
Subject: [PATCH] #
---
src/main/webapp/views/pdaCe/index.html | 25 +++++++++++++++++--------
1 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/src/main/webapp/views/pdaCe/index.html b/src/main/webapp/views/pdaCe/index.html
index 502a1d5..17767b5 100644
--- a/src/main/webapp/views/pdaCe/index.html
+++ b/src/main/webapp/views/pdaCe/index.html
@@ -225,18 +225,17 @@
tips("璇锋彁鍙栫墿鏂�", true);
return;
}
- console.log(JSON.stringify({
- barcode: barcode,
- combMats: matData
- }))
httpRequest({
- httpUrl: baseUrl+"/mobile/comb/form",
+ httpUrl: baseUrl+"/mobile/comb/auth",
type: 'post',
- headers: [{token: getCookie('token')}],
- data: {
+ headers: [
+ {token: getCookie('token')}
+ ,{"Content-type":'application/json;charset=UTF-8',}
+ ],
+ data: JSON.stringify({
barcode: barcode,
combMats: matData
- },
+ }) ,
}, function (res) {
if (res.code === 200) {
reset();
@@ -442,10 +441,20 @@
if (defaultContentType) {
xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
}
+ console.log(JSON.stringify(requestData))
xmlhttp.send(requestData);
}
}
+ document.onkeyup = function (e) {
+ if (window.event)//濡傛灉window.event瀵硅薄瀛樺湪锛屽氨浠ユ浜嬩欢瀵硅薄涓哄噯
+ e = window.event;
+ var code = e.charCode || e.keyCode;
+ if (code === 13) {
+ comb()
+ }
+ }
+
// todo
setTimeout(function () {
code.value = "888"
--
Gitblit v1.9.1