Commit 2aa8705c authored by wildfirecode13's avatar wildfirecode13

u

parent e95637ff
...@@ -28,6 +28,10 @@ ...@@ -28,6 +28,10 @@
"keys": "loading_bg.png,loading_loading.png,loading_progressbg.png,loading_progressfront.png,loading_title.png", "keys": "loading_bg.png,loading_loading.png,loading_progressbg.png,loading_progressfront.png,loading_title.png",
"name": "loading" "name": "loading"
}, },
{
"keys": "newbie_bg.png,newbie_marqee.png,newbie_open.png,newbie_pic2.png,newbie_pic3.png,newbie_pic4.png,newbie_pic5.png,newbie_pic6.png,newbie_pic7.png,newbie_pic8.png,newbie_rule.png,newbie_title.png",
"name": "newbie"
},
{ {
"keys": "playBg.jpg", "keys": "playBg.jpg",
"name": "playScene" "name": "playScene"
......
This diff is collapsed.
...@@ -84,7 +84,7 @@ export default class Marquee extends FYGE.Sprite { ...@@ -84,7 +84,7 @@ export default class Marquee extends FYGE.Sprite {
const buttonTxt = new FYGE.TextField; const buttonTxt = new FYGE.TextField;
buttonTxt.textHeight = h; buttonTxt.textHeight = h;
buttonTxt.size = 25; buttonTxt.size = 26;
buttonTxt.verticalAlign = FYGE.VERTICAL_ALIGN.MIDDLE; buttonTxt.verticalAlign = FYGE.VERTICAL_ALIGN.MIDDLE;
buttonTxt.fillColor = '0xffffff'; buttonTxt.fillColor = '0xffffff';
this.textwrapper.addChild(buttonTxt); this.textwrapper.addChild(buttonTxt);
...@@ -93,7 +93,7 @@ export default class Marquee extends FYGE.Sprite { ...@@ -93,7 +93,7 @@ export default class Marquee extends FYGE.Sprite {
const buttonTxt2 = new FYGE.TextField; const buttonTxt2 = new FYGE.TextField;
buttonTxt2.textHeight = h; buttonTxt2.textHeight = h;
buttonTxt2.size = 25; buttonTxt2.size = 26;
buttonTxt2.verticalAlign = FYGE.VERTICAL_ALIGN.MIDDLE; buttonTxt2.verticalAlign = FYGE.VERTICAL_ALIGN.MIDDLE;
buttonTxt2.fillColor = '0xffffff'; buttonTxt2.fillColor = '0xffffff';
this.textwrapper.addChild(buttonTxt2); this.textwrapper.addChild(buttonTxt2);
......
...@@ -15,7 +15,7 @@ export class NewbieScene extends Scene { ...@@ -15,7 +15,7 @@ export class NewbieScene extends Scene {
prizeBtn: FYGE.Sprite; prizeBtn: FYGE.Sprite;
ruleBtn: FYGE.Sprite; ruleBtn: FYGE.Sprite;
onPageVisibilityChange = async (visible) => { onPageVisibilityChange = async (visible) => {
if(getQueryParams().disablewatch==1){console.log('disable watch');return; } if (getQueryParams().disablewatch == 1) { console.log('disable watch'); return; }
console.log('页面visible', visible); console.log('页面visible', visible);
if (!prize) { if (!prize) {
console.log('没有领体验金'); return; console.log('没有领体验金'); return;
...@@ -38,8 +38,8 @@ export class NewbieScene extends Scene { ...@@ -38,8 +38,8 @@ export class NewbieScene extends Scene {
openPrize() { openPrize() {
prize = 1; prize = 1;
getPxTokenSave().then(token=>{ getPxTokenSave().then(token => {
sendWebNet(WebNetName.acquireExperienceAmount,{token:token}).then(acquireExperienceAmount => { sendWebNet(WebNetName.acquireExperienceAmount, { token: token }).then(acquireExperienceAmount => {
showPanel(PrizePanel, acquireExperienceAmount.data); showPanel(PrizePanel, acquireExperienceAmount.data);
}) })
}) })
...@@ -67,7 +67,7 @@ export class NewbieScene extends Scene { ...@@ -67,7 +67,7 @@ export class NewbieScene extends Scene {
sendWebNet(WebNetName.carouselInfo).then(res => { sendWebNet(WebNetName.carouselInfo).then(res => {
console.log('carouselInfo ', res); console.log('carouselInfo ', res);
const template = '{phone}邀请了{friend}位好友,获得了{amount}体验金'; const template = '{phone}邀请了1位好友,获得了{amount}体验金';
const datas = res.data.map(item => { const datas = res.data.map(item => {
let str = template.replace('{phone}', item.nickname); let str = template.replace('{phone}', item.nickname);
str = str.replace('{friend}', item.friend); str = str.replace('{friend}', item.friend);
...@@ -75,8 +75,8 @@ export class NewbieScene extends Scene { ...@@ -75,8 +75,8 @@ export class NewbieScene extends Scene {
return str return str
}); });
const q = this.addChild(new Marquee(datas)); const q = this.addChild(new Marquee(datas));
q.y = 300; q.x = 135; q.y=448;
q.x = 50; window['q']=q;
}); });
} }
......
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