Commit 63017bcf authored by Mac's avatar Mac

1

parent 66ca6b05
...@@ -193,18 +193,21 @@ ...@@ -193,18 +193,21 @@
未认证 未认证
</view> </view>
</view> </view>
<view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==0" @click="dianjiguanzhu(dataList.IsFollow)"> <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==1">
</view> 已关注
<view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==2"> </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 class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==3">
互关
</view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
...@@ -391,20 +394,26 @@ ...@@ -391,20 +394,26 @@
url: '/pages/blindDate/personal/editmaterial?UserId='+this.UserId url: '/pages/blindDate/personal/editmaterial?UserId='+this.UserId
}); });
}, },
dianjiguanzhu(ID){//关注操作 dianjiguanzhu(x){//关注操作
this.request2( let ID=0;
{ if(x.IsFollow!=0){
ID = x.MyFollowId
}
this.request2({
url: '/api/AppletMiai/GetFollowMember', url: '/api/AppletMiai/GetFollowMember',
data: {ID:ID,UserId:this.UserId} data: {
ID:ID,
UserId:x.Id,
}
}, },
res => { res => {
if(res.resultCode==1){ uni.showToast({
uni.showToast({ title:res.message,
title:res.message, icon:'none'
icon:'none' })
})
this.init() 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