Commit ea3f2ffc authored by wildfirecode13's avatar wildfirecode13

1

parent 4b4ee7dd
...@@ -4,7 +4,7 @@ import resList from '../../resconfig/resList'; ...@@ -4,7 +4,7 @@ import resList from '../../resconfig/resList';
import API from '../../api'; import API from '../../api';
const app = getApp(); const app = getApp();
const { tbcc } = app; const { tbcc } = app;
const { commonToast } = tbcc.tb; const { commonToast,favorShop } = tbcc.tb;
let flag = 0; let flag = 0;
const findTask = (key, list) => { const findTask = (key, list) => {
...@@ -99,6 +99,11 @@ Component({ ...@@ -99,6 +99,11 @@ Component({
await API.doFollowTask({sellerId}).catch(res => { await API.doFollowTask({sellerId}).catch(res => {
commonToast(res && res.message); commonToast(res && res.message);
}) || {}; }) || {};
const favorStatus = await favorShop(sellerId).catch(err => {
console.log('关注店铺失败', err);
});
commonToast(favorStatus ? '关注成功' : '关注失败');
}, },
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