Commit 923faf11 authored by wildfirecode13's avatar wildfirecode13

u

parent 71a8e68d
......@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>三湘银行体验金</title>
<title>地素盲盒</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
......
......@@ -71,12 +71,12 @@ 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";
//显示场景
changeScene(IndexScene)
changeScene(IndexScene);
}
/**
......
......@@ -588,7 +588,7 @@ export const SkinJson ={
"y": 1133,
"type": "text",
"props": {
"text": "XX",
"text": "/",
"size": 32,
"fillColor": "#000000",
"textAlpha": 1
......@@ -612,7 +612,7 @@ export const SkinJson ={
"y": 1132,
"type": "text",
"props": {
"text": "XX",
"text": "/",
"size": 32,
"fillColor": "#000000",
"textAlpha": 1
......@@ -636,7 +636,7 @@ export const SkinJson ={
"y": 434,
"type": "text",
"props": {
"text": "XX积分/次",
"text": "/",
"size": 30,
"fillColor": "#000000",
"textAlpha": 1
......
......@@ -19,6 +19,7 @@ import { WebNetName } from "../WebNetName";
import { layers } from "../../module/views/layers";
import { showShareMask } from "../common/ShareMask";
import { getUnionid } from "../getUnionid";
import { initNonmemberMask } from "./initNonmemberMask";
let boxGroup: BoxGroup;
......@@ -37,6 +38,11 @@ export class IndexScene extends Scene {
initUi(){
super.initUi();
if( !getUnionid()){
initNonmemberMask();
}
const svgaLayer = new FYGE.Sprite();
this.addChildAt(svgaLayer,1);
const svga = new FYGE.MovieClip(RES.getRes('首页元素循环上-输出.svga'));
......@@ -80,10 +86,6 @@ export class IndexScene extends Scene {
sendLog("click",9);
this.handleShare();
},this);
if( !getUnionid()){
this.initNonmemberMask();
}
}
initContainer() {
......@@ -94,21 +96,6 @@ export class IndexScene extends Scene {
boxArea.addChild(boxGroup);
}
initNonmemberMask() {
const mask = new FYGE.Shape();
mask.beginFill(0, 1);
mask.drawRect(0, 0, 750, 1624);
mask.endFill();
mask.alpha = 0;
layers.topLayer.addChild(mask);
mask.addEventListener(FYGE.MouseEvent.CLICK, () => {
mask.mouseEnable=false;
showPanel(memberGuidePanel,()=>{
mask.mouseEnable=true;
});
},this)
}
initmask() {
const mask = new FYGE.Shape();
mask.beginFill(0, 0.3);
......@@ -155,6 +142,11 @@ export class IndexScene extends Scene {
}
getIndex = async () => {
if( !getUnionid()){
getObject(this,'index_sharetips').visible=false;
getObject(this,'index_sharehand').visible=false;
return;
}
const result = await getWebData(WebNetName.index);
indexData = result;
hand.visible = false;
......
import { showPanel } from "../../module/ctrls";
import { layers } from "../../module/views/layers";
import { memberGuidePanel } from "../panels/memberGuide";
export const initNonmemberMask = () =>{
const mask = new FYGE.Shape();
mask.beginFill(0, 1);
mask.drawRect(0, 0, 750, 1624);
mask.endFill();
mask.alpha = 0;
layers.topLayer.addChild(mask);
mask.addEventListener(FYGE.MouseEvent.CLICK, () => {
mask.mouseEnable=false;
showPanel(memberGuidePanel,()=>{
mask.mouseEnable=true;
});
},this)
}
\ 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