|
@@ -172,7 +172,7 @@
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
-<script>
|
|
|
|
|
|
|
+<script>
|
|
|
function getQueryString(name) {
|
|
function getQueryString(name) {
|
|
|
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
|
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
|
|
var r = window.location.search.substr(1).match(reg);
|
|
var r = window.location.search.substr(1).match(reg);
|
|
@@ -228,7 +228,7 @@
|
|
|
}
|
|
}
|
|
|
console.log('打开链接:', scheme);
|
|
console.log('打开链接:', scheme);
|
|
|
|
|
|
|
|
- if (isWeibo == 0) {
|
|
|
|
|
|
|
+ if (isWeibo == 0) {
|
|
|
// 非微博
|
|
// 非微博
|
|
|
var u = `https://m.weibo.cn/feature/openapp?scheme=${encodeURIComponent(scheme)}`;
|
|
var u = `https://m.weibo.cn/feature/openapp?scheme=${encodeURIComponent(scheme)}`;
|
|
|
console.log('u = ' + u )
|
|
console.log('u = ' + u )
|
|
@@ -272,7 +272,7 @@
|
|
|
window.location.href = `sinaweibo://login?redirect_scheme=${(encodeURIComponent(location.href))} `;
|
|
window.location.href = `sinaweibo://login?redirect_scheme=${(encodeURIComponent(location.href))} `;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
// 关于微博 ======== END
|
|
// 关于微博 ======== END
|
|
|
|
|
|
|
@@ -303,8 +303,10 @@
|
|
|
isBeginActivity = '<?php echo $isBeginActivity; ?>';
|
|
isBeginActivity = '<?php echo $isBeginActivity; ?>';
|
|
|
user = '<?php echo $user; ?>';
|
|
user = '<?php echo $user; ?>';
|
|
|
taskData = '<?php echo $task; ?>';
|
|
taskData = '<?php echo $task; ?>';
|
|
|
|
|
+ realPlayCount = '<?php echo $realCount; ?>';
|
|
|
task = ''
|
|
task = ''
|
|
|
|
|
|
|
|
|
|
+ console.log("realPlayCount = " + realPlayCount )
|
|
|
if(isBeginActivity == 0){
|
|
if(isBeginActivity == 0){
|
|
|
// 活动结束
|
|
// 活动结束
|
|
|
$('#shareBtn').hide();
|
|
$('#shareBtn').hide();
|
|
@@ -536,25 +538,25 @@
|
|
|
function startGame( ){
|
|
function startGame( ){
|
|
|
var u = YUMING + 'index/index/startGame'
|
|
var u = YUMING + 'index/index/startGame'
|
|
|
var obj = { token:theTokenData };
|
|
var obj = { token:theTokenData };
|
|
|
- $.post(u,obj,function(data){
|
|
|
|
|
- console.log(data)
|
|
|
|
|
- gameId = data.data.gameId;
|
|
|
|
|
|
|
+ $.post(u,obj,function(data){
|
|
|
|
|
+ console.log(data)
|
|
|
|
|
+ gameId = data.data.gameId;
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
// 结束游戏
|
|
// 结束游戏
|
|
|
function endGame( ){
|
|
function endGame( ){
|
|
|
var u = YUMING + 'index/index/endGame'
|
|
var u = YUMING + 'index/index/endGame'
|
|
|
var obj = { token:theTokenData , gameId:gameId };
|
|
var obj = { token:theTokenData , gameId:gameId };
|
|
|
- $.post(u,obj,function(data){
|
|
|
|
|
- console.log(data)
|
|
|
|
|
|
|
+ $.post(u,obj,function(data){
|
|
|
|
|
+ console.log(data)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
// 提交彩蛋
|
|
// 提交彩蛋
|
|
|
function submitEasterEgg( eggIndex ){
|
|
function submitEasterEgg( eggIndex ){
|
|
|
var u = YUMING + 'index/index/submitEasterEgg'
|
|
var u = YUMING + 'index/index/submitEasterEgg'
|
|
|
var obj = { token:theTokenData , gameId:gameId, easterEgg:eggIndex };
|
|
var obj = { token:theTokenData , gameId:gameId, easterEgg:eggIndex };
|
|
|
- $.post(u,obj,function(data){
|
|
|
|
|
- console.log(data)
|
|
|
|
|
|
|
+ $.post(u,obj,function(data){
|
|
|
|
|
+ console.log(data)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -834,11 +836,13 @@ var _hmt = _hmt || [];
|
|
|
(function() {
|
|
(function() {
|
|
|
var hm = document.createElement("script");
|
|
var hm = document.createElement("script");
|
|
|
hm.src = "https://hm.baidu.com/hm.js?6ce0a606815de6165a7d60a0d5e364d9";
|
|
hm.src = "https://hm.baidu.com/hm.js?6ce0a606815de6165a7d60a0d5e364d9";
|
|
|
- var s = document.getElementsByTagName("script")[0];
|
|
|
|
|
|
|
+ var s = document.getElementsByTagName("script")[0];
|
|
|
s.parentNode.insertBefore(hm, s);
|
|
s.parentNode.insertBefore(hm, s);
|
|
|
})();
|
|
})();
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
|
|
+<script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js"></script>
|
|
|
|
|
+<script>LA.init({id: "JlKtuj69pWUP1HoN",ck: "JlKtuj69pWUP1HoN"})</script>
|
|
|
|
|
|
|
|
</body>
|
|
</body>
|
|
|
|
|
|