Commit 3e91809e authored by wildfirecode's avatar wildfirecode

1

parent a53e8363
...@@ -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="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="721.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"/>
......
...@@ -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' }
......
...@@ -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()) { //微信端
......
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