| | |
| | | pacName: null, |
| | | pacRemark: null, |
| | | }, |
| | | // valueUrl: "ws://127.0.0.1:6789/websocket", |
| | | // valueUrls: "ws://127.0.0.1:6789/websocket", |
| | | valueUrl: "ws://192.168.1.244:6789/websocket", |
| | | valueUrls: "ws://192.168.1.244:6789/websocket", |
| | | valueUrl: "ws://127.0.0.1:6789/websocket", |
| | | valueUrls: "ws://127.0.0.1:6789/websocket", |
| | | // valueUrl: "ws://192.168.1.244:6789/websocket", |
| | | // valueUrls: "ws://192.168.1.244:6789/websocket", |
| | | webSocket: null, |
| | | // 身份证需要 |
| | | // socket: null, |
| | |
| | | if (isChineseChar(resultObj.data.sex)) { |
| | | _this.form.cusSex = resultObj.data.sex == "女" ? 1 : 0 |
| | | } else { |
| | | _this.form.cusSex = resultObj.data.sex; |
| | | _this.form.cusSex = resultObj.data.sex == "1" ? 0 : 1; |
| | | } |
| | | _this.form.cusNational = resultObj.data.mz; |
| | | _this.form.cusBrithday = resultObj.data.csrq; |
| | |
| | | websocket.onmessage = function (event) { |
| | | var resultObj = JSON.parse(event.data); |
| | | _this.form.cusName = resultObj.data.name; |
| | | _this.form.cusSex = resultObj.data.sex; |
| | | const isChineseChar = (char) => /[\u4E00-\u9FA5]/.test(char) |
| | | // _this.form.cusSex = resultObj.data.sex; |
| | | if (isChineseChar(resultObj.data.sex)) { |
| | | _this.form.cusSex = resultObj.data.sex == "女" ? 1 : 0 |
| | | } else { |
| | | _this.form.cusSex = resultObj.data.sex == "1" ? 0 : 1; |
| | | } |
| | | _this.form.cusNational = resultObj.data.mz; |
| | | _this.form.cusBrithday = resultObj.data.csrq; |
| | | if (_this.form.cusBrithday) { |