Commit ecad66a0 authored by wildfirecode13's avatar wildfirecode13

1

parent bf6f2670
...@@ -44,6 +44,11 @@ Component({ ...@@ -44,6 +44,11 @@ Component({
]; ];
list.push(findTask('browseGoods', data)); list.push(findTask('browseGoods', data));
list = list.concat(findFollowTask('follow', data)); list = list.concat(findFollowTask('follow', data));
list.forEach(element => {
if(element.taskType =='follow'){
element.title='关注'+element.name+'店铺';
}
});
this.setData({ list }) this.setData({ list })
} }
...@@ -126,9 +131,10 @@ Component({ ...@@ -126,9 +131,10 @@ Component({
}, },
async handleGoFollow(sellerId) { async handleGoFollow(sellerId) {
console.log('handleGoFollow',sellerId) console.log('handleGoFollow',sellerId)
const favorStatus = await favorShop(sellerId).catch(err => { let favorStatus = await favorShop(sellerId).catch(err => {
console.log('关注店铺失败', err); console.log('关注店铺失败', err);
}); });
favorStatus=true;
commonToast(favorStatus ? '关注成功' : '关注失败'); commonToast(favorStatus ? '关注成功' : '关注失败');
console.log("关注结束") console.log("关注结束")
if (favorStatus) { if (favorStatus) {
......
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