Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
qinhaitao
taobao-mini-template
Commits
c078e2b0
Commit
c078e2b0
authored
Sep 01, 2020
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
🎸
任务注释
parent
4203224b
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
34 deletions
+39
-34
task.controller.js
v2.0/dist/controller/task.controller.js
+20
-14
task.controller.js.map
v2.0/dist/controller/task.controller.js.map
+1
-1
task.controller.ts
v2.0/src/controller/task.controller.ts
+18
-18
tsconfig.json
v2.0/tsconfig.json
+0
-1
No files found.
v2.0/dist/controller/task.controller.js
View file @
c078e2b0
...
@@ -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
])];
])];
}
}
});
});
...
...
v2.0/dist/controller/task.controller.js.map
View file @
c078e2b0
This diff is collapsed.
Click to expand it.
v2.0/src/controller/task.controller.ts
View file @
c078e2b0
...
@@ -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
])
])
}
}
...
...
v2.0/tsconfig.json
View file @
c078e2b0
...
@@ -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
,
...
...
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