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
82944d24
Commit
82944d24
authored
Oct 15, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
07b206b4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
MapTopSkin.exml
egret/resource/skins/MapTopSkin.exml
+1
-1
H5Scene.ts
egret/src/H5Scene.ts
+1
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+2
-2
FriendPanel.ts
egret/src/panels/FriendPanel.ts
+1
-1
No files found.
egret/resource/skins/MapTopSkin.exml
View file @
82944d24
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<e:Image
source=
"icon_png"
x=
"0"
y=
"0"
/>
<e:Image
source=
"icon_png"
x=
"0"
y=
"0"
/>
<e:BitmapLabel
width=
"76"
x=
"12"
y=
"18.69"
text=
"4"
font=
"nums_fnt"
textAlign=
"center"
/>
<e:BitmapLabel
width=
"76"
x=
"12"
y=
"18.69"
text=
"4"
font=
"nums_fnt"
textAlign=
"center"
/>
</e:Group>
</e:Group>
<e:Group
x=
"5
51"
y=
"810
"
id=
"icon4"
>
<e:Group
x=
"5
13"
y=
"841
"
id=
"icon4"
>
<e:Image
source=
"icon_png"
x=
"0"
y=
"0"
/>
<e:Image
source=
"icon_png"
x=
"0"
y=
"0"
/>
<e:BitmapLabel
width=
"76"
x=
"12"
y=
"18.69"
text=
"5"
font=
"nums_fnt"
textAlign=
"center"
/>
<e:BitmapLabel
width=
"76"
x=
"12"
y=
"18.69"
text=
"5"
font=
"nums_fnt"
textAlign=
"center"
/>
</e:Group>
</e:Group>
...
...
egret/src/H5Scene.ts
View file @
82944d24
...
@@ -12,7 +12,7 @@ export default class H5Scene extends Scene {
...
@@ -12,7 +12,7 @@ export default class H5Scene extends Scene {
},
this
);
},
this
);
this
[
'gobtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,()
=>
{
this
[
'gobtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,()
=>
{
const
code
=
Utils
.
getRequestByKey
(
'shareCode'
);
const
code
=
Utils
.
getRequestByKey
(
'shareCode'
);
window
.
location
.
href
=
`
${
window
[
'targetUrl'
]}
&shareCode=
code
`
window
.
location
.
href
=
`
${
window
[
'targetUrl'
]}
&shareCode=
${
code
}
`
},
this
);
},
this
);
}
}
...
...
egret/src/mapScene/MapScene.ts
View file @
82944d24
...
@@ -749,9 +749,9 @@ export default class MapScene extends Scene {
...
@@ -749,9 +749,9 @@ export default class MapScene extends Scene {
return
'Map'
return
'Map'
}
}
}
}
export
const
getNick
=
(
nickname
)
=>
{
export
const
getNick
=
(
nickname
,
max
=
4
)
=>
{
if
(
!
nickname
)
return
nickname
;
if
(
!
nickname
)
return
nickname
;
const
max
=
4
;
if
(
nickname
.
length
>
max
)
if
(
nickname
.
length
>
max
)
return
nickname
.
slice
(
0
,
max
)
+
'...'
;
return
nickname
.
slice
(
0
,
max
)
+
'...'
;
return
nickname
;
return
nickname
;
...
...
egret/src/panels/FriendPanel.ts
View file @
82944d24
...
@@ -61,7 +61,7 @@ export default class FriendPanel extends Panel {
...
@@ -61,7 +61,7 @@ export default class FriendPanel extends Panel {
this
[
'avatar'
].
source
=
this
[
'avatar0'
].
source
=
data
.
avatar
;
this
[
'avatar'
].
source
=
this
[
'avatar0'
].
source
=
data
.
avatar
;
this
[
'nameTxt'
].
text
=
getNick
(
data
.
nickname
);
this
[
'nameTxt'
].
text
=
getNick
(
data
.
nickname
);
this
[
'nameTxt0'
].
text
=
getNick
(
data
.
nickname
);
this
[
'nameTxt0'
].
text
=
getNick
(
data
.
nickname
,
10
);
});
});
}
}
...
...
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