Commit 28894b9f authored by haiyoucuv's avatar haiyoucuv

按钮放反了

parent acba74d7
This diff is collapsed.
...@@ -13362,6 +13362,7 @@ var Main_1 = __webpack_require__(/*! ./Main */ "./src/Main.ts"); ...@@ -13362,6 +13362,7 @@ var Main_1 = __webpack_require__(/*! ./Main */ "./src/Main.ts");
var TbNetName; var TbNetName;
(function (TbNetName) { (function (TbNetName) {
TbNetName["trackingReport"] = "squirrelsAdoptRest2c.trackingReport"; TbNetName["trackingReport"] = "squirrelsAdoptRest2c.trackingReport";
TbNetName["addStats"] = "popmartXXL2c.addStats";
TbNetName["receiveEnamePrize"] = "popmartXXL2c.receiveEnamePrize"; TbNetName["receiveEnamePrize"] = "popmartXXL2c.receiveEnamePrize";
TbNetName["drawLotteryPrize"] = "popmartXXL2c.drawLotteryPrize"; TbNetName["drawLotteryPrize"] = "popmartXXL2c.drawLotteryPrize";
TbNetName["getToolsInfo"] = "popmartXXL2c.getToolsInfo"; TbNetName["getToolsInfo"] = "popmartXXL2c.getToolsInfo";
...@@ -21313,6 +21314,7 @@ var TaskItem = (function (_super) { ...@@ -21313,6 +21314,7 @@ var TaskItem = (function (_super) {
}); });
break; break;
case TaskType.invites: case TaskType.invites:
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.addStats, { type: 'invite' });
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.showSharePanel, { openId: Tools_1.Tools.globalData.openId }); TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.showSharePanel, { openId: Tools_1.Tools.globalData.openId });
break; break;
case TaskType.orderGoods: case TaskType.orderGoods:
...@@ -21438,7 +21440,6 @@ var LoadingScene = (function (_super) { ...@@ -21438,7 +21440,6 @@ var LoadingScene = (function (_super) {
return [4, Tools_1.Tools.getAppData()]; return [4, Tools_1.Tools.getAppData()];
case 1: case 1:
_a.sent(); _a.sent();
console.log(Tools_1.Tools.globalData);
this.dispatchEvent(FYGE.Event.PROGRESS, 0.3); this.dispatchEvent(FYGE.Event.PROGRESS, 0.3);
return [4, Tools_1.Tools.getBaseInfo()]; return [4, Tools_1.Tools.getBaseInfo()];
case 2: case 2:
This diff is collapsed.
...@@ -10,6 +10,10 @@ export enum TbNetName { ...@@ -10,6 +10,10 @@ export enum TbNetName {
*/ */
trackingReport = "squirrelsAdoptRest2c.trackingReport", trackingReport = "squirrelsAdoptRest2c.trackingReport",
addStats = "popmartXXL2c.addStats",
// 领取权益奖励 // 领取权益奖励
receiveEnamePrize = "popmartXXL2c.receiveEnamePrize", receiveEnamePrize = "popmartXXL2c.receiveEnamePrize",
......
...@@ -96,7 +96,7 @@ export class TaskPanel extends Panel { ...@@ -96,7 +96,7 @@ export class TaskPanel extends Panel {
this.isShowing = true; this.isShowing = true;
this.y = layers.stageHeight + this.height; this.y = layers.stageHeight + this.height;
Tween.get(this) Tween.get(this)
.to({ y: 0 }, 500, Ease.quartOut) .to({y: 0}, 500, Ease.quartOut)
.call(() => { .call(() => {
this.isShowing = false; this.isShowing = false;
}); });
...@@ -247,7 +247,7 @@ class TaskItem extends Item { ...@@ -247,7 +247,7 @@ class TaskItem extends Item {
private clickGet() { private clickGet() {
this.getBtn.mouseEnable = false; this.getBtn.mouseEnable = false;
sendTbNet(TbNetName.receiveTaskRewards, { taskType: this.data.taskType }, sendTbNet(TbNetName.receiveTaskRewards, {taskType: this.data.taskType},
(success, res) => { (success, res) => {
this.getBtn.mouseEnable = true; this.getBtn.mouseEnable = true;
if (!success) return; if (!success) return;
...@@ -262,7 +262,7 @@ class TaskItem extends Item { ...@@ -262,7 +262,7 @@ class TaskItem extends Item {
private clickTask() { private clickTask() {
switch (this.data.taskType) { switch (this.data.taskType) {
case TaskType.member: case TaskType.member:
sendTbNet(TbNetName.navigateToOutside, { url: this.data.url }); sendTbNet(TbNetName.navigateToOutside, {url: this.data.url});
break; break;
case TaskType.browseGoods: // 浏览商品 case TaskType.browseGoods: // 浏览商品
sendTbNet(TbNetName.navigateTo, { sendTbNet(TbNetName.navigateTo, {
...@@ -273,14 +273,15 @@ class TaskItem extends Item { ...@@ -273,14 +273,15 @@ class TaskItem extends Item {
sendTbNet(TbNetName.favorShop, {}, sendTbNet(TbNetName.favorShop, {},
(fs, fr) => { (fs, fr) => {
if (!fs) return; if (!fs) return;
sendTbNet(TbNetName.doFollowTask, { taskType: this.data.taskType }, sendTbNet(TbNetName.doFollowTask, {taskType: this.data.taskType},
(cs, cr) => GDispatcher.dispatchEvent(G_EVENT.UPDATE_TASK) (cs, cr) => GDispatcher.dispatchEvent(G_EVENT.UPDATE_TASK)
); );
} }
); );
break; break;
case TaskType.invites: case TaskType.invites:
sendTbNet(TbNetName.showSharePanel, { openId: Tools.globalData.openId }); sendTbNet(TbNetName.addStats, {type: 'invite'});
sendTbNet(TbNetName.showSharePanel, {openId: Tools.globalData.openId});
break; break;
case TaskType.orderGoods: case TaskType.orderGoods:
sendTbNet(TbNetName.navigateTo, { sendTbNet(TbNetName.navigateTo, {
......
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