Commit 46414ec2 authored by Edwise's avatar Edwise 🍷

Merge remote-tracking branch 'refs/remotes/origin/tianmaoxiaoyuan' into tianmaoxiaoyuan

parents 737c960b 0e305bdf
...@@ -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;
......
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