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
7543059f
Commit
7543059f
authored
Oct 14, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole into dev
parents
11f5f3b0
000cbcd3
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 @
7543059f
...
@@ -4,6 +4,7 @@ import getSkinPath from "../../libs/new_wx/utils/getSkinPath";
...
@@ -4,6 +4,7 @@ import getSkinPath from "../../libs/new_wx/utils/getSkinPath";
import
InviteRulePanel
from
"./InviteRulePanel"
;
import
InviteRulePanel
from
"./InviteRulePanel"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
Utils
from
"../Utils"
;
import
Utils
from
"../Utils"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
export
default
class
InvitePanel
extends
Panel
{
export
default
class
InvitePanel
extends
Panel
{
public
prizeImg
:
eui
.
Image
;
public
prizeImg
:
eui
.
Image
;
...
@@ -78,12 +79,14 @@ export default class InvitePanel extends Panel {
...
@@ -78,12 +79,14 @@ export default class InvitePanel extends Panel {
if
(
!
success
)
{
if
(
!
success
)
{
return
;
return
;
}
}
let
shareCode
=
res
.
data
;
let
shareCode
=
res
.
data
;
// 分享码
CFG
.
wxShareLink
=
"https://gameact.suning.com/duiba/customShare/share?id=3531"
+
"&shareCode="
+
shareCode
;
// 分享链接
if
(
iswx
())
{
//微信端
if
(
iswx
())
{
//微信端
this
.
wxShareTip
.
visible
=
true
;
this
.
wxShareTip
.
visible
=
true
;
window
[
"invokeWX"
]();
}
else
{
//端内
}
else
{
//端内
this
.
wxShareTip
.
visible
=
tru
e
;
this
.
wxShareTip
.
visible
=
fals
e
;
//
window["inviteShare"](shareCode);
window
[
"inviteShare"
](
shareCode
);
}
}
});
});
}
}
...
...
mock/happyclear/getInviteInfo.json
View file @
7543059f
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
"avatar"
:
"http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg"
"avatar"
:
"http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg"
}
}
],
],
"completeFlag"
:
1
,
"completeFlag"
:
0
,
"openPrizeMsg"
:
"图片"
,
"openPrizeMsg"
:
"图片"
,
"prizeType"
:
"nickname"
,
"prizeType"
:
"nickname"
,
"prizeName"
:
"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