Commit 52d49fea authored by wildfirecode13's avatar wildfirecode13

u

parent 923faf11
......@@ -71,7 +71,7 @@ export class Main {
//加载通用资源
await RES.loadGroup("common");
await RES.loadGroup("svga");
// await sendWebNet(WebNetName.index);
await sendWebNet(WebNetName.index);
console.log("通用资源加载完成")
//h5环境时,隐藏加载中
if (FYGE.getEnv() == "web" && document.getElementById("__loading__")) document.getElementById("__loading__").style.display = "none";
......
......@@ -20,13 +20,14 @@ import { layers } from "../../module/views/layers";
import { showShareMask } from "../common/ShareMask";
import { getUnionid } from "../getUnionid";
import { initNonmemberMask } from "./initNonmemberMask";
import { createPrizeTxt } from "./createPrizeTxt";
let boxGroup: BoxGroup;
let boxArea;
let hand;
let shareButton;
let indexData;
let indexData,scrollList;
export class IndexScene extends Scene {
get groupNames() { return ["index"] }
......@@ -70,6 +71,7 @@ export class IndexScene extends Scene {
const index_timestips = getObject(this, 'index_timestips');
index_timestips.position.set(127, 1131);
const list = new FYGE.ScrollList(ScrollItem, 131 + 20, 131, 620, 154, false);
scrollList=list;
list.position.set(80, 1240 + 30);
this.addChild(list);
hand = getObject(this, 'index_sharehand');
......@@ -145,6 +147,8 @@ export class IndexScene extends Scene {
if( !getUnionid()){
getObject(this,'index_sharetips').visible=false;
getObject(this,'index_sharehand').visible=false;
scrollList.visible=false;
createPrizeTxt(this);
return;
}
const result = await getWebData(WebNetName.index);
......
export const createPrizeTxt = (p)=>{
const txt = new FYGE.TextField;
txt.size=36;
txt.fillColor='0x000000';
txt.text='暂无奖品';
txt.position.set(80+20, 1240 + 30+20+30);
return p.addChild(txt)
}
\ No newline at end of file
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