tian jia guan zhu

This commit is contained in:
zmr900709
2020-07-18 19:52:47 +08:00
parent e34c74c303
commit 30b99968db
3 changed files with 42 additions and 11 deletions

View File

@@ -3,7 +3,8 @@
<image class="head" :src="info.member_avatar"></image>
<text class="name">{{ info.member_nickname }}</text>
<text class="zhuangtai">状态: {{ info.live_status == 1 ? '正在直播' : '未开播' }}</text>
<view class="guanzhu">关注</view>
<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>
</template>
<script>
@@ -14,13 +15,26 @@ export default {
},
methods: {
toDetailsPage() {
this.$u.route({
url: '',
params: {
name: 'lisa'
}
})
// 判断是否登录
const toke = uni.getStorageSync('token');
if (toke) {
console.log(toke);
}else{
uni.navigateTo({
url: '/pageA/login/login'
})
}
// this.$u.route({
// url: '',
// params: {
// name: 'lisa'
// }
// })
},
changeType:function(type){
this.$emit("pChangeType",type)
},
},
}
</script>