Commit 923faf11 authored by wildfirecode13's avatar wildfirecode13

u

parent 71a8e68d
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>三湘银行体验金</title> <title>地素盲盒</title>
<meta name="viewport" <meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" /> 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" /> <meta name="apple-mobile-web-app-capable" content="yes" />
......
...@@ -71,12 +71,12 @@ export class Main { ...@@ -71,12 +71,12 @@ export class Main {
//加载通用资源 //加载通用资源
await RES.loadGroup("common"); await RES.loadGroup("common");
await RES.loadGroup("svga"); await RES.loadGroup("svga");
await sendWebNet(WebNetName.index); // await sendWebNet(WebNetName.index);
console.log("通用资源加载完成") console.log("通用资源加载完成")
//h5环境时,隐藏加载中 //h5环境时,隐藏加载中
if (FYGE.getEnv() == "web" && document.getElementById("__loading__")) document.getElementById("__loading__").style.display = "none"; if (FYGE.getEnv() == "web" && document.getElementById("__loading__")) document.getElementById("__loading__").style.display = "none";
//显示场景 //显示场景
changeScene(IndexScene) changeScene(IndexScene);
} }
/** /**
......
...@@ -588,7 +588,7 @@ export const SkinJson ={ ...@@ -588,7 +588,7 @@ export const SkinJson ={
"y": 1133, "y": 1133,
"type": "text", "type": "text",
"props": { "props": {
"text": "XX", "text": "/",
"size": 32, "size": 32,
"fillColor": "#000000", "fillColor": "#000000",
"textAlpha": 1 "textAlpha": 1
...@@ -612,7 +612,7 @@ export const SkinJson ={ ...@@ -612,7 +612,7 @@ export const SkinJson ={
"y": 1132, "y": 1132,
"type": "text", "type": "text",
"props": { "props": {
"text": "XX", "text": "/",
"size": 32, "size": 32,
"fillColor": "#000000", "fillColor": "#000000",
"textAlpha": 1 "textAlpha": 1
...@@ -636,7 +636,7 @@ export const SkinJson ={ ...@@ -636,7 +636,7 @@ export const SkinJson ={
"y": 434, "y": 434,
"type": "text", "type": "text",
"props": { "props": {
"text": "XX积分/次", "text": "/",
"size": 30, "size": 30,
"fillColor": "#000000", "fillColor": "#000000",
"textAlpha": 1 "textAlpha": 1
......
...@@ -19,6 +19,7 @@ import { WebNetName } from "../WebNetName"; ...@@ -19,6 +19,7 @@ import { WebNetName } from "../WebNetName";
import { layers } from "../../module/views/layers"; import { layers } from "../../module/views/layers";
import { showShareMask } from "../common/ShareMask"; import { showShareMask } from "../common/ShareMask";
import { getUnionid } from "../getUnionid"; import { getUnionid } from "../getUnionid";
import { initNonmemberMask } from "./initNonmemberMask";
let boxGroup: BoxGroup; let boxGroup: BoxGroup;
...@@ -37,6 +38,11 @@ export class IndexScene extends Scene { ...@@ -37,6 +38,11 @@ export class IndexScene extends Scene {
initUi(){ initUi(){
super.initUi(); super.initUi();
if( !getUnionid()){
initNonmemberMask();
}
const svgaLayer = new FYGE.Sprite(); const svgaLayer = new FYGE.Sprite();
this.addChildAt(svgaLayer,1); this.addChildAt(svgaLayer,1);
const svga = new FYGE.MovieClip(RES.getRes('首页元素循环上-输出.svga')); const svga = new FYGE.MovieClip(RES.getRes('首页元素循环上-输出.svga'));
...@@ -80,10 +86,6 @@ export class IndexScene extends Scene { ...@@ -80,10 +86,6 @@ export class IndexScene extends Scene {
sendLog("click",9); sendLog("click",9);
this.handleShare(); this.handleShare();
},this); },this);
if( !getUnionid()){
this.initNonmemberMask();
}
} }
initContainer() { initContainer() {
...@@ -94,21 +96,6 @@ export class IndexScene extends Scene { ...@@ -94,21 +96,6 @@ export class IndexScene extends Scene {
boxArea.addChild(boxGroup); 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() { initmask() {
const mask = new FYGE.Shape(); const mask = new FYGE.Shape();
mask.beginFill(0, 0.3); mask.beginFill(0, 0.3);
...@@ -155,6 +142,11 @@ export class IndexScene extends Scene { ...@@ -155,6 +142,11 @@ export class IndexScene extends Scene {
} }
getIndex = async () => { getIndex = async () => {
if( !getUnionid()){
getObject(this,'index_sharetips').visible=false;
getObject(this,'index_sharehand').visible=false;
return;
}
const result = await getWebData(WebNetName.index); const result = await getWebData(WebNetName.index);
indexData = result; indexData = result;
hand.visible = false; 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