Commit 82ea1c0d authored by wildfirecode's avatar wildfirecode

1

parent 983aa8d0
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
<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="719.82" size="14" anchorOffsetX="0" width="61.33" textAlign="center" verticalAlign="middle" textColor="0xEA2917"/> <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>
<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: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: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"/>
......
...@@ -19,7 +19,9 @@ class Share2 extends ComponentBase { ...@@ -19,7 +19,9 @@ class Share2 extends ComponentBase {
} }
start() { start() {
const data = getHomeData(); const data = getHomeData();
this['tipsTxt0'].text = `超过了${Math.ceil(Math.random() * 100)}%的好友`;
this['lvTxt'].text = data.levels.length; this['lvTxt'].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()) { //微信端
......
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