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
3e91809e
Commit
3e91809e
authored
Aug 31, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a53e8363
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Share2Skin.exml
egret/resource/skins/Share2Skin.exml
+1
-1
getSharePic.ts
egret/src/getSharePic.ts
+1
-1
shareCtrl.ts
egret/src/shareCtrl.ts
+1
-1
No files found.
egret/resource/skins/Share2Skin.exml
View file @
3e91809e
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<e:Rect
width=
"750"
height=
"1624"
fillAlpha=
"0.7"
/>
<e:Rect
width=
"750"
height=
"1624"
fillAlpha=
"0.7"
/>
<e:Group
id=
"pic1"
x=
"86"
y=
"46"
>
<e:Group
id=
"pic1"
x=
"86"
y=
"46"
>
<e:Image
source=
"share3_jpg"
y=
"0"
x=
"0"
/>
<e:Image
source=
"share3_jpg"
y=
"0"
x=
"0"
/>
<e:Label
id=
"lvTxt"
text=
"188"
x=
"247.65"
y=
"7
19
.82"
size=
"14"
anchorOffsetX=
"0"
width=
"61.33"
textAlign=
"center"
verticalAlign=
"middle"
textColor=
"0xEA2917"
/>
<e:Label
id=
"lvTxt"
text=
"188"
x=
"247.65"
y=
"7
21
.82"
size=
"14"
anchorOffsetX=
"0"
width=
"61.33"
textAlign=
"center"
verticalAlign=
"middle"
textColor=
"0xEA2917"
/>
</e:Group>
</e:Group>
<e:Group
id=
"pic2"
y=
"15"
horizontalCenter=
"0"
>
<e:Group
id=
"pic2"
y=
"15"
horizontalCenter=
"0"
>
<e:Image
x=
"0"
y=
"0"
scaleX=
"0.8"
scaleY=
"0.8"
source=
"showoff1_jpg"
/>
<e:Image
x=
"0"
y=
"0"
scaleX=
"0.8"
scaleY=
"0.8"
source=
"showoff1_jpg"
/>
...
...
egret/src/getSharePic.ts
View file @
3e91809e
...
@@ -7,7 +7,7 @@ import { DataManager } from "../libs/tw/manager/DataManager";
...
@@ -7,7 +7,7 @@ import { DataManager } from "../libs/tw/manager/DataManager";
class
Share
extends
ComponentBase
{
class
Share
extends
ComponentBase
{
start
()
{
start
()
{
const
data
=
getHomeData
();
const
data
=
getHomeData
();
this
[
'lvTxt'
].
text
=
data
.
levels
.
length
;
this
[
'lvTxt'
].
text
=
data
.
levels
.
length
==
0
?
1
:
data
.
levels
.
length
;
}
}
get
skinKey
()
{
return
'Share'
}
get
skinKey
()
{
return
'Share'
}
...
...
egret/src/shareCtrl.ts
View file @
3e91809e
...
@@ -28,7 +28,7 @@ class Share2 extends ComponentBase {
...
@@ -28,7 +28,7 @@ class Share2 extends ComponentBase {
const
data
=
getHomeData
();
const
data
=
getHomeData
();
this
[
'tipsTxt0'
].
text
=
`超过了
${
Math
.
ceil
(
Math
.
random
()
*
100
)}
%的好友`
;
this
[
'tipsTxt0'
].
text
=
`超过了
${
Math
.
ceil
(
Math
.
random
()
*
100
)}
%的好友`
;
this
[
'lvTxt'
].
text
=
data
.
levels
.
length
;
this
[
'lvTxt'
].
text
=
data
.
levels
.
length
==
0
?
1
:
data
.
levels
.
length
;
this
[
'lvTxt0'
].
text
=
data
.
levels
.
length
;
this
[
'lvTxt0'
].
text
=
data
.
levels
.
length
;
this
[
'btn1'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
'btn1'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
iswx
())
{
//微信端
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