解决安卓扫码问题
diff --git a/www/js/scan.js b/www/js/scan.js
index e75eba8..bb0a001 100644
--- a/www/js/scan.js
+++ b/www/js/scan.js
@@ -32,9 +32,9 @@
$.alert('扫描出错,请稍后再试:' + JSON.stringify(err), '提示');
} else {
// The scan completed, display the contents of the QR code:
- //$.alert(text, '提示');
- showRet(text);
QRScanner.destroy();
+ $.alert(text, '提示');
+ showRet(text);
}
}
//开始扫描,需要将页面的背景设置成透明
@@ -78,10 +78,11 @@
}
var userid = window.localStorage.getItem("userid");
if(url.indexOf("?")>0){
- url=url+'&uid='+userid;
+ url=url+'&userid='+userid;
}else{
- url=url+'?uid='+userid;
+ url=url+'?userid='+userid;
}
+ console.log(url)
inAppBrowserRef = cordova.ThemeableBrowser.open(url, '_blank', {
statusbar: {
color: '#03a9f4ff'