Authored by 邱骏

增加一步直接判断是否在小程序中打开

... ... @@ -990,7 +990,10 @@ $(function() {
getShopProductLinks();
// 小程序相关处理
if (!window.WeixinJSBridge || !window.WeixinJSBridge.invoke) {
if (navigator.userAgent.match(/MicroMessenger/i) && navigator.userAgent.match(/miniProgram/i)) {
console.log('miniprogram');
miniProgramHandleInit();
} else if (!window.WeixinJSBridge || !window.WeixinJSBridge.invoke) {
document.addEventListener('WeixinJSBridgeReady', miniProgramHandleInit, false);
} else {
miniProgramHandleInit();
... ...