Commit 0f544424 authored by wildfirecode13's avatar wildfirecode13

u

parent 9485af8a
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</head> </head>
<body> <body>
<div id="__loading__" style="position:absolute;left:50%;top:50%;margin-left:-45px;color:#ffffff">拼命加载中...</div> <div id="__loading__" style="position:absolute;left:50%;top:50%;margin-left:-45px;color:#000">拼命加载中...</div>
<div id="cusEngine" style="line-height:0;font-size:0;position: absolute;"> <div id="cusEngine" style="line-height:0;font-size:0;position: absolute;">
<canvas id="canvas" style="width: 100%;height: 100%"></canvas> <canvas id="canvas" style="width: 100%;height: 100%"></canvas>
</div> </div>
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<!-- 构建的js --> <!-- 构建的js -->
<script src="output.js" crossorigin="anonymous"></script> <script src="output.js" crossorigin="anonymous"></script>
<!-- <script src="https://yun.duiba.com.cn/db_games/activity/template/1628480312/output.js" crossorigin="anonymous"></script> --> <!-- <script src="https://yun.duiba.com.cn/db_games/activity/template/1628493535/output.js" crossorigin="anonymous"></script> -->
......
import { unwatchPageVisibility, watchPageVisibility } from '@spark/utils'; import { unwatchPageVisibility, watchPageVisibility } from '@spark/utils';
import { showPanel, showToast } from "../../module/ctrls"; import { hideWaiting, showPanel, showToast, showWaiting } from "../../module/ctrls";
import PanelCtrl from '../../module/ctrls/panelCtrl'; import PanelCtrl from '../../module/ctrls/panelCtrl';
import { Scene } from "../../module/views/Scene"; import { Scene } from "../../module/views/Scene";
import centerTextField from '../centerTextField'; import centerTextField from '../centerTextField';
...@@ -46,8 +46,10 @@ export class IndexScene extends Scene { ...@@ -46,8 +46,10 @@ export class IndexScene extends Scene {
onclick_index_drawBtn() { onclick_index_drawBtn() {
const {canWithdraw} = getWebData( WebNetName.myWallet).data; const {canWithdraw} = getWebData( WebNetName.myWallet).data;
if(canWithdraw){ if(canWithdraw){
showWaiting();
getPxTokenSave().then(token => { getPxTokenSave().then(token => {
sendWebNet(WebNetName.withDraw, { token: token }).then(res => { sendWebNet(WebNetName.withDraw, { token: token }).then(res => {
hideWaiting();
if(res.success) if(res.success)
showPanel(DrawPanel,res.data); showPanel(DrawPanel,res.data);
}); });
......
import { unwatchPageVisibility, watchPageVisibility } from "@spark/utils"; import { unwatchPageVisibility, watchPageVisibility } from "@spark/utils";
import { changeScene, closeCurrentPanel, showPanel } from "../../module/ctrls"; import { changeScene, closeCurrentPanel, hideWaiting, showPanel, showWaiting } from "../../module/ctrls";
import { Scene } from "../../module/views/Scene"; import { Scene } from "../../module/views/Scene";
import Group from "../common/Group"; import Group from "../common/Group";
import Marquee from "../common/Marquee"; import Marquee from "../common/Marquee";
...@@ -37,8 +37,10 @@ export class NewbieScene extends Scene { ...@@ -37,8 +37,10 @@ export class NewbieScene extends Scene {
openPrize() { openPrize() {
prize = 1; prize = 1;
showWaiting();
getPxTokenSave().then(token => { getPxTokenSave().then(token => {
sendWebNet(WebNetName.acquireExperienceAmount, { token: token }).then(acquireExperienceAmount => { sendWebNet(WebNetName.acquireExperienceAmount, { token: token }).then(acquireExperienceAmount => {
hideWaiting();
if(acquireExperienceAmount.success) if(acquireExperienceAmount.success)
showPanel(PrizePanel, acquireExperienceAmount.data); showPanel(PrizePanel, acquireExperienceAmount.data);
}) })
......
import { showPanel } from "../../module/ctrls"; import { hideWaiting, showPanel, showWaiting } from "../../module/ctrls";
import { Scene } from "../../module/views/Scene"; import { Scene } from "../../module/views/Scene";
import centerTextField from "../centerTextField"; import centerTextField from "../centerTextField";
import Marquee from "../common/Marquee"; import Marquee from "../common/Marquee";
...@@ -11,9 +11,11 @@ export class ShareScene extends Scene { ...@@ -11,9 +11,11 @@ export class ShareScene extends Scene {
onClick_share_assist() { onClick_share_assist() {
const query = getQueryParams(); const query = getQueryParams();
showWaiting();
getPxTokenSave().then(token => { getPxTokenSave().then(token => {
sendWebNet(WebNetName.assist, { code: query.code }).then(res => { sendWebNet(WebNetName.assist, { code: query.code }).then(res => {
if(res.success) hideWaiting();
if (res.success)
showPanel(AssistPanel, res.data) showPanel(AssistPanel, res.data)
}) })
}) })
...@@ -81,8 +83,8 @@ export class ShareScene extends Scene { ...@@ -81,8 +83,8 @@ export class ShareScene extends Scene {
initUi() { initUi() {
super.initUi(); super.initUi();
centerTextField(getObject(this,'share_tips1')); centerTextField(getObject(this, 'share_tips1'));
centerTextField(getObject(this,'share_tips2')); centerTextField(getObject(this, 'share_tips2'));
} }
} }
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 to comment