Commit 1035b7be authored by wildfirecode's avatar wildfirecode

1

parent 65ea9317
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="Share2Skin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Skin class="Share2Skin" width="750" height="1624" 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
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment