Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yyh
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
yyh
Commits
9d68ad5f
Commit
9d68ad5f
authored
Dec 10, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b0ecc611
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
2 deletions
+25
-2
TeamShareSkin.exml
egret/resource/skins/TeamShareSkin.exml
+4
-0
CertificateScene.ts
egret/src/yazuwei/CertificateScene.ts
+2
-1
JoinShareScene.ts
egret/src/yazuwei/JoinShareScene.ts
+4
-1
TeamShareScene.ts
egret/src/yazuwei/TeamShareScene.ts
+15
-0
No files found.
egret/resource/skins/TeamShareSkin.exml
View file @
9d68ad5f
...
@@ -8,4 +8,8 @@
...
@@ -8,4 +8,8 @@
<e:Rect
id=
"avatarMask"
width=
"136"
height=
"136"
y=
"0"
ellipseWidth=
"136"
ellipseHeight=
"136"
/>
<e:Rect
id=
"avatarMask"
width=
"136"
height=
"136"
y=
"0"
ellipseWidth=
"136"
ellipseHeight=
"136"
/>
</e:Group>
</e:Group>
</e:Group>
</e:Group>
<e:Group
id=
"sharemask"
x=
"0"
y=
"0"
visible=
"false"
>
<e:Rect
id=
"rect1"
width=
"750"
height=
"1624"
x=
"0"
y=
"0"
fillAlpha=
"0.7"
/>
<e:Image
id=
"cover1"
source=
"share2mask_png"
x=
"177"
y=
"73"
/>
</e:Group>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/src/yazuwei/CertificateScene.ts
View file @
9d68ad5f
...
@@ -27,7 +27,8 @@ export default class CertificateScene extends Scene{
...
@@ -27,7 +27,8 @@ export default class CertificateScene extends Scene{
if
(
this
.
_from
==
'ShareStarterScene'
)
{
if
(
this
.
_from
==
'ShareStarterScene'
)
{
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
ShareStarterScene
);
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
ShareStarterScene
);
}
else
{
}
else
{
location
.
href
=
window
[
'indexUrl'
];
location
.
href
=
`
${
window
[
'indexUrl'
]}
?wayId=2`
;
}
}
}
}
...
...
egret/src/yazuwei/JoinShareScene.ts
View file @
9d68ad5f
...
@@ -13,6 +13,9 @@ export default class JoinShareScene extends Scene {
...
@@ -13,6 +13,9 @@ export default class JoinShareScene extends Scene {
}
}
initUI
(
data
)
{
initUI
(
data
)
{
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
()
=>
{
this
.
height
=
this
.
stage
.
stageHeight
;
},
this
);
NetManager
.
ins
.
showLog
(
getlogItem
(
5
));
NetManager
.
ins
.
showLog
(
getlogItem
(
5
));
// this['from'].text = '11111111';
// this['from'].text = '11111111';
// this['to'].text = '22222222';
// this['to'].text = '22222222';
...
@@ -26,7 +29,7 @@ export default class JoinShareScene extends Scene {
...
@@ -26,7 +29,7 @@ export default class JoinShareScene extends Scene {
this
[
'sharemask'
].
visible
=
false
;
this
[
'sharemask'
].
visible
=
false
;
},
this
);
},
this
);
}
else
{
}
else
{
const
url
=
`
${
window
[
'indexUrl'
]}
?joinTeamCode=
${
GameConst
.
getQueryString
(
"shareCode"
)}
`
const
url
=
`
${
window
[
'indexUrl'
]}
?joinTeamCode=
${
GameConst
.
getQueryString
(
"shareCode"
)}
&wayId=3
`
deeplink
(
url
);
deeplink
(
url
);
// PanelCtrl.instance.show(ModuleTypes.ConfirmPanel);
// PanelCtrl.instance.show(ModuleTypes.ConfirmPanel);
}
}
...
...
egret/src/yazuwei/TeamShareScene.ts
View file @
9d68ad5f
...
@@ -4,6 +4,8 @@ import { ModuleTypes } from "../types/sceneTypes";
...
@@ -4,6 +4,8 @@ import { ModuleTypes } from "../types/sceneTypes";
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
{
getlogItem
}
from
"./ConfirmPanel"
;
import
{
getlogItem
}
from
"./ConfirmPanel"
;
import
GameConst
from
"../GameConst"
;
import
GameConst
from
"../GameConst"
;
import
iswx
from
"../iswx"
;
import
{
deeplink
}
from
"./JoinShareScene"
;
export
default
class
TeamShareScene
extends
Scene
{
export
default
class
TeamShareScene
extends
Scene
{
protected
get
skinKey
(){
return
'TeamShare'
}
protected
get
skinKey
(){
return
'TeamShare'
}
...
@@ -17,6 +19,9 @@ export default class TeamShareScene extends Scene{
...
@@ -17,6 +19,9 @@ export default class TeamShareScene extends Scene{
initUI
(
data
){
initUI
(
data
){
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
()
=>
{
this
.
height
=
this
.
stage
.
stageHeight
;
},
this
);
this
[
'avatar'
].
mask
=
this
[
'avatarMask'
];
this
[
'avatar'
].
mask
=
this
[
'avatarMask'
];
this
[
'avatar'
].
source
=
GameConst
.
getQueryString
(
'avatar'
);
this
[
'avatar'
].
source
=
GameConst
.
getQueryString
(
'avatar'
);
...
@@ -24,6 +29,16 @@ export default class TeamShareScene extends Scene{
...
@@ -24,6 +29,16 @@ export default class TeamShareScene extends Scene{
onTap_btn
(){
onTap_btn
(){
console
.
log
(
'onTap_btn'
);
console
.
log
(
'onTap_btn'
);
if
(
iswx
())
{
this
[
'sharemask'
].
visible
=
true
;
this
[
'sharemask'
].
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
'sharemask'
].
visible
=
false
;
},
this
);
}
else
{
const
url
=
`
${
window
[
'indexUrl'
]}
?wayId=4`
deeplink
(
url
);
// PanelCtrl.instance.show(ModuleTypes.ConfirmPanel);
}
}
}
initEvents
(){
initEvents
(){
...
...
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