Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
xiaoxiaole
Commits
f7d71764
Commit
f7d71764
authored
Oct 14, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
434cca28
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
InvitePanel.ts
egret/src/panels/InvitePanel.ts
+6
-3
getInviteInfo.json
mock/happyclear/getInviteInfo.json
+1
-1
No files found.
egret/src/panels/InvitePanel.ts
View file @
f7d71764
...
...
@@ -4,6 +4,7 @@ import getSkinPath from "../../libs/new_wx/utils/getSkinPath";
import
InviteRulePanel
from
"./InviteRulePanel"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
Utils
from
"../Utils"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
export
default
class
InvitePanel
extends
Panel
{
public
prizeImg
:
eui
.
Image
;
...
...
@@ -78,12 +79,14 @@ export default class InvitePanel extends Panel {
if
(
!
success
)
{
return
;
}
let
shareCode
=
res
.
data
;
let
shareCode
=
res
.
data
;
// 分享码
CFG
.
wxShareLink
=
"https://gameact.suning.com/duiba/customShare/share?id=3531"
+
"&shareCode="
+
shareCode
;
// 分享链接
if
(
iswx
())
{
//微信端
this
.
wxShareTip
.
visible
=
true
;
window
[
"invokeWX"
]();
}
else
{
//端内
this
.
wxShareTip
.
visible
=
tru
e
;
//
window["inviteShare"](shareCode);
this
.
wxShareTip
.
visible
=
fals
e
;
window
[
"inviteShare"
](
shareCode
);
}
});
}
...
...
mock/happyclear/getInviteInfo.json
View file @
f7d71764
...
...
@@ -15,7 +15,7 @@
"avatar"
:
"http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg"
}
],
"completeFlag"
:
1
,
"completeFlag"
:
0
,
"openPrizeMsg"
:
"图片"
,
"prizeType"
:
"nickname"
,
"prizeName"
:
"nickname"
,
...
...
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