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
638daddb
Commit
638daddb
authored
Oct 28, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
fb514dd6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
MapScene.ts
egret/src/mapScene/MapScene.ts
+5
-5
ScratchPanel.ts
egret/src/panels/ScratchPanel.ts
+3
-3
No files found.
egret/src/mapScene/MapScene.ts
View file @
638daddb
...
...
@@ -42,8 +42,7 @@ export default class MapScene extends Scene {
sendInvite
()
{
const
code
=
Utils
.
getRequestByKey
(
'shareCode'
);
const
code2
=
Utils
.
getRequestByKey
(
'shareCode2'
);
if
(
!
code
&&
!
code2
)
return
;
if
(
!
code
)
return
;
const
dojoin
=
DataManager
.
ins
.
getData
(
'hc_doJoin'
);
if
(
!
dojoin
)
return
;
if
(
doHelpFlag
)
{
...
...
@@ -60,10 +59,11 @@ export default class MapScene extends Scene {
if
(
!
success
)
{
return
;
}
showToast
(
"助力成功"
);
};
if
(
code
)
{
if
(
code
.
indexOf
(
"12345678"
)
==
-
1
){
// 邀请有礼
NetManager
.
ins
.
doHelp
(
callBack
,
code
,
dojoin
.
data
);
}
else
if
(
code2
)
{
NetManager
.
ins
.
scratchDoHelp
(
callBack
,
code2
);
}
else
{
// 刮刮卡
let
_code
=
code
.
slice
(
8
);
NetManager
.
ins
.
scratchDoHelp
(
callBack
,
_code
);
}
}
...
...
egret/src/panels/ScratchPanel.ts
View file @
638daddb
...
...
@@ -220,8 +220,8 @@ class ScratchItem extends eui.ItemRenderer {
if
(
!
success
)
{
return
;
}
let
shareCode
2
=
res
.
data
;
// 分享码
CFG
.
wxShareLink
=
window
[
'h5URL2'
]
+
"&shareCode
2="
+
shareCode2
;
// 分享链接
let
shareCode
=
res
.
data
;
// 分享码
CFG
.
wxShareLink
=
window
[
'h5URL2'
]
+
"&shareCode
="
+
"12345678"
+
shareCode
;
// 分享链接
CFG
.
wxShareTitle
=
'狮狮连萌超好玩~我已经玩到第一了!'
;
CFG
.
wxShareDesc
=
'我在萌狮消消乐等你来挑战哦'
;
CFG
.
wxShareImg
=
"http://yun.duiba.com.cn/db_games/xiaoxiaole2.jpg"
;
...
...
@@ -230,7 +230,7 @@ class ScratchItem extends eui.ItemRenderer {
window
[
"invokeWX"
]();
}
else
{
//端内
this
.
data
.
wxShareTip
.
visible
=
false
;
window
[
"
inviteShare2"
](
shareCode2
);
window
[
"
scratchShare"
](
shareCode
);
}
},
this
.
data
.
scratchTaskId
);
},
this
);
...
...
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