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
82ea1c0d
Commit
82ea1c0d
authored
Aug 29, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
983aa8d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Share2Skin.exml
egret/resource/skins/Share2Skin.exml
+2
-2
shareCtrl.ts
egret/src/shareCtrl.ts
+2
-0
No files found.
egret/resource/skins/Share2Skin.exml
View file @
82ea1c0d
...
...
@@ -6,9 +6,9 @@
<e:Image
source=
"share3_jpg"
y=
"0"
x=
"0"
/>
<e:Label
id=
"lvTxt"
text=
"188"
x=
"247.65"
y=
"719.82"
size=
"14"
anchorOffsetX=
"0"
width=
"61.33"
textAlign=
"center"
verticalAlign=
"middle"
textColor=
"0xEA2917"
/>
</e:Group>
<e:Group
id=
"pic2"
y=
"15"
horizontalCenter=
"0"
visible=
"false"
>
<e:Group
id=
"pic2"
y=
"15"
horizontalCenter=
"0"
>
<e:Image
source=
"showoff_jpg"
x=
"0"
y=
"0"
height=
"931"
width=
"579"
/>
<e:Label
id=
"lvTxt0"
text=
"
888"
x=
"146.97"
y=
"208.25"
anchorOffsetX=
"0"
width=
"179
"
anchorOffsetY=
"0"
bold=
"true"
textColor=
"0xEC1F09"
textAlign=
"center"
verticalAlign=
"middle"
size=
"106"
/>
<e:Label
id=
"lvTxt0"
text=
"
9"
x=
"202.58"
y=
"208.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"
/>
...
...
egret/src/shareCtrl.ts
View file @
82ea1c0d
...
...
@@ -19,7 +19,9 @@ class Share2 extends ComponentBase {
}
start
()
{
const
data
=
getHomeData
();
this
[
'tipsTxt0'
].
text
=
`超过了
${
Math
.
ceil
(
Math
.
random
()
*
100
)}
%的好友`
;
this
[
'lvTxt'
].
text
=
data
.
levels
.
length
;
this
[
'lvTxt0'
].
text
=
data
.
levels
.
length
;
this
[
'btn1'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
iswx
())
{
//微信端
...
...
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