Commit caa942be authored by wildfirecode13's avatar wildfirecode13

update

parent 6f2f7ef9
......@@ -26,7 +26,7 @@
height: 100%;
overflow: hidden;
position: absolute;
background-color: #9a3636;
background-color: #fff;
/* background: linear-gradient(#93dbb7,#ff0,#b5d89a); */
/* background: linear-gradient(#93dbb7,#b5d89a); */
/* 背景图片,解决加载太慢,白屏问题,加了这个下面的__loading__可以删掉了 */
......
project/resource/index3/task2bg.png

1.97 KB | W: | H:

project/resource/index3/task2bg.png

1.64 KB | W: | H:

project/resource/index3/task2bg.png
project/resource/index3/task2bg.png
project/resource/index3/task2bg.png
project/resource/index3/task2bg.png
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
......@@ -30,11 +30,14 @@ export class IndexScene extends Scene {
super.initUi();
const page = this.page = new FYGE.ScrollPage(750,getStageHeight(),1624,true,true);
page.isSpringBack=false;
this.addChild(page);
page.y = getStageOffset();
this.page.view.addChild(getObject(this,'wrapper'));
// getObject(this.page,'task1').visible=false;
// // getObject(this.page,'task2new').visible=false;
// getObject(this.page,'task2').visible=false;
}
async start(data) {
......@@ -46,20 +49,20 @@ export class IndexScene extends Scene {
this.showSharePanel();
}
sendWebNet(WebNetName.carouselInfo).then(res => {
console.log('carouselInfo ', res);
const template = '{phone}邀请了{friend}位好友,获得了{amount}体验金';
const datas = res.data.map(item => {
let str = template.replace('{phone}', item.nickname);
str = str.replace('{friend}', item.friend);
str = str.replace('{amount}', item.amount);
return str
});
const q = this.addChild(new Marquee(datas));
q.y = 50;
q.x = 50;
});
// sendWebNet(WebNetName.carouselInfo).then(res => {
// console.log('carouselInfo ', res);
// const template = '{phone}邀请了{friend}位好友,获得了{amount}体验金';
// const datas = res.data.map(item => {
// let str = template.replace('{phone}', item.nickname);
// str = str.replace('{friend}', item.friend);
// str = str.replace('{amount}', item.amount);
// return str
// });
// const q = this.page.view.addChild(new Marquee(datas));
// q.y = 50;
// q.x = 50;
// });
sendWebNet(WebNetName.createItem).then(createItemResult => {
......
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