Merge pull request 'v' (#72) from zmr into master

Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/72
This commit was merged in pull request #72.
This commit is contained in:
2020-07-20 17:22:47 +08:00
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>

View File

@@ -2,7 +2,7 @@
<view class="video-item" v-if="item" @click="toDetailsPage()" data-article_id="item.article_id" >
<image class="head" :src="item.article_pic" v-if="item.type == 1" ></image>
<view class="header_fist" v-else>
<view class="backes">111</view>
<view class="backes"></view>
<image class="head" :src="item.article_pic" ></image>
</view>
<view class="title" v-if="!isguanzhu">{{ item.article_title }}</view>
@@ -172,7 +172,7 @@
.backes{
position: absolute;
top: 0;
background: #000000;
background: rgba(0,0,0,0.6);
width: 100%;
height: 100%;
color: #fff;