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
78de9714
Commit
78de9714
authored
Sep 24, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1111
parent
46b2c76c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
9 deletions
+19
-9
Main.ts
project/src/Main.ts
+11
-5
ResJson.ts
project/src/ResJson.ts
+1
-1
share.ts
project/src/share.ts
+7
-3
No files found.
project/src/Main.ts
View file @
78de9714
...
...
@@ -11,9 +11,9 @@ import "./monitor";
import
{
ResJson
}
from
"./ResJson"
;
import
{
startShare
}
from
"./share"
;
import
{
SkinJson
}
from
"./SkinJson"
;
import
{
destroyWebNetData
,
sendWebNet
}
from
"./WebNet"
;
import
{
destroyWebNetData
,
getWebData
,
sendWebNet
}
from
"./WebNet"
;
import
{
WebNetName
}
from
"./WebNetName"
;
import
{
SharePanel
}
from
"./panels/share"
import
{
SharePanel
}
from
"./panels/share"
import
{
notEnoughMoneySharePanel
}
from
"./panels/notEnoughMoneyShare"
;
/**
...
...
@@ -70,7 +70,7 @@ export class Main {
console
.
log
(
'主动进入'
)
}
startShare
();
//初始化层级
...
...
@@ -91,10 +91,16 @@ export class Main {
if
(
FYGE
.
getEnv
()
==
"web"
&&
document
.
getElementById
(
"__loading__"
))
document
.
getElementById
(
"__loading__"
).
style
.
display
=
"none"
;
//显示场景
changeScene
(
IndexScene
);
sendWebNet
(
WebNetName
.
getInviteCode
,
{},
null
,
true
);
if
(
getQueryParams
().
code
)
if
(
getQueryParams
().
code
)
sendWebNet
(
WebNetName
.
doAssist
,
{
inviteCode
:
getQueryParams
().
code
},
null
,
true
);
await
sendWebNet
(
WebNetName
.
getInviteCode
,
{},
null
,
true
);
startShare
();
}
/**
...
...
project/src/ResJson.ts
View file @
78de9714
...
...
@@ -831,5 +831,5 @@ export const ResJson = {
}
}
],
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/1632
277278
/resource/"
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/1632
466664
/resource/"
}
\ No newline at end of file
project/src/share.ts
View file @
78de9714
// import { start, WeixinMini, updateShare } from '@spark/share'
import
{
getWebData
}
from
"./WebNet"
;
import
{
WebNetName
}
from
"./WebNetName"
;
export
const
startShare
=
()
=>
{
console
.
log
(
'wx.miniProgram.postMessage'
)
const
result
=
getWebData
(
WebNetName
.
getInviteCode
);
const
shareCode
=
result
.
data
.
inviteCode
;
console
.
log
(
'wx.miniProgram.postMessage'
,
shareCode
)
const
shareCode
=
0
;
//@ts-ignore
wx
.
miniProgram
.
postMessage
(
{
...
...
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