取关
This commit is contained in:
@@ -11,13 +11,13 @@
|
||||
<view @touchmove.stop="">
|
||||
<u-swipe-action
|
||||
v-for="(item, index) in shangjia" :key="index"
|
||||
:index='item.friend_tomid'
|
||||
:index='item.friend_store_id'
|
||||
:options="options"
|
||||
:show="item.show"
|
||||
@click="removeFavorite"
|
||||
@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>
|
||||
<!-- 此层wrap在此为必写的,否则可能会出现标题定位错误 -->
|
||||
<view class="title-wrap">
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user