Commit 49242a60 authored by wildfirecode's avatar wildfirecode

1

parent 9d84a4bd
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="FriendSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="FriendSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Image source="friendbg_png" y="31" horizontalCenter="1.5"/> <e:Image source="friendbg_png" y="48.29" horizontalCenter="2" locked="true"/>
<e:Label id="star" text="X0" x="588.96" y="329.79" size="24" fontFamily="FZY3JW"/> <e:Label id="star" text="X0" x="588.96" y="366.08" size="24" fontFamily="FZY3JW"/>
<e:Button id="closeBtn" label="" x="632.94" y="164.98"> <e:Button id="closeBtn" label="" x="632.94" y="164.98">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled" xmlns:w="http://ns.egret.com/wing"> <e:Skin states="up,down,disabled" xmlns:w="http://ns.egret.com/wing">
...@@ -41,18 +41,13 @@ ...@@ -41,18 +41,13 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Group x="313.87" y="104.79"> <e:Group x="216.21" y="348.13">
<e:Image id="avatar" y="0" width="120" height="120" x="0" source=""/>
<e:Rect id="avatarMask" width="120" height="120" y="0" ellipseWidth="120" ellipseHeight="120"/>
</e:Group>
<e:Group x="214.87" y="308.79">
<e:Image id="avatar0" y="0" width="60" height="60" x="0" source=""/> <e:Image id="avatar0" y="0" width="60" height="60" x="0" source=""/>
<e:Rect id="avatarMask0" width="60" height="60" y="0" ellipseWidth="60" ellipseHeight="60"/> <e:Rect id="avatarMask0" width="60" height="60" y="0" ellipseWidth="60" ellipseHeight="60"/>
</e:Group> </e:Group>
<e:Label id="nameTxt0" text="nickname" y="245" textColor="0x784325" horizontalCenter="6.5" fontFamily="FZY3JW"/> <e:Label id="rankTxt" text="-" x="110.66" y="350.14" width="75" textAlign="center" verticalAlign="middle" height="52" size="44" fontFamily="FZY3JW" bold="true"/>
<e:Label id="rankTxt" text="-" x="108" y="311" width="75" textAlign="center" verticalAlign="middle" height="52" size="44" fontFamily="FZY3JW"/> <e:Label id="nameTxt" text="-" x="297.02" y="346.29" size="24" fontFamily="FZY3JW"/>
<e:Label id="nameTxt" text="-" x="297.02" y="307" size="24" fontFamily="FZY3JW"/> <e:Label id="progress" text="第1关" x="297.02" y="380.08" size="24" fontFamily="FZY3JW"/>
<e:Label id="progress" text="第1关" x="297.02" y="340.79" size="24" fontFamily="FZY3JW"/> <e:Label id="score" text="分数:0分" x="405.02" y="380.08" size="24" anchorOffsetX="0" anchorOffsetY="0" fontFamily="FZY3JW"/>
<e:Label id="score" text="分数:0分" x="405.02" y="340.79" size="24" anchorOffsetX="0" anchorOffsetY="0" fontFamily="FZY3JW"/>
<e:Label id="empty" text="您还没有好友" y="636" textColor="0x784325" horizontalCenter="6.5" fontFamily="FZY3JW"/> <e:Label id="empty" text="您还没有好友" y="636" textColor="0x784325" horizontalCenter="6.5" fontFamily="FZY3JW"/>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -17,7 +17,6 @@ export default class FriendPanel extends Panel { ...@@ -17,7 +17,6 @@ export default class FriendPanel extends Panel {
super.start(); super.start();
this.showlog(); this.showlog();
this['btn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTapInvite, this); this['btn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTapInvite, this);
this['avatar'].mask = this['avatarMask'];
this['avatar0'].mask = this['avatarMask0']; this['avatar0'].mask = this['avatarMask0'];
this.list.useVirtualLayout = false; this.list.useVirtualLayout = false;
this.list.itemRenderer = FriendItemRenderer; this.list.itemRenderer = FriendItemRenderer;
...@@ -54,23 +53,21 @@ export default class FriendPanel extends Panel { ...@@ -54,23 +53,21 @@ export default class FriendPanel extends Panel {
} }
private updateMyInfo() { private updateMyInfo() {
this['avatar'].visible = false;
this['avatar0'].visible = false; this['avatar0'].visible = false;
this['nameTxt'].text = ''; this['nameTxt'].text = '';
this['nameTxt0'].text = '';
NetManager.ins.hc_userInfo(() => { NetManager.ins.hc_userInfo(() => {
this['avatar'].visible = true;
this['avatar0'].visible = true; this['avatar0'].visible = true;
const { data } = DataManager.ins.getData('hc_userInfo'); const { data } = DataManager.ins.getData('hc_userInfo');
if (data) if (data)
this['avatar'].source = this['avatar0'].source = data.avatar || "http://yun.duiba.com.cn/db_games/default_avatar.png"; this['avatar0'].source = data.avatar || "http://yun.duiba.com.cn/db_games/default_avatar.png";
else else
this['avatar'].source = this['avatar0'].source = "http://yun.duiba.com.cn/db_games/default_avatar.png"; this['avatar0'].source = "http://yun.duiba.com.cn/db_games/default_avatar.png";
if (data && data.nickname) if (data && data.nickname)
this['nameTxt'].text = getNick(data.nickname, 10); this['nameTxt'].text = getNick(data.nickname, 10);
if (data && data.nickname)
this['nameTxt0'].text = getNick(data.nickname, 10);
}); });
} }
......
{ {
"success": 1, "success": 0,
"code": "600074", "code": "600074",
"desc": "用户未达到回归奖励领取条件", "desc": "用户未达到回归奖励领取条件",
"timestamp": 1578472496421, "timestamp": 1578472496421,
......
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