Commit 46eba889 authored by 范雪寒's avatar 范雪寒

feat:

parent 044eacf2
......@@ -2405,7 +2405,7 @@
"__id__": 74
}
],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 78
......@@ -2628,7 +2628,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 718,
"height": 517
"height": 485
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2965,8 +2965,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 85,
"height": 107
"width": 86,
"height": 108
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2977,8 +2977,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
139.277,
-8.477,
144.575,
0,
0,
0,
......
......@@ -84,16 +84,19 @@ export default class SceneComponent extends MyCocosSceneComponent {
token: cc.sys.localStorage.getItem('token')
});
console.log('goldDataStr = ', goldDataStr);
const goldData = JSON.parse(goldDataStr);
const goldNumber = cc.find('Canvas/userInfo/frame/goldBg/goldNumber');
goldNumber.getComponent(cc.Label).string = goldData.data;
const nickname = cc.find('Canvas/userInfo/frame/nickname');
nickname.getComponent(cc.Label).string = userInfo.nick_name;
if (userInfo.avatar_url) {
const headImg = cc.find('Canvas/userInfo/frame/mask/headImg');
cc.assetManager.loadRemote(userInfo.avatar_url, (err, tex) => {
headImg.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(tex);
});
}
if (userInfo.avatar_url) { }
const headUrl = middleLayerComponent.getHeadUrl();
const headImg = cc.find('Canvas/userInfo/frame/mask/headImg');
cc.assetManager.loadRemote(headUrl, (err, tex) => {
headImg.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(tex);
});
}
initListener() {
......
......@@ -7,8 +7,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 86,
"height": 108,
"width": 648,
"height": 209,
"platformSettings": {},
"subMetas": {
"headImg": {
......@@ -22,10 +22,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 648,
"height": 209,
"rawWidth": 648,
"rawHeight": 209,
"width": 86,
"height": 108,
"rawWidth": 86,
"rawHeight": 108,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
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