Commit 6bc59c13 authored by 邱旭's avatar 邱旭

1

parent 16b83464
......@@ -168,7 +168,7 @@ class InviteItem extends eui.ItemRenderer {
}
dataChanged() {
this.img.source = this.data.avatar;
this.img.source = this.data.avatar || "http://yun.duiba.com.cn/db_games/default_avatar.png";
this.img.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if(this.data.callFun) {
this.data.callFun();
......
......@@ -13,9 +13,13 @@
{
"nickname": "nickname",
"avatar": "http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg"
},
{
"nickname": "nickname",
"avatar": null
}
],
"completeFlag": 5,
"completeFlag": 0,
"openPrizeMsg": "图片",
"prizeType": "nickname",
"prizeName": "nickname",
......
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