Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wfc13
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
wfc13
Commits
e2aba88a
Commit
e2aba88a
authored
Aug 16, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
ace560c0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
16 deletions
+19
-16
Main.ts
project/src/Main.ts
+8
-11
getUnionid.ts
project/src/getUnionid.ts
+0
-1
isMember.ts
project/src/isMember.ts
+7
-0
IndexScene.ts
project/src/scenes/IndexScene.ts
+4
-4
No files found.
project/src/Main.ts
View file @
e2aba88a
import
{
layers
,
destroyLayers
}
from
"../module/views/layer
s"
;
import
{
changeScene
,
destroyAllCtrls
}
from
"../module/ctrl
s"
;
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"
;
...
...
project/src/getUnionid.ts
View file @
e2aba88a
import
getQueryParams
from
"./common/getQueryParams"
;
function
getParams
()
{
var
url
=
location
.
href
;
...
...
project/src/isMember.ts
0 → 100644
View file @
e2aba88a
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
project/src/scenes/IndexScene.ts
View file @
e2aba88a
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment