Commit 63017bcf authored by Mac's avatar Mac

1

parent 66ca6b05
......@@ -193,18 +193,21 @@
未认证
</view>
</view>
<view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==0" @click="dianjiguanzhu(dataList.IsFollow)">
关注
</view>
<view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==1">
已关注
</view>
<view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==2">
被关注
</view>
<view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==3">
互关
<view @click="dianjiguanzhu(dataList)" v-if="dataList.IsFollow!=-1">
<view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==0" >
关注
</view>
<view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==1">
已关注
</view>
<view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==2">
被关注
</view>
<view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==3">
互关
</view>
</view>
</view>
</view>
</view>
......@@ -391,20 +394,26 @@
url: '/pages/blindDate/personal/editmaterial?UserId='+this.UserId
});
},
dianjiguanzhu(ID){//关注操作
this.request2(
{
dianjiguanzhu(x){//关注操作
let ID=0;
if(x.IsFollow!=0){
ID = x.MyFollowId
}
this.request2({
url: '/api/AppletMiai/GetFollowMember',
data: {ID:ID,UserId:this.UserId}
data: {
ID:ID,
UserId:x.Id,
}
},
res => {
if(res.resultCode==1){
uni.showToast({
title:res.message,
icon:'none'
})
this.init()
}
uni.showToast({
title:res.message,
icon:'none'
})
this.init()
}
);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment