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