Commit dfc2be57 by dawei

feat: 测试

parent c57c6047
Showing with 16 additions and 5 deletions
...@@ -304,6 +304,7 @@ ...@@ -304,6 +304,7 @@
<script src="lib/liMarquee.js"></script> <script src="lib/liMarquee.js"></script>
<script src="lib/default.js?v='2024062102'"></script> <script src="lib/default.js?v='2024062102'"></script>
<script> <script>
var betType
$(function(){ $(function(){
if(sessionStorage.lang!=2 && sessionStorage.lang!=0){ if(sessionStorage.lang!=2 && sessionStorage.lang!=0){
$("body").addClass("bg-en") $("body").addClass("bg-en")
...@@ -351,7 +352,7 @@ $(function(){ ...@@ -351,7 +352,7 @@ $(function(){
} }
} }
var betType=1 betType=1
$(".more-btn").on("click",function(){ $(".more-btn").on("click",function(){
var _self=$(this) var _self=$(this)
if(_self.attr("data-type")==1){ if(_self.attr("data-type")==1){
...@@ -879,7 +880,8 @@ $(function(){ ...@@ -879,7 +880,8 @@ $(function(){
} }
}) })
} }
function bet(gid,type){
window.bet = function(gid,type){
$.ajax({ $.ajax({
url:$ip+'/rocketlaunch/playGame', url:$ip+'/rocketlaunch/playGame',
type:'post', type:'post',
...@@ -950,9 +952,9 @@ $(function(){ ...@@ -950,9 +952,9 @@ $(function(){
}) })
} }
function goBetCallBack() { // function goBetCallBack() {
bet(sessionStorage.gameId,betType) // bet(sessionStorage.gameId,betType)
} // }
function getUrlParams() { function getUrlParams() {
const search = window.location.search.substring(1); // 去掉问号 const search = window.location.search.substring(1); // 去掉问号
...@@ -987,6 +989,10 @@ $(function(){ ...@@ -987,6 +989,10 @@ $(function(){
} }
} }
function test() {
console.log("测试")
}
/* 客戶端回調 */ /* 客戶端回調 */
function appCallback(msg) { function appCallback(msg) {
let binaryString = atob(msg); let binaryString = atob(msg);
...@@ -1003,6 +1009,10 @@ $(function(){ ...@@ -1003,6 +1009,10 @@ $(function(){
} }
} }
}) })
function goBetCallBack() {
bet(sessionStorage.gameId,betType)
}
</script> </script>
</html> </html>
\ No newline at end of file
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