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
46414ec2
Commit
46414ec2
authored
Sep 28, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/origin/tianmaoxiaoyuan' into tianmaoxiaoyuan
parents
737c960b
0e305bdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
comtask.js
taobao_mini/client/components/comtask/comtask.js
+6
-5
No files found.
taobao_mini/client/components/comtask/comtask.js
View file @
46414ec2
...
@@ -74,9 +74,9 @@ Component({
...
@@ -74,9 +74,9 @@ Component({
switch
(
taskType
)
{
switch
(
taskType
)
{
case
'browseGoods'
:
case
'browseGoods'
:
navigateToOutside
(
url
);
await
this
.
handleGoBrowseGoods
();
await
this
.
handleGoBrowseGoods
();
await
this
.
getTaskList
();
await
this
.
getTaskList
();
navigateToOutside
(
url
);
break
;
break
;
case
'follow'
:
case
'follow'
:
await
this
.
handleGoFollow
(
sellerId
);
await
this
.
handleGoFollow
(
sellerId
);
...
@@ -97,14 +97,15 @@ Component({
...
@@ -97,14 +97,15 @@ Component({
})
||
{};
})
||
{};
},
},
async
handleGoFollow
(
sellerId
)
{
async
handleGoFollow
(
sellerId
)
{
await
API
.
doFollowTask
({
sellerId
}).
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
);
})
||
{};
const
favorStatus
=
await
favorShop
(
sellerId
).
catch
(
err
=>
{
const
favorStatus
=
await
favorShop
(
sellerId
).
catch
(
err
=>
{
console
.
log
(
'关注店铺失败'
,
err
);
console
.
log
(
'关注店铺失败'
,
err
);
});
});
commonToast
(
favorStatus
?
'关注成功'
:
'关注失败'
);
commonToast
(
favorStatus
?
'关注成功'
:
'关注失败'
);
if
(
favorStatus
)
{
await
API
.
doFollowTask
({
sellerId
}).
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
);
})
||
{};
}
},
},
onModalClose
()
{
onModalClose
()
{
const
{
onModalClose
}
=
this
.
props
;
const
{
onModalClose
}
=
this
.
props
;
...
...
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