|
@@ -84,7 +84,7 @@ Page({
|
|
|
|
|
|
// 处理扫描用户二维码
|
|
// 处理扫描用户二维码
|
|
handleScanUser (response) {
|
|
handleScanUser (response) {
|
|
- var scodeType = response.split('|')[0] == 'DOCUMENT' ? true : false
|
|
|
|
|
|
+ var scodeType = response.split('|')[0].trim() == 'DOCUMENT' ? true : false
|
|
if (!scodeType) {
|
|
if (!scodeType) {
|
|
wx.showModal({
|
|
wx.showModal({
|
|
content: '请扫描正确的二维码',
|
|
content: '请扫描正确的二维码',
|
|
@@ -94,8 +94,8 @@ Page({
|
|
} else {
|
|
} else {
|
|
// DOCUMENT|documentId|uuid
|
|
// DOCUMENT|documentId|uuid
|
|
var successScanTimer = setTimeout(() => {
|
|
var successScanTimer = setTimeout(() => {
|
|
- var documentId = response.split('|')[1]
|
|
|
|
- var uuid = response.split('|')[2]
|
|
|
|
|
|
+ var documentId = response.split('|')[1].trim()
|
|
|
|
+ var uuid = response.split('|')[2].trim()
|
|
this.writeOffQueryFn(documentId, uuid)
|
|
this.writeOffQueryFn(documentId, uuid)
|
|
clearTimeout(successScanTimer)
|
|
clearTimeout(successScanTimer)
|
|
}, 300);
|
|
}, 300);
|