Commit 979a84a4 authored by wildfirecode13's avatar wildfirecode13

u

parent 4abf57c0
...@@ -83,7 +83,7 @@ export class Main { ...@@ -83,7 +83,7 @@ export class Main {
//加载通用资源 //加载通用资源
await RES.loadGroup("common"); await RES.loadGroup("common");
await RES.loadGroup("svga"); await RES.loadGroup("svga");
await sendWebNet(WebNetName.index,{isShare:getQueryParams().issharepage ? 1:0}); await sendWebNet(WebNetName.index,{isShare:getQueryParams().issharepage=='1' ? 1:0});
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";
......
...@@ -4,5 +4,5 @@ import { WebNetName } from "./WebNetName"; ...@@ -4,5 +4,5 @@ import { WebNetName } from "./WebNetName";
export const isMember=()=>{ export const isMember=()=>{
const indexResult = getWebData(WebNetName.index); const indexResult = getWebData(WebNetName.index);
return getQueryParams().ismember return indexResult.data.vip || (localStorage&&localStorage.getItem('vip'))
} }
\ 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