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
1035b7be
Commit
1035b7be
authored
Aug 30, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
65ea9317
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
11 deletions
+21
-11
Share2Skin.exml
egret/resource/skins/Share2Skin.exml
+13
-11
shareCtrl.ts
egret/src/shareCtrl.ts
+8
-0
No files found.
egret/resource/skins/Share2Skin.exml
View file @
1035b7be
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"Share2Skin"
width=
"750"
height=
"1
206
"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"Share2Skin"
width=
"750"
height=
"1
624
"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<w:Config
id=
"16cd6d4c8ff"
/>
<e:Rect
width=
"750"
height=
"1624"
fillAlpha=
"0.7"
/>
<e:Group
id=
"pic1"
x=
"86"
y=
"46"
>
...
...
@@ -11,8 +11,9 @@
<e:Label
id=
"lvTxt0"
text=
"14"
x=
"222.44"
y=
"218.25"
anchorOffsetX=
"0"
width=
"130.67"
anchorOffsetY=
"0"
bold=
"true"
textColor=
"0xEC1F09"
textAlign=
"center"
verticalAlign=
"middle"
size=
"106"
/>
<e:Label
id=
"tipsTxt0"
text=
"超过了60%的好友"
y=
"324.22"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
textColor=
"0xEC1F09"
textAlign=
"center"
verticalAlign=
"middle"
size=
"29"
horizontalCenter=
"0"
/>
</e:Group>
<e:Image
source=
"朋友圈中间分享蒙层1_jpg"
y=
"899.88"
horizontalCenter=
"0"
/>
<e:Group
y=
"965.88"
horizontalCenter=
"0"
>
<e:Group
id=
"inviteGroup"
x=
"0"
bottom=
"0"
>
<e:Image
source=
"朋友圈中间分享蒙层1_jpg"
y=
"0"
x=
"0"
/>
<e:Group
y=
"66"
x=
"261"
>
<e:Button
id=
"btn1"
label=
""
x=
"0"
y=
"0"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
...
...
@@ -30,4 +31,5 @@
</e:skinName>
</e:Button>
</e:Group>
</e:Group>
</e:Skin>
\ No newline at end of file
egret/src/shareCtrl.ts
View file @
1035b7be
...
...
@@ -18,6 +18,14 @@ class Share2 extends ComponentBase {
this
[
'pic'
+
type
].
visible
=
true
;
}
start
()
{
this
.
once
(
egret
.
TouchEvent
.
ADDED_TO_STAGE
,()
=>
{
this
.
height
=
this
.
stage
.
stageHeight
;
},
this
);
this
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,()
=>
{
hideShare
();
},
this
);
const
data
=
getHomeData
();
this
[
'tipsTxt0'
].
text
=
`超过了
${
Math
.
ceil
(
Math
.
random
()
*
100
)}
%的好友`
;
this
[
'lvTxt'
].
text
=
data
.
levels
.
length
;
...
...
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