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 { 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 { startShare } from "./share";
import { SkinJson } from "./SkinJson";
import { LoadingScene } from "./template/LoadingScene";
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 { getUnionid } from "./getUnionid";
import { startShare } from "./share";
/**
......@@ -74,8 +72,7 @@ export class Main {
//加载通用资源
await RES.loadGroup("common");
await RES.loadGroup("svga");
if(getUnionid())
await sendWebNet(WebNetName.index,null,null,false);
await sendWebNet(WebNetName.index);
console.log("通用资源加载完成")
//h5环境时,隐藏加载中
if (FYGE.getEnv() == "web" && document.getElementById("__loading__")) document.getElementById("__loading__").style.display = "none";
......
import getQueryParams from "./common/getQueryParams";
function getParams() {
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";
import { RES } from "../../module/RES";
import { Scene } from "../../module/views/Scene";
import getObject from "../common/getObject";
import { getUnionid } from "../getUnionid";
import { isMember } from "../isMember";
import { getTimesPanel } from "../panels/getTimes";
import { RulePanel } from "../panels/RulePanel";
import { timesNotEnoughPanel } from "../panels/timesNotEnough";
import { getWebData, sendLog, sendWebNet } from "../WebNet";
import { getWebData, sendLog } from "../WebNet";
import { WebNetName } from "../WebNetName";
import { BoxGroup } from "./BoxGroup";
import { createPrizeTxt } from "./createPrizeTxt";
......@@ -31,7 +31,7 @@ export class IndexScene extends Scene {
initUi(){
super.initUi();
if( !getUnionid()){
if( !isMember()){
initNonmemberMask();
}
......@@ -143,7 +143,7 @@ export class IndexScene extends Scene {
}
getIndex = async () => {
if( !getUnionid()){
if( !isMember()){
getObject(this,'index_sharetips').visible=false;
getObject(this,'index_sharehand').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