diff --git a/common/api/user.js b/common/api/user.js index c194c0b..f45dc6f 100644 --- a/common/api/user.js +++ b/common/api/user.js @@ -431,6 +431,13 @@ export default { friend_tomid:id }); }, - } + //店铺取关 + attentionMemberRemove({id}) { + return vm.$u.post('Member/attentionMemberRemove', { + friend_tomid:id + }); + }, + } + } } \ No newline at end of file diff --git a/pageC/merchant/index.vue b/pageC/merchant/index.vue index c301778..0c1b0b7 100644 --- a/pageC/merchant/index.vue +++ b/pageC/merchant/index.vue @@ -169,7 +169,9 @@ export default { } }, getStoreInfo() { + console.log(this.sid ) this.$u.api.getStoreInfo({ id: this.sid }).then((res)=>{ + console.log(JSON.stringify(res)) this.info = res.data; uni.stopPullDownRefresh(); }) diff --git a/pageE/mine/MineConcerns.vue b/pageE/mine/MineConcerns.vue index 5cbf53a..c619cd2 100644 --- a/pageE/mine/MineConcerns.vue +++ b/pageE/mine/MineConcerns.vue @@ -11,13 +11,13 @@ - + @@ -179,10 +179,11 @@ export default { }, removeFavorite(id) { console.log(id) - this.$u.api.removeFavorite({ + this.$u.api.attentionMemberRemove({ id: id, type: 'store' }).then(res => { + console.log(res) this.$u.toast(res.message); if(res.errCode == 0) { this.sstatus = "loadmore"