Commit 5c5d99fe authored by 范雪寒's avatar 范雪寒

feat:

parent cc6fb26d
...@@ -3130,7 +3130,7 @@ ...@@ -3130,7 +3130,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 132.07, "width": 96,
"height": 30.24 "height": 30.24
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -3182,8 +3182,8 @@ ...@@ -3182,8 +3182,8 @@
], ],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "player name", "_string": "拼读达人",
"_N$string": "player name", "_N$string": "拼读达人",
"_fontSize": 24, "_fontSize": 24,
"_lineHeight": 24, "_lineHeight": 24,
"_enableWrapText": true, "_enableWrapText": true,
......
...@@ -89,7 +89,9 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -89,7 +89,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
goldNumber.getComponent(cc.Label).string = goldData.data; goldNumber.getComponent(cc.Label).string = goldData.data;
const nickname = cc.find('Canvas/userInfo/frame/nickname'); const nickname = cc.find('Canvas/userInfo/frame/nickname');
nickname.getComponent(cc.Label).string = userInfo.nick_name; if (userInfo.nick_name) {
nickname.getComponent(cc.Label).string = userInfo.nick_name;
}
if (userInfo.avatar_url) { } if (userInfo.avatar_url) { }
const headUrl = middleLayerComponent.getHeadUrl(userInfo.avatar_url || userInfo.id); const headUrl = middleLayerComponent.getHeadUrl(userInfo.avatar_url || userInfo.id);
......
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