collect 8.7
This commit is contained in:
@@ -314,10 +314,21 @@ export default {
|
||||
goodsShelves({live_id}){
|
||||
return vm.$u.post('Specialci/goodsShelves',{live_id})
|
||||
},
|
||||
//
|
||||
// 收藏店铺
|
||||
addFavoriteStore({ id }) {
|
||||
return vm.$u.post('member/addFavoriteStore',{ fid: id })
|
||||
},
|
||||
// 收藏商品
|
||||
addFavoriteGoods({ fid }) {
|
||||
return vm.$u.post('member/addFavoriteGoods',{ fid: fid })
|
||||
},
|
||||
// 取消收藏(商品/店铺)
|
||||
removeFavorite({ fid, type }) {
|
||||
return vm.$u.post('Member/removeFavorite',{
|
||||
fav_id: fid,
|
||||
type: type
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,8 @@ const install = (Vue, vm) => {
|
||||
}
|
||||
return false;
|
||||
} else if (res.errCode == 1) {
|
||||
console.log(res.message);
|
||||
// console.log(res.message);
|
||||
return res;
|
||||
} else {
|
||||
// 如果返回false,则会调用Promise的reject回调,
|
||||
// 并将进入this.$u.post(url).then().catch(res=>{})的catch回调中,res为服务端的返回值
|
||||
|
||||
Reference in New Issue
Block a user