取关
This commit is contained in:
parent
c0c3f51695
commit
ce1c1a4f16
@ -431,6 +431,13 @@ export default {
|
|||||||
friend_tomid:id
|
friend_tomid:id
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
}
|
//店铺取关
|
||||||
|
attentionMemberRemove({id}) {
|
||||||
|
return vm.$u.post('Member/attentionMemberRemove', {
|
||||||
|
friend_tomid:id
|
||||||
|
});
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -169,7 +169,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
getStoreInfo() {
|
getStoreInfo() {
|
||||||
|
console.log(this.sid )
|
||||||
this.$u.api.getStoreInfo({ id: this.sid }).then((res)=>{
|
this.$u.api.getStoreInfo({ id: this.sid }).then((res)=>{
|
||||||
|
console.log(JSON.stringify(res))
|
||||||
this.info = res.data;
|
this.info = res.data;
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
})
|
})
|
||||||
|
@ -11,13 +11,13 @@
|
|||||||
<view @touchmove.stop="">
|
<view @touchmove.stop="">
|
||||||
<u-swipe-action
|
<u-swipe-action
|
||||||
v-for="(item, index) in shangjia" :key="index"
|
v-for="(item, index) in shangjia" :key="index"
|
||||||
:index='item.friend_tomid'
|
:index='item.friend_store_id'
|
||||||
:options="options"
|
:options="options"
|
||||||
:show="item.show"
|
:show="item.show"
|
||||||
@click="removeFavorite"
|
@click="removeFavorite"
|
||||||
@open="open"
|
@open="open"
|
||||||
>
|
>
|
||||||
<view class="item u-border-bottom" @click="toDetailsPage(item.friend_tomid)">
|
<view class="item u-border-bottom" @click="toDetailsPage(item.friend_store_id)">
|
||||||
<image :src="item.friend_tomavatar"></image>
|
<image :src="item.friend_tomavatar"></image>
|
||||||
<!-- 此层wrap在此为必写的,否则可能会出现标题定位错误 -->
|
<!-- 此层wrap在此为必写的,否则可能会出现标题定位错误 -->
|
||||||
<view class="title-wrap">
|
<view class="title-wrap">
|
||||||
@ -179,10 +179,11 @@ export default {
|
|||||||
},
|
},
|
||||||
removeFavorite(id) {
|
removeFavorite(id) {
|
||||||
console.log(id)
|
console.log(id)
|
||||||
this.$u.api.removeFavorite({
|
this.$u.api.attentionMemberRemove({
|
||||||
id: id,
|
id: id,
|
||||||
type: 'store'
|
type: 'store'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
console.log(res)
|
||||||
this.$u.toast(res.message);
|
this.$u.toast(res.message);
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
this.sstatus = "loadmore"
|
this.sstatus = "loadmore"
|
||||||
|
Loading…
Reference in New Issue
Block a user