Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
fsActive
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d0b3719b
authored
May 20, 2025
by
dawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 火箭
parent
e1b1675d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
1 deletions
activeFt/luckySpace/index.html
activeFt/luckySpace/index.html
View file @
d0b3719b
...
...
@@ -314,6 +314,7 @@ $(function(){
$
(
".layer-yes2-p3 .layer-yes2-txt1"
).
text
(
"Initial DEWs"
)
$
(
".layer-yes2-p4 .layer-yes2-txt1"
).
text
(
'My victory multiplier'
)
}
var
gameDateId
=
new
Date
().
getTime
()
var
hot
=
null
var
boomTime
=
null
var
nowExplose
=
true
;
...
...
@@ -595,7 +596,21 @@ $(function(){
$(".num-box-p2").removeClass('
n0
n1
n2
n3
n4
n5
n6
n7
n8
n9
').addClass('
n
'+numArr[1]+'')
$(".go-btn").unbind("click").on("click",function(){
bet(sessionStorage.gameId,betType)
if(url_get_params().isAllowDialog == 1 && url_get_params().appversion >= 7620){
var obj = {
"cid": 48,
"reqCode": gameDateId,
"data": {
"msg": "用戶協議",
"type": 0, //遊戲
}
}
var obj2 = JSON.stringify(obj);
appCollaboration(obj2);
} else {
goBetCallBack()
}
})
}
...
...
@@ -931,6 +946,44 @@ $(function(){
}
})
}
function
goBetCallBack
()
{
bet
(
sessionStorage
.
gameId
,
betType
)
}
function
appCollaboration
(
msg
)
{
var
sUserAgent
=
navigator
.
userAgent
.
toLowerCase
();
var
bIsIpad
=
sUserAgent
.
match
(
/ipad/i
)
==
"ipad"
;
var
bIsIphoneOs
=
sUserAgent
.
match
(
/iphone os/i
)
==
"iphone os"
;
var
bIsMidp
=
sUserAgent
.
match
(
/midp/i
)
==
"midp"
;
var
bIsUc7
=
sUserAgent
.
match
(
/rv:1.2.3.4/i
)
==
"rv:1.2.3.4"
;
var
bIsUc
=
sUserAgent
.
match
(
/ucweb/i
)
==
"ucweb"
;
var
bIsAndroid
=
sUserAgent
.
match
(
/android/i
)
==
"android"
;
var
bIsCE
=
sUserAgent
.
match
(
/windows ce/i
)
==
"windows ce"
;
var
bIsWM
=
sUserAgent
.
match
(
/windows mobile/i
)
==
"windows mobile"
;
if
(
!
(
bIsIpad
||
bIsIphoneOs
||
bIsMidp
||
bIsUc7
||
bIsUc
||
bIsAndroid
||
bIsCE
||
bIsWM
))
{
}
else
if
(
bIsAndroid
)
{
window
.
yazhai
.
appCollaboration
(
msg
);
}
else
if
(
bIsIphoneOs
||
bIsIpad
)
{
window
.
webkit
.
messageHandlers
.
appCollaboration
.
postMessage
(
msg
);
}
}
/* 客戶端回調 */
function
appCallback
(
msg
)
{
let
binaryString
=
atob
(
msg
);
let
obj
=
JSON
.
parse
(
binaryString
);
let
objStr
=
JSON
.
stringify
(
obj
)
// layer.msg(`客戶端回調:${objStr},${app.betId}`)
if
(
obj
.
reqCode
==
gameDateId
&&
obj
.
isAllagree
==
1
&&
obj
.
type
==
0
)
{
// layer.msg('客戶端回調成功')
goBetCallBack
()
}
else
{
console
.
log
(
`客戶端回調失敗:
${
objStr
}
,
${
app
.
betId
}
`
)
layer
.
msg
(
'請稍後重試'
)
}
}
})
</script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment