|
@@ -72,6 +72,9 @@ Page({
|
|
let charePileId = decodeURIComponent(q).replace("https://cdgl.pjnes.com/", "");
|
|
let charePileId = decodeURIComponent(q).replace("https://cdgl.pjnes.com/", "");
|
|
//console.log(charePileId);
|
|
//console.log(charePileId);
|
|
log.info('[首页]', '[微信扫一扫]', { 'q': q });
|
|
log.info('[首页]', '[微信扫一扫]', { 'q': q });
|
|
|
|
+ if(!charePileId){
|
|
|
|
+ charePileId = "0"
|
|
|
|
+ }
|
|
if (charePileId) {
|
|
if (charePileId) {
|
|
let userInfo = wx.getStorageSync('userInfo');
|
|
let userInfo = wx.getStorageSync('userInfo');
|
|
let isLogin = wx.getStorageSync('isLogin');
|
|
let isLogin = wx.getStorageSync('isLogin');
|
|
@@ -607,6 +610,9 @@ Page({
|
|
//console.log(d);
|
|
//console.log(d);
|
|
//兼容标准格式hlht://202001022222220101.330414214二维码
|
|
//兼容标准格式hlht://202001022222220101.330414214二维码
|
|
let scanResult = d.result;
|
|
let scanResult = d.result;
|
|
|
|
+ if(scanResult || scanResult == ""){
|
|
|
|
+ scanResult="*"
|
|
|
|
+ }
|
|
console.log(scanResult);
|
|
console.log(scanResult);
|
|
if (scanResult.startsWith("hlht://") || scanResult.startsWith("HLHT://")){
|
|
if (scanResult.startsWith("hlht://") || scanResult.startsWith("HLHT://")){
|
|
scanResult = scanResult.substring(7, scanResult.indexOf("."));
|
|
scanResult = scanResult.substring(7, scanResult.indexOf("."));
|