Commit f45ef40e by doszhang

dos

parent 19e3279e
......@@ -9,7 +9,7 @@
<meta name="format-detection" content="telephone=no">
{:assign var=projectId value=0}
{:assign var=rem value=false}
{:assign var=version value='1.3.2'}
{:assign var=version value='1.3.3'}
{:block name='projectx'}{:/block}
{:if $rem == true}
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1, user-scalable=no">
......@@ -127,6 +127,7 @@
<script src="__CDN__/js/jquery-2.1.3.min.js"></script>
<script src="__CDN__/js/jquery-notify.min.js"></script>
<script src="__CDN__/js/common.js?version={:$version}"></script>
<script src="__CDN__/js/vconsole.min.js"></script>
{:block name='js'}{:/block}
......
......@@ -103,9 +103,9 @@ $(document).ready(function () {
$('.rule-page').on('touchmove', function () {
return false;
});
// var vConsole = new VConsole();
var vConsole = new VConsole();
// console.log('ok')
// audioAutoPlay('music')
audioAutoPlay('music')
$('.bg').css({
'height': fixHeight + 'px'
});
......@@ -280,26 +280,26 @@ function showIntro() {
})
}
// function audioAutoPlay(id) {
// var audio = document.getElementById(id);
// if (window.WeixinJSBridge) {
function audioAutoPlay(id) {
var audio = document.getElementById(id);
if (window.WeixinJSBridge) {
// WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
// audio.play();
// }, false);
// } else {
WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
audio.play();
}, false);
} else {
// document.addEventListener("WeixinJSBridgeReady", function () {
// WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
// // alert(4)
// audio.play();
// });
// }, false);
// }
// audio.play();
document.addEventListener("WeixinJSBridgeReady", function () {
WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
// alert(4)
audio.play();
});
}, false);
}
audio.play();
// return false;
// }
return false;
}
function showItem() {
if (showItemStatus) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment