Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
new_taobao
Commits
784c4fa2
Commit
784c4fa2
authored
Sep 21, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
dd4dac20
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
106 additions
and
31 deletions
+106
-31
bubbleSurviva.getActivityBaseInfoById.json
...me/mock/miniTb/bubbleSurviva.getActivityBaseInfoById.json
+0
-0
output.js
project/src/canvas/game/output.js
+32
-2
output.js.map
project/src/canvas/game/output.js.map
+1
-1
output.js
project/src/canvas/game/released/output.js
+32
-2
Main.ts
project/src/canvas/game/src/Main.ts
+8
-11
TaoBaoNet.ts
project/src/canvas/game/src/TaoBaoNet.ts
+1
-13
output.js
taobao_mini/client/pages/pagecanvas/output.js
+32
-2
No files found.
project/src/canvas/game/mock/miniTb/b
abycare
.getActivityBaseInfoById.json
→
project/src/canvas/game/mock/miniTb/b
ubbleSurviva
.getActivityBaseInfoById.json
View file @
784c4fa2
File moved
project/src/canvas/game/output.js
View file @
784c4fa2
...
...
@@ -2154,6 +2154,12 @@ var Main = (function () {
_a.sent();
console.log("initLottieList完成");
FYGE.GDispatcher.dispatchEvent("loadEnd");
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getAppData, {}, function (s, res) {
console.log('getAppData success,res', s, res);
});
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getActivityBaseInfoById, {}, function (s, res) {
console.log('getActivityBaseInfoById success,res', s, res);
});
return [2];
}
});
...
...
@@ -2249,8 +2255,7 @@ var Main_1 = __webpack_require__(/*! ./Main */ "./src/Main.ts");
var TbNetName;
(function (TbNetName) {
TbNetName["trackingReport"] = "squirrelsAdoptRest2c.trackingReport";
TbNetName["getIndex"] = "babycare.getIndex";
TbNetName["getActivityBaseInfoById"] = "babycare.getActivityBaseInfoById";
TbNetName["getActivityBaseInfoById"] = "bubbleSurviva.getActivityBaseInfoById";
TbNetName["getGameInfo"] = "babycare.getGameInfo";
TbNetName["consumerTools"] = "babycare.consumerTools";
TbNetName["gameOver"] = "babycare.gameOver";
...
...
@@ -44465,12 +44470,37 @@ var MainScene = (function (_super) {
that.mainUi = new mainSceneBtnUi_1.MainSceneBtnUi({ uiType: Enum_1.SCENETYPE.BEADROOM });
that.addChild(that.mainUi);
that.initCat();
that.initEnergy();
};
MainScene.prototype.initCat = function () {
var that = this;
that.cat = new Cat_1.Cat({ type: "xianluo" });
that.addChild(that.cat);
};
MainScene.prototype.initEnergy = function () {
var that = this;
that.energyGroup = Ins_1.Ins.initSprite("fa59e617-f1d9-4065-85e1-6f6ebefb230f", 60, 1119);
that.addChild(that.energyGroup);
that.energyImg = Ins_1.Ins.initSprite("e00aee6d-2a90-4e92-b365-f031320d582c", 9, 9);
that.energyImgW = that.energyImg.width;
that.energyGroup.addChild(that.energyImg);
that.energyDeco = Ins_1.Ins.initSprite("0eb9c19f-248e-4bf1-bffb-ea694a94b16f", 541, -9);
that.energyGroup.addChild(that.energyDeco);
var mask = new FYGE.Shape();
mask.beginFill(6, 1);
mask.drawRoundedRect(0, 0, that.energyImg.width, that.energyImg.height, 38, 38, 38, 38);
mask.endFill();
mask.x = 9;
mask.y = 9;
that.energyGroup.addChild(mask);
that.energyImg.mask = mask;
that.setEnergy();
};
MainScene.prototype.setEnergy = function () {
var that = this;
that.energyImg.scaleX = 0.5;
that.energyDeco.x = that.energyImgW * that.energyImg.scaleX - that.energyDeco.width * 0.5;
};
MainScene.prototype.changeMainScene = function (type) {
console.log("切换到" + type);
var that = this;
project/src/canvas/game/output.js.map
View file @
784c4fa2
This diff is collapsed.
Click to expand it.
project/src/canvas/game/released/output.js
View file @
784c4fa2
...
...
@@ -2156,6 +2156,12 @@ var Main = (function () {
_a.sent();
console.log("initLottieList完成");
FYGE.GDispatcher.dispatchEvent("loadEnd");
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getAppData, {}, function (s, res) {
console.log('getAppData success,res', s, res);
});
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getActivityBaseInfoById, {}, function (s, res) {
console.log('getActivityBaseInfoById success,res', s, res);
});
return [2];
}
});
...
...
@@ -2251,8 +2257,7 @@ var Main_1 = __webpack_require__(/*! ./Main */ "./src/Main.ts");
var TbNetName;
(function (TbNetName) {
TbNetName["trackingReport"] = "squirrelsAdoptRest2c.trackingReport";
TbNetName["getIndex"] = "babycare.getIndex";
TbNetName["getActivityBaseInfoById"] = "babycare.getActivityBaseInfoById";
TbNetName["getActivityBaseInfoById"] = "bubbleSurviva.getActivityBaseInfoById";
TbNetName["getGameInfo"] = "babycare.getGameInfo";
TbNetName["consumerTools"] = "babycare.consumerTools";
TbNetName["gameOver"] = "babycare.gameOver";
...
...
@@ -44467,12 +44472,37 @@ var MainScene = (function (_super) {
that.mainUi = new mainSceneBtnUi_1.MainSceneBtnUi({ uiType: Enum_1.SCENETYPE.BEADROOM });
that.addChild(that.mainUi);
that.initCat();
that.initEnergy();
};
MainScene.prototype.initCat = function () {
var that = this;
that.cat = new Cat_1.Cat({ type: "xianluo" });
that.addChild(that.cat);
};
MainScene.prototype.initEnergy = function () {
var that = this;
that.energyGroup = Ins_1.Ins.initSprite("fa59e617-f1d9-4065-85e1-6f6ebefb230f", 60, 1119);
that.addChild(that.energyGroup);
that.energyImg = Ins_1.Ins.initSprite("e00aee6d-2a90-4e92-b365-f031320d582c", 9, 9);
that.energyImgW = that.energyImg.width;
that.energyGroup.addChild(that.energyImg);
that.energyDeco = Ins_1.Ins.initSprite("0eb9c19f-248e-4bf1-bffb-ea694a94b16f", 541, -9);
that.energyGroup.addChild(that.energyDeco);
var mask = new FYGE.Shape();
mask.beginFill(6, 1);
mask.drawRoundedRect(0, 0, that.energyImg.width, that.energyImg.height, 38, 38, 38, 38);
mask.endFill();
mask.x = 9;
mask.y = 9;
that.energyGroup.addChild(mask);
that.energyImg.mask = mask;
that.setEnergy();
};
MainScene.prototype.setEnergy = function () {
var that = this;
that.energyImg.scaleX = 0.5;
that.energyDeco.x = that.energyImgW * that.energyImg.scaleX - that.energyDeco.width * 0.5;
};
MainScene.prototype.changeMainScene = function (type) {
console.log("切换到" + type);
var that = this;
project/src/canvas/game/src/Main.ts
View file @
784c4fa2
...
...
@@ -2,9 +2,9 @@ import { RES } from "../module/RES";
import
{
layers
,
destroyLayers
}
from
"../module/views/layers"
;
import
{
ResJson
}
from
"./ResJson"
;
import
{
G_EVENT
}
from
"./common/G_EVENT"
;
import
{
destroyAllCtrls
,
changeScene
}
from
"../module/ctrls"
;
import
{
destroyAllCtrls
,
changeScene
,
hideWaiting
}
from
"../module/ctrls"
;
import
{
StartScene
}
from
"./scenes/StartScene"
;
import
{
destroyNetData
}
from
"./TaoBaoNet"
;
import
{
destroyNetData
,
sendTbNet
,
TbNetName
}
from
"./TaoBaoNet"
;
import
resCanvasList
from
'../resCanvasList'
;
...
...
@@ -108,15 +108,12 @@ export class Main {
// })
//获取数据,,必成功
// showWaiting();
// sendTbNet(TbNetName.getAppData, {}, (s, res) => {
// hideWaiting();
// Tool.globalData = res.data;
// changeScene(PlayScene);
// //先去获取下任务列表的商品信息吧
// sendTbNet(TbNetName.getTaskList, { activityId: Tool.globalData.activityId }, (s, res) => {
// if (s) Tool.browseItems = res.data.browseItemIds.content;
// })
// })
sendTbNet
(
TbNetName
.
getAppData
,
{},
(
s
,
res
)
=>
{
console
.
log
(
'getAppData success,res'
,
s
,
res
)
})
sendTbNet
(
TbNetName
.
getActivityBaseInfoById
,
{},
(
s
,
res
)
=>
{
console
.
log
(
'getActivityBaseInfoById success,res'
,
s
,
res
)
})
}
//在小程序显示时调用onShow
...
...
project/src/canvas/game/src/TaoBaoNet.ts
View file @
784c4fa2
...
...
@@ -11,19 +11,7 @@ export enum TbNetName {
trackingReport
=
"squirrelsAdoptRest2c.trackingReport"
,
/**
* 进入活动调用, 刷新数据不调用该接口
* activityId userNick avatar follow inviteId
*/
getIndex
=
"babycare.getIndex"
,
/**
* 活动基本信息
* @param activityId
* @type {string}
*/
getActivityBaseInfoById
=
"babycare.getActivityBaseInfoById"
,
getActivityBaseInfoById
=
"bubbleSurviva.getActivityBaseInfoById"
,
/**
* 获取游戏信息
...
...
taobao_mini/client/pages/pagecanvas/output.js
View file @
784c4fa2
...
...
@@ -2156,6 +2156,12 @@ var Main = (function () {
_a.sent();
console.log("initLottieList完成");
FYGE.GDispatcher.dispatchEvent("loadEnd");
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getAppData, {}, function (s, res) {
console.log('getAppData success,res', s, res);
});
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getActivityBaseInfoById, {}, function (s, res) {
console.log('getActivityBaseInfoById success,res', s, res);
});
return [2];
}
});
...
...
@@ -2251,8 +2257,7 @@ var Main_1 = __webpack_require__(/*! ./Main */ "./src/Main.ts");
var TbNetName;
(function (TbNetName) {
TbNetName["trackingReport"] = "squirrelsAdoptRest2c.trackingReport";
TbNetName["getIndex"] = "babycare.getIndex";
TbNetName["getActivityBaseInfoById"] = "babycare.getActivityBaseInfoById";
TbNetName["getActivityBaseInfoById"] = "bubbleSurviva.getActivityBaseInfoById";
TbNetName["getGameInfo"] = "babycare.getGameInfo";
TbNetName["consumerTools"] = "babycare.consumerTools";
TbNetName["gameOver"] = "babycare.gameOver";
...
...
@@ -44467,12 +44472,37 @@ var MainScene = (function (_super) {
that.mainUi = new mainSceneBtnUi_1.MainSceneBtnUi({ uiType: Enum_1.SCENETYPE.BEADROOM });
that.addChild(that.mainUi);
that.initCat();
that.initEnergy();
};
MainScene.prototype.initCat = function () {
var that = this;
that.cat = new Cat_1.Cat({ type: "xianluo" });
that.addChild(that.cat);
};
MainScene.prototype.initEnergy = function () {
var that = this;
that.energyGroup = Ins_1.Ins.initSprite("fa59e617-f1d9-4065-85e1-6f6ebefb230f", 60, 1119);
that.addChild(that.energyGroup);
that.energyImg = Ins_1.Ins.initSprite("e00aee6d-2a90-4e92-b365-f031320d582c", 9, 9);
that.energyImgW = that.energyImg.width;
that.energyGroup.addChild(that.energyImg);
that.energyDeco = Ins_1.Ins.initSprite("0eb9c19f-248e-4bf1-bffb-ea694a94b16f", 541, -9);
that.energyGroup.addChild(that.energyDeco);
var mask = new FYGE.Shape();
mask.beginFill(6, 1);
mask.drawRoundedRect(0, 0, that.energyImg.width, that.energyImg.height, 38, 38, 38, 38);
mask.endFill();
mask.x = 9;
mask.y = 9;
that.energyGroup.addChild(mask);
that.energyImg.mask = mask;
that.setEnergy();
};
MainScene.prototype.setEnergy = function () {
var that = this;
that.energyImg.scaleX = 0.5;
that.energyDeco.x = that.energyImgW * that.energyImg.scaleX - that.energyDeco.width * 0.5;
};
MainScene.prototype.changeMainScene = function (type) {
console.log("切换到" + type);
var that = this;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment