Commit 68634529 authored by Edwise's avatar Edwise 🍷

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

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