Commit d5dbb507 authored by Li Mingzhe's avatar Li Mingzhe

feat: test

parents 1db83d81 135414d1
No preview for this file type
{
"ver": "1.1.2",
"uuid": "9af087cc-e715-43c5-87b6-aeebf33504b6",
"isBundle": true,
"bundleName": "resources",
"priority": 8,
"compressionType": {
"wechatgame": "subpackage"
},
"optimizeHotUpdate": {
"wechatgame": false
},
"inlineSpriteFrames": {
"wechatgame": false
},
"isRemoteBundle": {
"wechatgame": false
},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "08101b1e-bd60-4233-8710-fd6b73c61454",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {
"wechatgame": "subpackage"
},
"optimizeHotUpdate": {
"wechatgame": false
},
"inlineSpriteFrames": {
"wechatgame": false
},
"isRemoteBundle": {
"wechatgame": false
},
"subMetas": {}
}
\ No newline at end of file
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "08101b1e-bd60-4233-8710-fd6b73c61454", "uuid": "d34f256f-67f4-4263-aed9-4fbf79d1ab59",
"isBundle": true, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
"compressionType": { "compressionType": {},
"wechatgame": "subpackage" "optimizeHotUpdate": {},
}, "inlineSpriteFrames": {},
"optimizeHotUpdate": { "isRemoteBundle": {},
"wechatgame": false
},
"inlineSpriteFrames": {
"wechatgame": false
},
"isRemoteBundle": {
"wechatgame": false
},
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
"array": [ "array": [
0, 0,
0, 0,
570.7107410939451, 475.44794667765683,
0, 0,
0, 0,
0, 0,
......
...@@ -32,8 +32,15 @@ cc.Class({ ...@@ -32,8 +32,15 @@ cc.Class({
start () { start () {
setTimeout(() => { setTimeout(() => {
cc.director.loadScene('n_xuan1') cc.assetManager.loadBundle('tmpGame/scene_2', (err, bundle) => {
console.log('aaa');
console.log('bundle: ', bundle);
bundle.loadScene('n_xuan1', (err, s) => {
cc.director.runScene(s);
})
})
// cc.director.loadScene('')
// console.log('aaa');
}, 1000); }, 1000);
}, },
......
{
"ver": "1.1.2",
"uuid": "452909d3-2113-49f3-89d4-8097ddc87a53",
"isBundle": true,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
"array": [ "array": [
0, 0,
0, 0,
581.9690713431428, 475.44794667765683,
0, 0,
0, 0,
0, 0,
...@@ -5218,7 +5218,7 @@ ...@@ -5218,7 +5218,7 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "55t/rsIF9Gzbzo6wLe69ow" "_id": "ea8B0HxGlI5KXQS96ErWqu"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
...@@ -5254,7 +5254,7 @@ ...@@ -5254,7 +5254,7 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "1aZPpp6ddHfLN4AwPnzpzO" "_id": "1fkzVTnuRAY7Ni5XExfXju"
}, },
{ {
"__type__": "cc.PrivateNode", "__type__": "cc.PrivateNode",
...@@ -5317,7 +5317,7 @@ ...@@ -5317,7 +5317,7 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "cdZZlzUARCgIlrNyJMHXC8" "_id": "e0UWb+jI5AF7bImb3aAzVh"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
...@@ -5353,7 +5353,7 @@ ...@@ -5353,7 +5353,7 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "e95iw0NbVIObHoearYLC6k" "_id": "378q0gwcVCtrrHGUvG95g/"
}, },
{ {
"__type__": "cc.RichText", "__type__": "cc.RichText",
...@@ -7559,162 +7559,6 @@ ...@@ -7559,162 +7559,6 @@
"arrowPrefab": { "arrowPrefab": {
"__uuid__": "70d9c3ce-bce8-4878-beb9-673051c0e9c1" "__uuid__": "70d9c3ce-bce8-4878-beb9-673051c0e9c1"
}, },
"letterAPrefab": {
"__uuid__": "d87a367b-cc6c-4f92-960f-5e20b37314dc"
},
"letterBPrefab": {
"__uuid__": "00003b83-19b3-4eab-9d42-7a2d9f9f9111"
},
"letterCPrefab": {
"__uuid__": "eb09a9e8-e3c5-4b77-aead-c9493d0c9639"
},
"letterDPrefab": {
"__uuid__": "3fb0e5bf-bfe6-4f87-ba57-4743d7bbaebd"
},
"letterEPrefab": {
"__uuid__": "1f78e3ea-d584-4eef-8d4b-00f2ca363e2a"
},
"letterFPrefab": {
"__uuid__": "798cf8c7-2d33-4a25-a57c-0080f7220445"
},
"letterGPrefab": {
"__uuid__": "d332e918-7c60-4315-8715-0fe401e4b865"
},
"letterHPrefab": {
"__uuid__": "3e06af97-9f08-4852-9e3e-addf551aaf49"
},
"letterIPrefab": {
"__uuid__": "caf73ef4-13c8-4f90-b45f-1327e7accaad"
},
"letterJPrefab": {
"__uuid__": "689c6a26-55db-4e5d-a04d-bde21a70d255"
},
"letterKPrefab": {
"__uuid__": "cd2b6bef-f67d-4116-affb-405a6ba95d30"
},
"letterLPrefab": {
"__uuid__": "1ce6c642-0c41-4be6-89ea-dbe104447fc5"
},
"letterMPrefab": {
"__uuid__": "bfda1502-3130-4095-a684-584195652796"
},
"letterNPrefab": {
"__uuid__": "4fc1ba48-a4ce-4b58-9815-63f295f99f67"
},
"letterOPrefab": {
"__uuid__": "cd258438-a358-48b4-90c1-231b52a7f9c6"
},
"letterPPrefab": {
"__uuid__": "2a3f8321-ebae-40f4-8400-b7be94a29fd3"
},
"letterQPrefab": {
"__uuid__": "b4c5d143-107d-475f-b4ad-5a33353cf432"
},
"letterRPrefab": {
"__uuid__": "71b63bd5-9e0a-4e8d-8658-e745aff6d4e2"
},
"letterSPrefab": {
"__uuid__": "1017a82d-5c0b-45a8-b2e6-b37e87ef2b49"
},
"letterTPrefab": {
"__uuid__": "a51cc1ca-2dde-49d3-93b6-6eb71a11ab21"
},
"letterUPrefab": {
"__uuid__": "b8bdf807-4cbf-46c2-b16f-6b14bac91480"
},
"letterVPrefab": {
"__uuid__": "0a8c0259-e6d2-405c-9f36-bb3db433ef4d"
},
"letterWPrefab": {
"__uuid__": "4a20f919-5a21-4ff3-9ec7-e4750a389d5a"
},
"letterXPrefab": {
"__uuid__": "6da28aaa-69f2-4a88-9638-90ee3146057a"
},
"letterYPrefab": {
"__uuid__": "4a126d1b-f17d-4c62-8c07-21cd38e8129d"
},
"letterZPrefab": {
"__uuid__": "f51b5e75-4dfc-4b1e-887a-807165f77c73"
},
"letteraPrefab": {
"__uuid__": "4f54f4a3-c97d-4705-8ebb-a6c46e7d58e2"
},
"letterbPrefab": {
"__uuid__": "00dcee3a-5e3f-4cc6-8baa-dc2e47f9f968"
},
"lettercPrefab": {
"__uuid__": "5a58e954-720a-4bda-b311-0a5bfd622d9d"
},
"letterdPrefab": {
"__uuid__": "c268dfb8-fe6f-47ab-b619-efdf096b272c"
},
"letterePrefab": {
"__uuid__": "b5bd0810-636a-4747-856f-cdf7a9b7a7c0"
},
"letterfPrefab": {
"__uuid__": "a49a094b-cac1-4f88-b52c-54f7ec9d2429"
},
"lettergPrefab": {
"__uuid__": "9644221a-9645-4781-8600-367aaa502669"
},
"letterhPrefab": {
"__uuid__": "b1760030-f71e-44dc-8be5-2ab612c162b1"
},
"letteriPrefab": {
"__uuid__": "e14a4cc2-41ad-4234-b285-9edb547b6157"
},
"letterjPrefab": {
"__uuid__": "4b3698d0-865d-4e5e-b0e5-99b500be5dea"
},
"letterkPrefab": {
"__uuid__": "498e10cc-a7b4-4ea9-b50e-16e6267ed2bd"
},
"letterlPrefab": {
"__uuid__": "36e13f28-cbab-4ead-89a7-9e64ac735774"
},
"lettermPrefab": {
"__uuid__": "2ece9b7c-2317-4845-9675-6d1f9a1ef294"
},
"letternPrefab": {
"__uuid__": "99352183-e19d-4809-a404-8f439470066b"
},
"letteroPrefab": {
"__uuid__": "3973b066-cf7c-499c-8641-4605a1c906dc"
},
"letterpPrefab": {
"__uuid__": "04466167-b73e-4158-a696-864db141f6bf"
},
"letterqPrefab": {
"__uuid__": "3b58d995-4002-4991-a56c-41c0c9e08714"
},
"letterrPrefab": {
"__uuid__": "bceea9d7-fc66-4419-be73-62c8b90f2bd8"
},
"lettersPrefab": {
"__uuid__": "b76346b6-f313-413c-b6a4-efcb9a7c53f1"
},
"lettertPrefab": {
"__uuid__": "e2330bac-dc7b-4dff-a466-cb2a8457f37b"
},
"letteruPrefab": {
"__uuid__": "58fa2489-877e-40a1-ad3c-84227de292f9"
},
"lettervPrefab": {
"__uuid__": "88444482-f301-4e03-8c22-0a9bc463a3b6"
},
"letterwPrefab": {
"__uuid__": "2d6a2969-94ba-4aad-b7c7-1d2ec4eee58e"
},
"letterxPrefab": {
"__uuid__": "bf8d99eb-bb30-460b-9656-3cfdb1bd72d1"
},
"letteryPrefab": {
"__uuid__": "7b34a635-e55a-47b4-8cf4-2511ffe67ca8"
},
"letterzPrefab": {
"__uuid__": "df87b075-dea6-47c7-90ce-eae9a4c9e455"
},
"_id": "827xcVzGJF3r10b0S9jAdv" "_id": "827xcVzGJF3r10b0S9jAdv"
} }
] ]
\ No newline at end of file
...@@ -62,216 +62,6 @@ cc.Class({ ...@@ -62,216 +62,6 @@ cc.Class({
type: cc.Prefab, type: cc.Prefab,
default: null, default: null,
}, },
letterAPrefab: {
type: cc.Prefab,
default: null,
},
letterBPrefab: {
type: cc.Prefab,
default: null,
},
letterCPrefab: {
type: cc.Prefab,
default: null,
},
letterDPrefab: {
type: cc.Prefab,
default: null,
},
letterEPrefab: {
type: cc.Prefab,
default: null,
},
letterFPrefab: {
type: cc.Prefab,
default: null,
},
letterGPrefab: {
type: cc.Prefab,
default: null,
},
letterHPrefab: {
type: cc.Prefab,
default: null,
},
letterIPrefab: {
type: cc.Prefab,
default: null,
},
letterJPrefab: {
type: cc.Prefab,
default: null,
},
letterKPrefab: {
type: cc.Prefab,
default: null,
},
letterLPrefab: {
type: cc.Prefab,
default: null,
},
letterMPrefab: {
type: cc.Prefab,
default: null,
},
letterNPrefab: {
type: cc.Prefab,
default: null,
},
letterOPrefab: {
type: cc.Prefab,
default: null,
},
letterPPrefab: {
type: cc.Prefab,
default: null,
},
letterQPrefab: {
type: cc.Prefab,
default: null,
},
letterRPrefab: {
type: cc.Prefab,
default: null,
},
letterSPrefab: {
type: cc.Prefab,
default: null,
},
letterTPrefab: {
type: cc.Prefab,
default: null,
},
letterUPrefab: {
type: cc.Prefab,
default: null,
},
letterVPrefab: {
type: cc.Prefab,
default: null,
},
letterWPrefab: {
type: cc.Prefab,
default: null,
},
letterXPrefab: {
type: cc.Prefab,
default: null,
},
letterYPrefab: {
type: cc.Prefab,
default: null,
},
letterZPrefab: {
type: cc.Prefab,
default: null,
},
letteraPrefab: {
type: cc.Prefab,
default: null,
},
letterbPrefab: {
type: cc.Prefab,
default: null,
},
lettercPrefab: {
type: cc.Prefab,
default: null,
},
letterdPrefab: {
type: cc.Prefab,
default: null,
},
letterePrefab: {
type: cc.Prefab,
default: null,
},
letterfPrefab: {
type: cc.Prefab,
default: null,
},
lettergPrefab: {
type: cc.Prefab,
default: null,
},
letterhPrefab: {
type: cc.Prefab,
default: null,
},
letteriPrefab: {
type: cc.Prefab,
default: null,
},
letterjPrefab: {
type: cc.Prefab,
default: null,
},
letterkPrefab: {
type: cc.Prefab,
default: null,
},
letterlPrefab: {
type: cc.Prefab,
default: null,
},
lettermPrefab: {
type: cc.Prefab,
default: null,
},
letternPrefab: {
type: cc.Prefab,
default: null,
},
letteroPrefab: {
type: cc.Prefab,
default: null,
},
letterpPrefab: {
type: cc.Prefab,
default: null,
},
letterqPrefab: {
type: cc.Prefab,
default: null,
},
letterrPrefab: {
type: cc.Prefab,
default: null,
},
lettersPrefab: {
type: cc.Prefab,
default: null,
},
lettertPrefab: {
type: cc.Prefab,
default: null,
},
letteruPrefab: {
type: cc.Prefab,
default: null,
},
lettervPrefab: {
type: cc.Prefab,
default: null,
},
letterwPrefab: {
type: cc.Prefab,
default: null,
},
letterxPrefab: {
type: cc.Prefab,
default: null,
},
letteryPrefab: {
type: cc.Prefab,
default: null,
},
letterzPrefab: {
type: cc.Prefab,
default: null,
},
}, },
// LIFE-CYCLE CALLBACKS: // LIFE-CYCLE CALLBACKS:
...@@ -313,10 +103,10 @@ cc.Class({ ...@@ -313,10 +103,10 @@ cc.Class({
_imageResList: null, _imageResList: null,
_audioResList: null, _audioResList: null,
preloadItem() { async preloadItem() {
this.addPreloadImage(); this.addPreloadImage();
this.addPreloadAudio(); this.addPreloadAudio();
this.preload(); await this.preload();
this.onLoadFinish(); this.onLoadFinish();
}, },
...@@ -324,7 +114,7 @@ cc.Class({ ...@@ -324,7 +114,7 @@ cc.Class({
addPreloadAudio() { }, addPreloadAudio() { },
preload() { async preload() {
const preloadArr = this._imageResList.concat(this._audioResList); const preloadArr = this._imageResList.concat(this._audioResList);
cc.assetManager.loadAny(preloadArr, null, null, (err, data) => { cc.assetManager.loadAny(preloadArr, null, null, (err, data) => {
this.hideAirClassLoading(); this.hideAirClassLoading();
...@@ -332,6 +122,30 @@ cc.Class({ ...@@ -332,6 +122,30 @@ cc.Class({
if (preloadArr.length == 0) { if (preloadArr.length == 0) {
this.hideAirClassLoading(); this.hideAirClassLoading();
} }
// bgNode
// monkeyUpperNode
// letterPageUINode
// cloudPrefab
// starAnimePrefab
// starPreFab
// sharkPreFab
// arrowPrefab
const letterList = 'abcdefghijklmnopqrstuvwxyz'.split('');
for (let i = 0; i < letterList.length; i++) {
const letter = letterList[i];
this[`letter${letter.toUpperCase()}Prefab`] = await this.loadAssetSync({ path: `prefabs/letter_big/prefab_big_${letter.toLowerCase()}` }, cc.Prefab);
this[`letter${letter.toLowerCase()}Prefab`] = await this.loadAssetSync({ path: `prefabs/letter_small/prefab_small_${letter.toLowerCase()}` }, cc.Prefab);
}
},
async loadAssetSync(src, type) {
return new Promise((resolve, reject) => {
cc.resources.load(src, type, (err, prefab) => {
resolve(prefab);
});
});
}, },
hideAirClassLoading() { hideAirClassLoading() {
...@@ -433,9 +247,10 @@ cc.Class({ ...@@ -433,9 +247,10 @@ cc.Class({
currentStrokeStageIdx: 0 currentStrokeStageIdx: 0
} }
this.updateLetter(); this.updateLetter();
}, },
updateLetter() { updateLetter() {
this.letter = this.data.letterList[this._status.currentLetterIdx]; this.letter = this.data.letterList[this._status.currentLetterIdx];
...@@ -717,10 +532,8 @@ cc.Class({ ...@@ -717,10 +532,8 @@ cc.Class({
continue; continue;
} }
console.log('this.arrowPrefab: ', this.arrowPrefab);
const arrowPrefab = cc.instantiate(this.arrowPrefab); const arrowPrefab = cc.instantiate(this.arrowPrefab);
arrowPrefab.x = lastNode.x + lineVec2.x * (k + 1) / (arrowNumber + 1); arrowPrefab.x = lastNode.x + lineVec2.x * (k + 1) / (arrowNumber + 1);
arrowPrefab.y = lastNode.y + lineVec2.y * (k + 1) / (arrowNumber + 1); arrowPrefab.y = lastNode.y + lineVec2.y * (k + 1) / (arrowNumber + 1);
arrowPrefab.angle = cc.v2(1, 0).signAngle(lineVec2) * 180 / Math.PI; arrowPrefab.angle = cc.v2(1, 0).signAngle(lineVec2) * 180 / Math.PI;
...@@ -898,7 +711,7 @@ cc.Class({ ...@@ -898,7 +711,7 @@ cc.Class({
this.letter = this.letter.toLowerCase(); this.letter = this.letter.toLowerCase();
this.createLetterPage(this.letter); this.createLetterPage(this.letter);
} else { } else {
if(this._status.currentLetterIdx == this.data.letterList.length - 1) { if (this._status.currentLetterIdx == this.data.letterList.length - 1) {
this.showScrollView(); this.showScrollView();
} }
} }
...@@ -1180,7 +993,7 @@ cc.Class({ ...@@ -1180,7 +993,7 @@ cc.Class({
const lineRow = this.getLine(w, 5); const lineRow = this.getLine(w, 5);
lineRow.node.parent = content; lineRow.node.parent = content;
lineRow.node.y = titleLabel.node.y - 30; lineRow.node.y = titleLabel.node.y - 30;
lineRow.node.x = -w/ 2; lineRow.node.x = -w / 2;
const rankLabel = this.getLabel(); const rankLabel = this.getLabel();
rankLabel.string = '排名'; rankLabel.string = '排名';
...@@ -1207,7 +1020,7 @@ cc.Class({ ...@@ -1207,7 +1020,7 @@ cc.Class({
scoreLabel.node.parent = content; scoreLabel.node.parent = content;
scoreLabel.fontSize = 30; scoreLabel.fontSize = 30;
this.scoreLabel = scoreLabel; this.scoreLabel = scoreLabel;
const finishLabel = this.getLabel(); const finishLabel = this.getLabel();
finishLabel.string = '完成时间'; finishLabel.string = '完成时间';
finishLabel.node.x = w / 2; finishLabel.node.x = w / 2;
...@@ -1233,7 +1046,7 @@ cc.Class({ ...@@ -1233,7 +1046,7 @@ cc.Class({
}, },
addScrollViewItem(data, rank) { addScrollViewItem(data, rank) {
const contentH = 450; const contentH = 450;
const topH = this.rankTopH + this.rankLineH;; const topH = this.rankTopH + this.rankLineH;;
const content = cc.find('Canvas/scrollview/view/content') const content = cc.find('Canvas/scrollview/view/content')
...@@ -1245,7 +1058,7 @@ cc.Class({ ...@@ -1245,7 +1058,7 @@ cc.Class({
rankLabel.node.parent = content; rankLabel.node.parent = content;
rankLabel.node.x = this.rankLabel.node.x + 30; rankLabel.node.x = this.rankLabel.node.x + 30;
rankLabel.node.y = -(this.svItemArr.length + 1) * this.rankLineH - topH; rankLabel.node.y = -(this.svItemArr.length + 1) * this.rankLineH - topH;
const h = Math.max( -rankLabel.node.y, contentH) + 10; const h = Math.max(-rankLabel.node.y, contentH) + 10;
content.height = h content.height = h
const nameLabel = this.getLabel(); const nameLabel = this.getLabel();
...@@ -1253,7 +1066,7 @@ cc.Class({ ...@@ -1253,7 +1066,7 @@ cc.Class({
nameLabel.node.parent = content; nameLabel.node.parent = content;
nameLabel.node.x = this.nameLabel.node.x; nameLabel.node.x = this.nameLabel.node.x;
nameLabel.node.y = rankLabel.node.y; nameLabel.node.y = rankLabel.node.y;
const scoreLabel = this.getLabel(); const scoreLabel = this.getLabel();
scoreLabel.string = formatSeconds(data.score / 1000)// '分数-' + (this.svItemArr.length); scoreLabel.string = formatSeconds(data.score / 1000)// '分数-' + (this.svItemArr.length);
scoreLabel.node.parent = content; scoreLabel.node.parent = content;
...@@ -1272,11 +1085,11 @@ cc.Class({ ...@@ -1272,11 +1085,11 @@ cc.Class({
const lineRow = this.getLine(content.width * 0.9, 2); const lineRow = this.getLine(content.width * 0.9, 2);
lineRow.node.parent = content; lineRow.node.parent = content;
lineRow.node.y = nameLabel.node.y + 40; lineRow.node.y = nameLabel.node.y + 40;
lineRow.node.x = -content.width * 0.9 / 2 ; lineRow.node.x = -content.width * 0.9 / 2;
}, },
showScrollView() { showScrollView() {
const curTime = new Date().getTime(); const curTime = new Date().getTime();
const scoreTime = curTime - this.startTime; const scoreTime = curTime - this.startTime;
const id = this.getUserId(); const id = this.getUserId();
...@@ -1314,7 +1127,7 @@ cc.Class({ ...@@ -1314,7 +1127,7 @@ cc.Class({
this.sendData(this.courseid, rankData); this.sendData(this.courseid, rankData);
this.setScrollView(); this.setScrollView();
cc.find('Canvas/scrollview').active = true; cc.find('Canvas/scrollview').active = true;
}, },
...@@ -1360,7 +1173,7 @@ cc.Class({ ...@@ -1360,7 +1173,7 @@ cc.Class({
return line; return line;
}, },
getUserId() { getUserId() {
return Math.floor(Math.random() * 100) + 1; return Math.floor(Math.random() * 100) + 1;
}, },
getUserInfo() { getUserInfo() {
if (!window.wx) { if (!window.wx) {
...@@ -1368,11 +1181,11 @@ cc.Class({ ...@@ -1368,11 +1181,11 @@ cc.Class({
} }
let sysInfo = window.wx.getSystemInfoSync(); let sysInfo = window.wx.getSystemInfoSync();
console.log('sysInfo:' , sysInfo) console.log('sysInfo:', sysInfo)
window.wx.getUserInfo({ window.wx.getUserInfo({
success(res){ success(res) {
console.log(res); console.log(res);
// exportJson.userInfo = res.userInfo; // exportJson.userInfo = res.userInfo;
//此时可进行登录操作 //此时可进行登录操作
......
[
{
"__type__": "cc.SceneAsset",
"_name": "",
"_objFlags": 0,
"_native": "",
"scene": {
"__id__": 1
}
},
{
"__type__": "cc.Scene",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 7
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_is3DNode": true,
"_groupIndex": 0,
"groupIndex": 0,
"autoReleaseAssets": true,
"_id": "bbec5d49-536a-4dcd-a536-d9f5f954d854"
},
{
"__type__": "cc.Node",
"_name": "Canvas",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
}
],
"_active": true,
"_components": [
{
"__id__": 5
},
{
"__id__": 6
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
640,
360,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "a5esZu+45LA5mBpvttspPD"
},
{
"__type__": "cc.Node",
"_name": "Main Camera",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 960,
"height": 640
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
475.44794667765683,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e1WoFrQ79G7r4ZuQE3HlNb"
},
{
"__type__": "cc.Camera",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_cullingMask": 4294967295,
"_clearFlags": 7,
"_backgroundColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_depth": -1,
"_zoomRatio": 1,
"_targetTexture": null,
"_fov": 60,
"_orthoSize": 10,
"_nearClip": 1,
"_farClip": 4096,
"_ortho": true,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_renderStages": 1,
"_alignWithScreen": true,
"_id": "81GN3uXINKVLeW4+iKSlim"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_fitWidth": true,
"_fitHeight": false,
"_id": "59Cd0ovbdF4byw5sbjJDx7"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "29zXboiXFBKoIV4PQ2liTe"
},
{
"__type__": "cc.Node",
"_name": "button",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 13
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
544,
378,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "de5TcmoVpI17rVWMCniwwo"
},
{
"__type__": "cc.Node",
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 9
}
],
"_active": true,
"_components": [
{
"__id__": 11
},
{
"__id__": 12
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "00xnpiKZJORbi8pzzoc559"
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "29lg5wggVPvJ8f0VxJH+7B"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_useOriginalSize": false,
"_string": "button",
"_N$string": "button",
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1,
"_N$cacheMode": 1,
"_id": "b9e+5srutDkKH2vRMN5lf1"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "ecvfXJvYlEF4iRERiYnWQ4"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"alignMode": 0,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 40,
"_id": "ecBIe8dQpFy401wRDTSBCt"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 2,
"transition": 2,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 230,
"g": 230,
"b": 230,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 120,
"g": 120,
"b": 120,
"a": 200
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 8
},
"_id": "d58XwoxH5MLaMbWqfBRfSA"
}
]
\ No newline at end of file
{
"ver": "1.2.7",
"uuid": "bbec5d49-536a-4dcd-a536-d9f5f954d854",
"asyncLoadAssets": false,
"autoReleaseAssets": true,
"subMetas": {}
}
\ No newline at end of file
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