Commit 82944d24 authored by wildfirecode's avatar wildfirecode

1

parent 07b206b4
......@@ -17,7 +17,7 @@
<e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel width="76" x="12" y="18.69" text="4" font="nums_fnt" textAlign="center"/>
</e:Group>
<e:Group x="551" y="810" id="icon4">
<e:Group x="513" y="841" id="icon4">
<e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel width="76" x="12" y="18.69" text="5" font="nums_fnt" textAlign="center"/>
</e:Group>
......
......@@ -12,7 +12,7 @@ export default class H5Scene extends Scene {
},this);
this['gobtn'].addEventListener(egret.TouchEvent.TOUCH_TAP,()=>{
const code = Utils.getRequestByKey('shareCode');
window.location.href = `${window['targetUrl']}&shareCode=code`
window.location.href = `${window['targetUrl']}&shareCode=${code}`
},this);
}
......
......@@ -749,9 +749,9 @@ export default class MapScene extends Scene {
return 'Map'
}
}
export const getNick = (nickname) => {
export const getNick = (nickname,max=4) => {
if(!nickname) return nickname;
const max = 4;
if(nickname.length > max)
return nickname.slice(0, max) + '...';
return nickname;
......
......@@ -61,7 +61,7 @@ export default class FriendPanel extends Panel {
this['avatar'].source = this['avatar0'].source = data.avatar;
this['nameTxt'].text = getNick(data.nickname);
this['nameTxt0'].text = getNick(data.nickname);
this['nameTxt0'].text = getNick(data.nickname,10);
});
}
......
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