优化直播间以及分销

This commit is contained in:
lemon橪
2021-06-29 11:58:06 +08:00
parent 8239aad928
commit 73c307173b
5 changed files with 12 additions and 12 deletions

View File

@@ -41,7 +41,7 @@
</div>
</div>
</div>
<u-loadmore bg-color="transparent" :status="status" />
<u-loadmore v-if="liveList.length > 10" bg-color="#f8f8f8" :status="status" />
</div>
</div>
</template>
@@ -101,7 +101,10 @@ export default {
};
},
onShow() {
this.params[this.current].pageNumber = 1;
this.liveList = [];
this.getLives();
this.getRecommendLives();
},
onReachBottom() {
@@ -137,7 +140,7 @@ export default {
* 点击顶部推荐直播间
*/
clickSwiper(val) {
console.log(this.swiperImg[val])
console.log(this.swiperImg[val]);
this.handleLivePlayer(this.swiperImg[val]);
},
@@ -145,6 +148,7 @@ export default {
* 搜索直播间
*/
searchLive(val) {
this.params[this.current].pageNumber = 1;
this.params[this.current].name = val;
this.init();
},
@@ -264,6 +268,9 @@ export default {
.live-cover-img {
position: relative;
}
.swiper {
margin: 20rpx 0;
}
.live-goods {
position: relative;