Commit 0f544424 authored by wildfirecode13's avatar wildfirecode13

u

parent 9485af8a
......@@ -38,7 +38,7 @@
</head>
<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;">
<canvas id="canvas" style="width: 100%;height: 100%"></canvas>
</div>
......@@ -67,7 +67,7 @@
<!-- 构建的js -->
<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 { showPanel, showToast } from "../../module/ctrls";
import { hideWaiting, showPanel, showToast, showWaiting } from "../../module/ctrls";
import PanelCtrl from '../../module/ctrls/panelCtrl';
import { Scene } from "../../module/views/Scene";
import centerTextField from '../centerTextField';
......@@ -46,10 +46,12 @@ export class IndexScene extends Scene {
onclick_index_drawBtn() {
const {canWithdraw} = getWebData( WebNetName.myWallet).data;
if(canWithdraw){
showWaiting();
getPxTokenSave().then(token => {
sendWebNet(WebNetName.withDraw, { token: token }).then(res => {
hideWaiting();
if(res.success)
showPanel(DrawPanel,res.data);
showPanel(DrawPanel,res.data);
});
})
}else{
......
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 Group from "../common/Group";
import Marquee from "../common/Marquee";
......@@ -37,8 +37,10 @@ export class NewbieScene extends Scene {
openPrize() {
prize = 1;
showWaiting();
getPxTokenSave().then(token => {
sendWebNet(WebNetName.acquireExperienceAmount, { token: token }).then(acquireExperienceAmount => {
hideWaiting();
if(acquireExperienceAmount.success)
showPanel(PrizePanel, acquireExperienceAmount.data);
})
......
import { showPanel } from "../../module/ctrls";
import { hideWaiting, showPanel, showWaiting } from "../../module/ctrls";
import { Scene } from "../../module/views/Scene";
import centerTextField from "../centerTextField";
import Marquee from "../common/Marquee";
......@@ -11,10 +11,12 @@ export class ShareScene extends Scene {
onClick_share_assist() {
const query = getQueryParams();
showWaiting();
getPxTokenSave().then(token => {
sendWebNet(WebNetName.assist, { code: query.code }).then(res => {
if(res.success)
showPanel(AssistPanel, res.data)
hideWaiting();
if (res.success)
showPanel(AssistPanel, res.data)
})
})
......@@ -81,8 +83,8 @@ export class ShareScene extends Scene {
initUi() {
super.initUi();
centerTextField(getObject(this,'share_tips1'));
centerTextField(getObject(this,'share_tips2'));
centerTextField(getObject(this, 'share_tips1'));
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