Commit c078e2b0 authored by qinhaitao's avatar qinhaitao

feat: 🎸 任务注释

parent 4203224b
...@@ -71,7 +71,7 @@ var Task = /** @class */ (function () { ...@@ -71,7 +71,7 @@ var Task = /** @class */ (function () {
var userInfo = _a.userInfo, vipInfo = _a.vipInfo, activityInfo = _a.activityInfo, session = _a.session; var userInfo = _a.userInfo, vipInfo = _a.vipInfo, activityInfo = _a.activityInfo, session = _a.session;
var taskService = _b[0]; var taskService = _b[0];
return __awaiter(this, void 0, void 0, function () { return __awaiter(this, void 0, void 0, function () {
var tasks, startTime, updatedUserInfo, _c, _d, _e, _f, vipTask, followTask, signTask, orderGoodsTask, browseGoodsTask, collectGoodsTask, jumpLinkTask, invitesTask; var tasks, startTime, updatedUserInfo, _c, _d, _e, _f, vipTask, followTask;
return __generator(this, function (_g) { return __generator(this, function (_g) {
switch (_g.label) { switch (_g.label) {
case 0: case 0:
...@@ -92,23 +92,29 @@ var Task = /** @class */ (function () { ...@@ -92,23 +92,29 @@ var Task = /** @class */ (function () {
]; ];
vipTask = taskService.initVipTask(updatedUserInfo, vipInfo, tasks); vipTask = taskService.initVipTask(updatedUserInfo, vipInfo, tasks);
followTask = taskService.initFollowTask(updatedUserInfo, tasks); followTask = taskService.initFollowTask(updatedUserInfo, tasks);
signTask = taskService.initSignTask(updatedUserInfo, tasks); // 签到任务
orderGoodsTask = taskService.initOrderGoodsTask(updatedUserInfo, tasks); // const signTask = taskService.initSignTask(updatedUserInfo, tasks)
browseGoodsTask = taskService.initBrowseGoodsTask(updatedUserInfo, tasks); // // 下单任务
collectGoodsTask = taskService.initCollectGoodsTask(updatedUserInfo, tasks); // const orderGoodsTask = taskService.initOrderGoodsTask(updatedUserInfo, tasks)
jumpLinkTask = taskService.initJumpLinkTask(updatedUserInfo, tasks); // // 浏览商品任务
invitesTask = taskService.initInvitesTask(updatedUserInfo, tasks); // const browseGoodsTask = taskService.initBrowseGoodsTask(updatedUserInfo, tasks)
// // 收藏商品任务
// const collectGoodsTask = taskService.initCollectGoodsTask(updatedUserInfo, tasks)
// // 跳转链接任务
// const jumpLinkTask = taskService.initJumpLinkTask(updatedUserInfo, tasks)
// // 邀请任务
// const invitesTask = taskService.initInvitesTask(updatedUserInfo, tasks)
// 积分兑换 // 积分兑换
//const exchangeCreditsTask = taskService.initExchangeCreditsTask(updatedUserInfo, tasks) //const exchangeCreditsTask = taskService.initExchangeCreditsTask(updatedUserInfo, tasks)
return [2 /*return*/, sdk_1.resultsModel.success([ return [2 /*return*/, sdk_1.resultsModel.success([
signTask, //signTask,
vipTask, vipTask,
followTask, followTask
orderGoodsTask, // orderGoodsTask,
browseGoodsTask, // browseGoodsTask,
invitesTask, // invitesTask,
collectGoodsTask, // collectGoodsTask,
jumpLinkTask // jumpLinkTask
])]; ])];
} }
}); });
......
This diff is collapsed.
...@@ -42,30 +42,30 @@ export default class Task { ...@@ -42,30 +42,30 @@ export default class Task {
// 关注店铺 // 关注店铺
const followTask = taskService.initFollowTask(updatedUserInfo, tasks) const followTask = taskService.initFollowTask(updatedUserInfo, tasks)
// 签到任务 // 签到任务
const signTask = taskService.initSignTask(updatedUserInfo, tasks) // const signTask = taskService.initSignTask(updatedUserInfo, tasks)
// 下单任务 // // 下单任务
const orderGoodsTask = taskService.initOrderGoodsTask(updatedUserInfo, tasks) // const orderGoodsTask = taskService.initOrderGoodsTask(updatedUserInfo, tasks)
// 浏览商品任务 // // 浏览商品任务
const browseGoodsTask = taskService.initBrowseGoodsTask(updatedUserInfo, tasks) // const browseGoodsTask = taskService.initBrowseGoodsTask(updatedUserInfo, tasks)
// 收藏商品任务 // // 收藏商品任务
const collectGoodsTask = taskService.initCollectGoodsTask(updatedUserInfo, tasks) // const collectGoodsTask = taskService.initCollectGoodsTask(updatedUserInfo, tasks)
// 跳转链接任务 // // 跳转链接任务
const jumpLinkTask = taskService.initJumpLinkTask(updatedUserInfo, tasks) // const jumpLinkTask = taskService.initJumpLinkTask(updatedUserInfo, tasks)
// 邀请任务 // // 邀请任务
const invitesTask = taskService.initInvitesTask(updatedUserInfo, tasks) // const invitesTask = taskService.initInvitesTask(updatedUserInfo, tasks)
// 积分兑换 // 积分兑换
//const exchangeCreditsTask = taskService.initExchangeCreditsTask(updatedUserInfo, tasks) //const exchangeCreditsTask = taskService.initExchangeCreditsTask(updatedUserInfo, tasks)
return resultsModel.success([ return resultsModel.success([
signTask, //signTask,
vipTask, vipTask,
followTask, followTask
orderGoodsTask, // orderGoodsTask,
browseGoodsTask, // browseGoodsTask,
invitesTask, // invitesTask,
collectGoodsTask, // collectGoodsTask,
jumpLinkTask // jumpLinkTask
]) ])
} }
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
"watch": true, "watch": true,
"moduleResolution": "node", "moduleResolution": "node",
"isolatedModules": false, "isolatedModules": false,
"allowJs": true,
"declaration": true, "declaration": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
......
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