|
@@ -1050,12 +1050,13 @@ export const wxScanCode = function (scanType = ['qrCode', 'barCode']) {
|
|
|
needResult: 1,
|
|
|
scanType: scanType,
|
|
|
success: res => {
|
|
|
+ alert(res.resultStr)
|
|
|
console.log(res)
|
|
|
var result = res.resultStr
|
|
|
var resultArr = result.split(',')
|
|
|
var codeVal = resultArr[resultArr.length - 1]
|
|
|
- var codeValStr = codeVal.split('=')
|
|
|
- resolve(codeValStr[codeValStr.length - 1])
|
|
|
+
|
|
|
+ resolve(codeVal)
|
|
|
},
|
|
|
fail: res => {
|
|
|
reject('')
|