...
|
...
|
@@ -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();
|
...
|
...
|
|