This commit is contained in:
zmr900709
2020-07-20 17:14:18 +08:00
parent 50085a341f
commit 2a62b100fb
5 changed files with 22 additions and 8 deletions

View File

@@ -4,7 +4,7 @@
<text class="name">{{ info.member_nickname }}</text>
<text class="zhuangtai">状态: {{ info.live_status == 1 ? '正在直播' : '未开播' }}</text>
<view class="guanzhu" @tap="changeType(info.member_id)" v-if="info.is_attention == 1">关注</view>
<view class="guanzhu" @tap="changeType(info.member_id)" v-else>未关注</view>
<view class="guanzhu action" @tap="changeType(info.member_id)" v-else >未关注</view>
</view>
</template>
<script>
@@ -32,6 +32,7 @@ export default {
// })
},
changeType:function(type){
console.log("111")
this.$emit("pChangeType",type)
},
@@ -77,5 +78,8 @@ export default {
margin-top: 19rpx;
border-radius: 25rpx;
}
.action{
background: #f3f3f3;
}
}
</style>