Commit e2aba88a authored by wildfirecode13's avatar wildfirecode13

u

parent ace560c0
import { layers, destroyLayers } from "../module/views/layers"; import { changeScene, destroyAllCtrls } from "../module/ctrls";
import { RES } from "../module/RES"; import { RES } from "../module/RES";
import { changeScene, showWaiting, destroyAllCtrls, showPanel, hideWaiting } from "../module/ctrls"; import { getUrlParams } from "../module/tools/WebTool";
import { destroyLayers, layers } from "../module/views/layers";
import { IndexScene } from "../src/scenes/IndexScene";
import getQueryParams from "./common/getQueryParams";
import { ResJson } from "./ResJson"; import { ResJson } from "./ResJson";
import { startShare } from "./share";
import { SkinJson } from "./SkinJson"; import { SkinJson } from "./SkinJson";
import { LoadingScene } from "./template/LoadingScene";
import { destroyWebNetData, sendWebNet } from "./WebNet"; import { destroyWebNetData, sendWebNet } from "./WebNet";
import { IndexScene } from "../src/scenes/IndexScene";
import { getUrlParams } from "../module/tools/WebTool";
import getQueryParams from "./common/getQueryParams";
import { WebNetName } from "./WebNetName"; import { WebNetName } from "./WebNetName";
import { getUnionid } from "./getUnionid";
import { startShare } from "./share";
/** /**
...@@ -74,8 +72,7 @@ export class Main { ...@@ -74,8 +72,7 @@ export class Main {
//加载通用资源 //加载通用资源
await RES.loadGroup("common"); await RES.loadGroup("common");
await RES.loadGroup("svga"); await RES.loadGroup("svga");
if(getUnionid()) await sendWebNet(WebNetName.index);
await sendWebNet(WebNetName.index,null,null,false);
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";
......
import getQueryParams from "./common/getQueryParams";
function getParams() { function getParams() {
var url = location.href; var url = location.href;
......
import { getWebData } from "./WebNet";
import { WebNetName } from "./WebNetName";
export const isMember=()=>{
const indexResult = getWebData(WebNetName.index);
return indexResult.data.isMember
}
\ No newline at end of file
...@@ -2,11 +2,11 @@ import { showPanel } from "../../module/ctrls"; ...@@ -2,11 +2,11 @@ import { showPanel } from "../../module/ctrls";
import { RES } from "../../module/RES"; import { RES } from "../../module/RES";
import { Scene } from "../../module/views/Scene"; import { Scene } from "../../module/views/Scene";
import getObject from "../common/getObject"; import getObject from "../common/getObject";
import { getUnionid } from "../getUnionid"; import { isMember } from "../isMember";
import { getTimesPanel } from "../panels/getTimes"; import { getTimesPanel } from "../panels/getTimes";
import { RulePanel } from "../panels/RulePanel"; import { RulePanel } from "../panels/RulePanel";
import { timesNotEnoughPanel } from "../panels/timesNotEnough"; import { timesNotEnoughPanel } from "../panels/timesNotEnough";
import { getWebData, sendLog, sendWebNet } from "../WebNet"; import { getWebData, sendLog } from "../WebNet";
import { WebNetName } from "../WebNetName"; import { WebNetName } from "../WebNetName";
import { BoxGroup } from "./BoxGroup"; import { BoxGroup } from "./BoxGroup";
import { createPrizeTxt } from "./createPrizeTxt"; import { createPrizeTxt } from "./createPrizeTxt";
...@@ -31,7 +31,7 @@ export class IndexScene extends Scene { ...@@ -31,7 +31,7 @@ export class IndexScene extends Scene {
initUi(){ initUi(){
super.initUi(); super.initUi();
if( !getUnionid()){ if( !isMember()){
initNonmemberMask(); initNonmemberMask();
} }
...@@ -143,7 +143,7 @@ export class IndexScene extends Scene { ...@@ -143,7 +143,7 @@ export class IndexScene extends Scene {
} }
getIndex = async () => { getIndex = async () => {
if( !getUnionid()){ if( !isMember()){
getObject(this,'index_sharetips').visible=false; getObject(this,'index_sharetips').visible=false;
getObject(this,'index_sharehand').visible=false; getObject(this,'index_sharehand').visible=false;
scrollList.visible=false; scrollList.visible=false;
......
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