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
cd326833
Commit
cd326833
authored
Aug 29, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
50d5ce01
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
Share2Skin.exml
egret/resource/skins/Share2Skin.exml
+1
-1
ShowOffSkin.exml
egret/resource/skins/ShowOffSkin.exml
+1
-1
shareCtrl.ts
egret/src/shareCtrl.ts
+7
-7
No files found.
egret/resource/skins/Share2Skin.exml
View file @
cd326833
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</e:Group>
</e:Group>
<e:Group
id=
"pic2"
y=
"15"
horizontalCenter=
"0"
>
<e:Group
id=
"pic2"
y=
"15"
horizontalCenter=
"0"
>
<e:Image
source=
"showoff_jpg"
x=
"0"
y=
"0"
height=
"931"
width=
"579"
/>
<e:Image
source=
"showoff_jpg"
x=
"0"
y=
"0"
height=
"931"
width=
"579"
/>
<e:Label
id=
"lvTxt0"
text=
"98"
x=
"1
91.94
"
y=
"208.25"
anchorOffsetX=
"0"
width=
"130.67"
anchorOffsetY=
"0"
bold=
"true"
textColor=
"0xEC1F09"
textAlign=
"right"
verticalAlign=
"middle"
size=
"106"
/>
<e:Label
id=
"lvTxt0"
text=
"98"
x=
"1
85.29
"
y=
"208.25"
anchorOffsetX=
"0"
width=
"130.67"
anchorOffsetY=
"0"
bold=
"true"
textColor=
"0xEC1F09"
textAlign=
"right"
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: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:Group>
<e:Image
source=
"朋友圈中间分享蒙层1_jpg"
y=
"899.88"
horizontalCenter=
"0"
/>
<e:Image
source=
"朋友圈中间分享蒙层1_jpg"
y=
"899.88"
horizontalCenter=
"0"
/>
...
...
egret/resource/skins/ShowOffSkin.exml
View file @
cd326833
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<e:Skin
class=
"ShowOffSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"ShowOffSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Group
id=
"pic"
x=
"0"
y=
"0"
>
<e:Group
id=
"pic"
x=
"0"
y=
"0"
>
<e:Image
source=
"showoff_jpg"
x=
"0"
y=
"0"
/>
<e:Image
source=
"showoff_jpg"
x=
"0"
y=
"0"
/>
<e:Label
id=
"lvTxt"
text=
"88
8"
x=
"250"
y=
"284"
anchorOffsetX=
"0"
width=
"179"
anchorOffsetY=
"0"
bold=
"true"
textColor=
"0xec1f09"
textAlign=
"center
"
verticalAlign=
"middle"
size=
"106"
/>
<e:Label
id=
"lvTxt"
text=
"88
"
x=
"237.88"
y=
"284"
anchorOffsetX=
"0"
width=
"179"
anchorOffsetY=
"0"
bold=
"true"
textColor=
"0xec1f09"
textAlign=
"right
"
verticalAlign=
"middle"
size=
"106"
/>
<e:Label
id=
"tipsTxt"
text=
"超过了60%的好友"
y=
"403"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
textColor=
"0xEC1F09"
textAlign=
"center"
verticalAlign=
"middle"
size=
"29"
x=
"259"
/>
<e:Label
id=
"tipsTxt"
text=
"超过了60%的好友"
y=
"403"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
textColor=
"0xEC1F09"
textAlign=
"center"
verticalAlign=
"middle"
size=
"29"
x=
"259"
/>
</e:Group>
</e:Group>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/src/shareCtrl.ts
View file @
cd326833
...
@@ -12,10 +12,10 @@ img.style.display = 'none';
...
@@ -12,10 +12,10 @@ img.style.display = 'none';
class
Share2
extends
ComponentBase
{
class
Share2
extends
ComponentBase
{
type
;
type
;
setType
(
type
:
any
)
{
setType
(
type
:
any
)
{
this
.
type
=
type
;
this
.
type
=
type
;
this
[
'pic1'
].
visible
=
false
;
this
[
'pic1'
].
visible
=
false
;
this
[
'pic2'
].
visible
=
false
;
this
[
'pic2'
].
visible
=
false
;
this
[
'pic'
+
type
].
visible
=
true
;
this
[
'pic'
+
type
].
visible
=
true
;
}
}
start
()
{
start
()
{
const
data
=
getHomeData
();
const
data
=
getHomeData
();
...
@@ -43,7 +43,7 @@ class Share2 extends ComponentBase {
...
@@ -43,7 +43,7 @@ class Share2 extends ComponentBase {
}
}
//channel 1 好友 2 朋友圈
//channel 1 好友 2 朋友圈
getFunc
(
type
:
string
)
{
getFunc
(
type
:
string
)
{
const
base64
=
getPrintScreenData
(
this
[
'pic'
+
this
.
type
],
0
,
0
,
579
,
866
);
const
base64
=
getPrintScreenData
(
this
[
'pic'
+
this
.
type
],
0
,
0
,
579
,
866
);
NetManager
.
ins
.
imgUrl
((
success
)
=>
{
NetManager
.
ins
.
imgUrl
((
success
)
=>
{
const
data
=
DataManager
.
ins
.
getData
(
'imgURL'
);
const
data
=
DataManager
.
ins
.
getData
(
'imgURL'
);
img
.
src
=
base64
;
img
.
src
=
base64
;
...
@@ -57,14 +57,14 @@ class Share2 extends ComponentBase {
...
@@ -57,14 +57,14 @@ class Share2 extends ComponentBase {
}
}
}
}
let
inited
=
false
;
let
inited
=
false
;
let
_share
:
Share2
;
let
_share
:
Share2
;
const
initShare
=
()
=>
{
const
initShare
=
()
=>
{
const
layer
=
layers
.
shareLayer
;
const
layer
=
layers
.
shareLayer
;
const
share
=
new
Share2
();
const
share
=
new
Share2
();
share
.
loadSkin
();
share
.
loadSkin
();
share
.
start
();
share
.
start
();
layer
.
addChild
(
share
);
layer
.
addChild
(
share
);
_share
=
share
;
_share
=
share
;
};
};
export
const
showShare
=
(
type
)
=>
{
export
const
showShare
=
(
type
)
=>
{
if
(
!
inited
)
{
if
(
!
inited
)
{
...
...
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