Commit 484c1133 authored by wildfirecode13's avatar wildfirecode13

u

parent 9ee08728
......@@ -67,8 +67,8 @@
</script>
<!-- 构建的js -->
<script src="output.js" crossorigin="anonymous"></script>
<!-- <script src="https://yun.duiba.com.cn/db_games/activity/template/1628494686/output.js" crossorigin="anonymous"></script> -->
<!-- <script src="output.js" crossorigin="anonymous"></script> -->
<script src="https://yun.duiba.com.cn/db_games/activity/template/1628580191/output.js" crossorigin="anonymous"></script>
......
{
"code": null,
"data": 0,
"data": 1,
"message": null,
"success": true
}
\ No newline at end of file
......@@ -3,7 +3,7 @@
"data": {
"alreadyOpenAccount": false,
"assistFriendNum": 1,
"canWithdraw": true,
"canWithdraw": false,
"experienceAmount": 1000,
"maxExperienceAmount": 2500,
"millionShares": null,
......
This diff is collapsed.
......@@ -18,7 +18,7 @@ import updateShareFunc from '../share';
import { getPxTokenSave, getWebData, sendWebNet, WebNetName } from '../WebNet';
export class IndexScene extends Scene {
updateIndexUI({ experienceAmount, yesterdayIncome, sumIncome, sevenDayAnnualization, assistFriendNum, otherExperienceAmount }) {
updateIndexUI({ experienceAmount, yesterdayIncome, sumIncome, sevenDayAnnualization, assistFriendNum, otherExperienceAmount,canWithdraw }) {
getObject(this, 'index_experienceAmountTips').text = experienceAmount || "0";
getObject(this, 'index_sumIncomeTips').text = sumIncome || '0';
getObject(this, 'index_sevenDayAnnualizationTips').text = sevenDayAnnualization;
......@@ -26,6 +26,9 @@ export class IndexScene extends Scene {
getObject(this, 'index_invitePercentTips').text = `${experienceAmount}/1000000`;
getObject(this, 'index_inviteTips').text = `已有${assistFriendNum}位好友助力,体验金增加${otherExperienceAmount}元`;
getObject(this, 'index_drawGrayBtn').visible = !canWithdraw;
getObject(this, 'index_drawBtn').visible = canWithdraw;
const index_experienceAmountTips2 = getObject(this, 'index_experienceAmountTips2');
const index_experienceAmountTips = getObject(this, 'index_experienceAmountTips');
index_experienceAmountTips2.x = 375 + experienceAmount.toString().length * 18;
......@@ -81,6 +84,7 @@ export class IndexScene extends Scene {
this.page.view.addChild(getObject(this, 'index_wrapper'));
getObject(this, 'index_drawGrayBtn').visible = false;
getObject(this, 'index_drawBtn').visible = false;
centerTextField(getObjects(this, [
'index_yesterdayIncomeTips',
......@@ -166,6 +170,7 @@ export class IndexScene extends Scene {
super.initEvents();
watchPageVisibility(this.onPageVisibilityChange);
getObject(this, 'index_drawBtn').addEventListener(FYGE.MouseEvent.CLICK, this.onclick_index_drawBtn, this)
getObject(this, 'index_drawGrayBtn').addEventListener(FYGE.MouseEvent.CLICK, this.onclick_index_drawBtn, this)
getObject(this, 'index_rulebtn').addEventListener(FYGE.MouseEvent.CLICK, this.onclick_index_ruleBtn, this)
getObject(this, 'index_inviteBtn').addEventListener(FYGE.MouseEvent.CLICK, this.onclick_index_inviteBtn, this)
}
......@@ -175,6 +180,7 @@ export class IndexScene extends Scene {
unwatchPageVisibility(this.onPageVisibilityChange)
getObject(this, 'index_inviteBtn').removeEventListener(FYGE.MouseEvent.CLICK, this.onclick_index_inviteBtn, this)
getObject(this, 'index_drawBtn').removeEventListener(FYGE.MouseEvent.CLICK, this.onclick_index_drawBtn, this)
getObject(this, 'index_drawGrayBtn').removeEventListener(FYGE.MouseEvent.CLICK, this.onclick_index_drawBtn, this)
getObject(this, 'index_rulebtn').removeEventListener(FYGE.MouseEvent.CLICK, this.onclick_index_ruleBtn, this)
}
......
......@@ -68,6 +68,7 @@ export class NewbieScene extends Scene {
}
onClick_openBtn() {
FYGE.Tween.removeTweens(getObject(this,'newbie_open'))
this.openPrize()
}
......
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