|
@@ -105,6 +105,7 @@
|
|
|
<body oncontextmenu="Back()">
|
|
|
</body>
|
|
|
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
|
|
|
+ <script src="https://lf1-cdn-tos.bytegoofy.com/goofy/developer/jssdk/jssdk-1.0.3.js"></script>
|
|
|
<script type="text/javascript" src="../static/js/jquery-1.11.0.min.js"></script>
|
|
|
<script type="text/javascript" src="helper.js"></script>
|
|
|
<script type="text/javascript" src="pcm-player.js"></script>
|
|
@@ -199,9 +200,15 @@
|
|
|
ws.close();
|
|
|
throttle(doConnect, 100);
|
|
|
if (errorTime > 1000) {
|
|
|
- wx.miniProgram.switchTab({
|
|
|
- url: '/pages/home/home'
|
|
|
- })
|
|
|
+ if(navigator.userAgent.toLowerCase().includes('toutiaomicroapp')){
|
|
|
+ tt.miniProgram.switchTab({
|
|
|
+ url: '/pages/home/home'
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ wx.miniProgram.switchTab({
|
|
|
+ url: '/pages/home/home'
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -215,9 +222,15 @@
|
|
|
ws.close();
|
|
|
throttle(doConnect, 100);
|
|
|
if (errorTime > 1000) {
|
|
|
- wx.miniProgram.switchTab({
|
|
|
- url: '/pages/home/home'
|
|
|
- })
|
|
|
+ if(navigator.userAgent.toLowerCase().includes('toutiaomicroapp')){
|
|
|
+ tt.miniProgram.switchTab({
|
|
|
+ url: '/pages/home/home'
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ wx.miniProgram.switchTab({
|
|
|
+ url: '/pages/home/home'
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
ws.addEventListener('message', function (event) {
|
|
@@ -761,9 +774,15 @@
|
|
|
})
|
|
|
|
|
|
$("#upload").on("click", function () {
|
|
|
- wx.miniProgram.switchTab({
|
|
|
- url: '/pages/home/home'
|
|
|
- })
|
|
|
+ if(navigator.userAgent.toLowerCase().includes('toutiaomicroapp')){
|
|
|
+ tt.miniProgram.switchTab({
|
|
|
+ url: '/pages/home/home'
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ wx.miniProgram.switchTab({
|
|
|
+ url: '/pages/home/home'
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
function selectText(x) {
|