一部分完成

This commit is contained in:
2020-08-13 10:04:50 +08:00
parent c39d6ba811
commit e55aa62bcc
4 changed files with 33 additions and 15 deletions

View File

@@ -45,11 +45,11 @@
<view class="list">
<view>
<zhiboItem v-for="item in tabLiveLists.filter((_, index) => !(index&1))" :zid="item.live_id" :rid="item.chatroom_id"
:key="item.live_id" :name="item.store_name" :image="item.cover_img" :url="item.url"></zhiboItem>
:key="item.live_id" :name="item.store_name" :image="item.cover_img" :url="item.url" :item="item" @updateList="updateList"></zhiboItem>
</view>
<view style="margin-left:20rpx">
<zhiboItem v-for="item in tabLiveLists.filter((_, index) => index&1)" :zid="item.live_id" :rid="item.chatroom_id"
:key="item.live_id" :name="item.store_name" :image="item.cover_img" :url="item.url"></zhiboItem>
:key="item.live_id" :name="item.store_name" :image="item.cover_img" :url="item.url" :item="item" @updateList="updateList"></zhiboItem>
</view>
</view>
</view>
@@ -401,7 +401,8 @@
// 屏蔽更新列表
updateList() {
this.page = 1;
this.getArticlelist();
this.getArticlelist();
this.tabLiveList()
},
// 发现下拉加载
swiperBottom(e) {

View File

@@ -26,7 +26,7 @@
<image src="../../static/danmu.png" class="danmubianji"></image>
<text style="font-size:26rpx;color:#fff;margin-left:20rpx">{{ $store.state.hasLogin ? '想说点什么' : '请先登录'}}</text>
</view>
<image class="liketap" src="../../static/like.png" @click="">
<!-- <image class="liketap" src="../../static/like.png" @click=""> -->
<view class="danmuinputbox" v-if="danmu">
<input type="text" focus="true" style="width:600rpx;margin-left:30rpx;font-size:26rpx" maxlength="20" @blur="danmu=false" v-model="danmutext">
@@ -86,7 +86,7 @@
.shopimg{
width: 160rpx;
height: 160rpx;
background-color: #0f0;
// background-color: #0f0;
}
@@ -158,7 +158,9 @@
height: 46rpx;
position: fixed;
bottom: 36rpx;
right: 154rpx;
// right: 154rpx;
right: 54rpx;
}
.hottext{
font-size: 20rpx;
@@ -275,7 +277,7 @@
left: 0;
width: 308rpx;
height: 58rpx;
background-color: #0f0;
background-color: #000;
opacity: 0.4;
border-radius: 29rpx;
}
@@ -460,7 +462,8 @@ export default {
content : content
}
this.chatRoomService.sendMessages(this.room.id, message);
this.danmutext = ""
this.danmutext = ""
this.danmu = false
},
whenNewMessage (message) {//新消息监听
// if(message.type == this.room.MessageType.PROP){