|
@@ -35,16 +35,14 @@
|
|
<link rel="stylesheet" href="https://cdn.bootcss.com/weui/1.1.3/style/weui.min.css" />
|
|
<link rel="stylesheet" href="https://cdn.bootcss.com/weui/1.1.3/style/weui.min.css" />
|
|
<link rel="stylesheet" href="https://cdn.bootcss.com/jquery-weui/1.2.1/css/jquery-weui.min.css" />
|
|
<link rel="stylesheet" href="https://cdn.bootcss.com/jquery-weui/1.2.1/css/jquery-weui.min.css" />
|
|
<style>
|
|
<style>
|
|
- .try-use-wrap,
|
|
|
|
- .buy-phone-wrap,
|
|
|
|
- .look-wrap {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 100%;
|
|
|
|
- position: fixed;
|
|
|
|
- top: 0;
|
|
|
|
- left: 0;
|
|
|
|
- z-index: 9999;
|
|
|
|
- background: rgba(0, 0, 0, 0.5);
|
|
|
|
|
|
+ .try-use-wrap, .buy-phone-wrap, .look-wrap{
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+ position: fixed;
|
|
|
|
+ top: 0;
|
|
|
|
+ left: 0;
|
|
|
|
+ z-index: 9999;
|
|
|
|
+ background: rgba(0, 0, 0, 0.5);
|
|
display: none;
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -441,7 +439,7 @@
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
- var hidden, visibilityChange;
|
|
|
|
|
|
+ var hidden, visibilityChange;
|
|
if (typeof document.hidden !== "undefined") { // Opera 12.10 and Firefox 18 and later support
|
|
if (typeof document.hidden !== "undefined") { // Opera 12.10 and Firefox 18 and later support
|
|
hidden = "hidden";
|
|
hidden = "hidden";
|
|
visibilityChange = "visibilitychange";
|
|
visibilityChange = "visibilitychange";
|
|
@@ -466,9 +464,11 @@
|
|
url: '/pages/home/home'
|
|
url: '/pages/home/home'
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
- uni.navigateTo({
|
|
|
|
- url: '/pages/index/index'
|
|
|
|
- });
|
|
|
|
|
|
+ document.addEventListener('UniAppJSBridgeReady', function () {
|
|
|
|
+ uni.webView.navigateTo({
|
|
|
|
+ url: '/pages/index/index'
|
|
|
|
+ });
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, false);
|
|
}, false);
|