v
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user