Commit e1b1675d by dawei

feat: 火箭

parent a1326844
Showing with 14 additions and 14 deletions
...@@ -304,7 +304,7 @@ ...@@ -304,7 +304,7 @@
<script src="lib/default.js?v='2024062102'"></script> <script src="lib/default.js?v='2024062102'"></script>
<script> <script>
$(function(){ $(function(){
if(sessionStorage.lang!=2){ if(sessionStorage.lang!=2 && sessionStorage.lang!=0){
$("body").addClass("bg-en") $("body").addClass("bg-en")
$(".layer-rule-content img").attr("src","images/en/rule-text.png") $(".layer-rule-content img").attr("src","images/en/rule-text.png")
$(".en-txt1").text(" player") $(".en-txt1").text(" player")
...@@ -516,7 +516,7 @@ $(function(){ ...@@ -516,7 +516,7 @@ $(function(){
html+='<div class="layer-record1">'+list.gameStage+'</div>'; html+='<div class="layer-record1">'+list.gameStage+'</div>';
html+='<div class="layer-record2">'+list.bettingAmount+'</div>'; html+='<div class="layer-record2">'+list.bettingAmount+'</div>';
if(list.jumpHeight==0){ if(list.jumpHeight==0){
if(sessionStorage.lang==2)html+='<div class="layer-record3">未下船</div>'; if(sessionStorage.lang==2 || sessionStorage.lang==0)html+='<div class="layer-record3">未下船</div>';
else html+='<div class="layer-record3">explosion</div>'; else html+='<div class="layer-record3">explosion</div>';
} }
else html+='<div class="layer-record3">'+list.jumpHeight/100+'x</div>'; else html+='<div class="layer-record3">'+list.jumpHeight/100+'x</div>';
...@@ -551,7 +551,7 @@ $(function(){ ...@@ -551,7 +551,7 @@ $(function(){
return; return;
} }
// console.log("获取视图信息接口",data) // console.log("获取视图信息接口",data)
if(sessionStorage.lang==2) var textArr=['米'] if(sessionStorage.lang==2 || sessionStorage.lang==0) var textArr=['米']
else var textArr=[' m'] else var textArr=[' m']
sessionStorage.gameId=data.result.shipData.gameStage sessionStorage.gameId=data.result.shipData.gameStage
...@@ -581,7 +581,7 @@ $(function(){ ...@@ -581,7 +581,7 @@ $(function(){
// sessionStorage.userFace=data.result.userInfoResult.avatar // sessionStorage.userFace=data.result.userInfoResult.avatar
//第一次切换需要动画 //第一次切换需要动画
myDiamond() myDiamond()
if(sessionStorage.lang==2)$(".time-box-tips").text('準備中 · · ·') if(sessionStorage.lang==2 || sessionStorage.lang==0)$(".time-box-tips").text('準備中 · · ·')
else $(".time-box-tips").text('Getting ready · · ·') else $(".time-box-tips").text('Getting ready · · ·')
layer.closeAll() layer.closeAll()
$(".num-box").show() $(".num-box").show()
...@@ -613,7 +613,7 @@ $(function(){ ...@@ -613,7 +613,7 @@ $(function(){
myDiamond() myDiamond()
$(".mi-bg").fadeIn(350) $(".mi-bg").fadeIn(350)
goHotShow() goHotShow()
if(sessionStorage.lang==2)$(".time-box-tips").text('飛行中 · · ·') if(sessionStorage.lang==2 || sessionStorage.lang==0)$(".time-box-tips").text('飛行中 · · ·')
else $(".time-box-tips").text('in flight · · ·') else $(".time-box-tips").text('in flight · · ·')
$(".num-box").hide() $(".num-box").hide()
$(".bottom-box1").css("bottom","-3.1rem") $(".bottom-box1").css("bottom","-3.1rem")
...@@ -627,7 +627,7 @@ $(function(){ ...@@ -627,7 +627,7 @@ $(function(){
if(data.result.userData.player==1){ if(data.result.userData.player==1){
//用户有参与 //用户有参与
if(data.result.userData.jumper==1){ if(data.result.userData.jumper==1){
if(sessionStorage.lang==2)$(".out-fly-box").html('<div class="out-fly-end">你已下船('+data.result.userData.jumpHeight+'米,获得'+data.result.userData.jumpRewardChip+'露水)</div>') if(sessionStorage.lang==2 || sessionStorage.lang==0)$(".out-fly-box").html('<div class="out-fly-end">你已下船('+data.result.userData.jumpHeight+'米,获得'+data.result.userData.jumpRewardChip+'露水)</div>')
else $(".out-fly-box").html('<div class="out-fly-end">By flying '+data.result.userData.jumpHeight+'m, gain '+data.result.userData.jumpRewardChip+' DEWs rewards.</div>') else $(".out-fly-box").html('<div class="out-fly-end">By flying '+data.result.userData.jumpHeight+'m, gain '+data.result.userData.jumpRewardChip+' DEWs rewards.</div>')
} }
else if(data.result.shipData.explosion==0){ else if(data.result.shipData.explosion==0){
...@@ -750,7 +750,7 @@ $(function(){ ...@@ -750,7 +750,7 @@ $(function(){
clearInterval(miTimer) clearInterval(miTimer)
$(".num-box").hide() $(".num-box").hide()
$(".mi-bg").fadeOut(350) $(".mi-bg").fadeOut(350)
if(sessionStorage.lang==2)$(".time-box-tips").text('结算中 · · ·') if(sessionStorage.lang==2 || sessionStorage.lang==0)$(".time-box-tips").text('结算中 · · ·')
else $(".time-box-tips").text('settling · · ·') else $(".time-box-tips").text('settling · · ·')
oldMeter=100 oldMeter=100
setTimeout(function() { setTimeout(function() {
...@@ -838,20 +838,20 @@ $(function(){ ...@@ -838,20 +838,20 @@ $(function(){
var html=[]; var html=[];
if(data.result.topUidFace==''){ if(data.result.topUidFace==''){
if(sessionStorage.lang==2)html+='<p class="topUser-p1">本日王牌飛行員</p>'; if(sessionStorage.lang==2 || sessionStorage.lang==0)html+='<p class="topUser-p1">本日王牌飛行員</p>';
else html+='<p class="topUser-p1">Pilot of the Day</p>'; else html+='<p class="topUser-p1">Pilot of the Day</p>';
if(sessionStorage.lang==2)html+='<p class="topUser-p2">虛位以待</p>'; if(sessionStorage.lang==2 || sessionStorage.lang==0)html+='<p class="topUser-p2">虛位以待</p>';
else html+='<p class="topUser-p2">Not yet</p>'; else html+='<p class="topUser-p2">Not yet</p>';
if(sessionStorage.lang==2)html+='<p class="topUser-p3">飛行高度</p>'; if(sessionStorage.lang==2 || sessionStorage.lang==0)html+='<p class="topUser-p3">飛行高度</p>';
else html+='<p class="topUser-p3">flight altitude</p>'; else html+='<p class="topUser-p3">flight altitude</p>';
html+='<p class="topUser-p4">--m</p>'; html+='<p class="topUser-p4">--m</p>';
$(".layer-yes-topUser").html(html); $(".layer-yes-topUser").html(html);
}else{ }else{
// html+='<img class="topUser-face" src="https://big.bgp.ourpow.com/comm'+data.result.topUidFace+'?x-oss-process=image/resize,w_90" alt="">'; // html+='<img class="topUser-face" src="https://big.bgp.ourpow.com/comm'+data.result.topUidFace+'?x-oss-process=image/resize,w_90" alt="">';
if(sessionStorage.lang==2)html+='<p class="topUser-p1">本日王牌飛行員</p>'; if(sessionStorage.lang==2 || sessionStorage.lang==0)html+='<p class="topUser-p1">本日王牌飛行員</p>';
else html+='<p class="topUser-p1">Pilot of the Day</p>'; else html+='<p class="topUser-p1">Pilot of the Day</p>';
html+='<p class="topUser-p2">'+data.result.topUidNickName+'</p>'; html+='<p class="topUser-p2">'+data.result.topUidNickName+'</p>';
if(sessionStorage.lang==2)html+='<p class="topUser-p3">飛行高度</p>'; if(sessionStorage.lang==2 || sessionStorage.lang==0)html+='<p class="topUser-p3">飛行高度</p>';
else html+='<p class="topUser-p3">flight altitude</p>'; else html+='<p class="topUser-p3">flight altitude</p>';
html+='<p class="topUser-p4">'+data.result.topHeight+' m</p>'; html+='<p class="topUser-p4">'+data.result.topHeight+' m</p>';
$(".layer-yes-topUser").html(html); $(".layer-yes-topUser").html(html);
...@@ -874,7 +874,7 @@ $(function(){ ...@@ -874,7 +874,7 @@ $(function(){
success:function(data){ success:function(data){
// console.log('用户登船',data) // console.log('用户登船',data)
if(data.code==-116){ if(data.code==-116){
if(sessionStorage.lang==2)layer.msg("露水不足") if(sessionStorage.lang==2 || sessionStorage.lang==0)layer.msg("露水不足")
else layer.msg("no DEWs") else layer.msg("no DEWs")
setTimeout(function(){ setTimeout(function(){
var obj = { var obj = {
...@@ -919,7 +919,7 @@ $(function(){ ...@@ -919,7 +919,7 @@ $(function(){
getShow() getShow()
}, 500); }, 500);
$(".out-fly-box >div").unbind("click") $(".out-fly-box >div").unbind("click")
if(sessionStorage.lang==2)$(".out-fly-box").html('<div class="out-fly-end">你已下船('+data.result.jumpHeight+'米,获得'+data.result.userRewardChip+'露水)</div>') if(sessionStorage.lang==2 || sessionStorage.lang==0)$(".out-fly-box").html('<div class="out-fly-end">你已下船('+data.result.jumpHeight+'米,获得'+data.result.userRewardChip+'露水)</div>')
else $(".out-fly-box").html('<div class="out-fly-end">By flying '+data.result.jumpHeight+'m, gain '+data.result.userRewardChip+' DEWs rewards.</div>') else $(".out-fly-box").html('<div class="out-fly-end">By flying '+data.result.jumpHeight+'m, gain '+data.result.userRewardChip+' DEWs rewards.</div>')
myDiamond() myDiamond()
jumpOk=true; jumpOk=true;
......
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