Commit 2aa8705c authored by wildfirecode13's avatar wildfirecode13

u

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