From ce1c1a4f162f0384e8510f508d10a4dfe805f5df Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Fri, 14 Aug 2020 17:45:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/api/user.js | 9 ++++++++- pageC/merchant/index.vue | 2 ++ pageE/mine/MineConcerns.vue | 7 ++++--- 3 files changed, 14 insertions(+), 4 deletions(-) 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"