From e55aa62bcc0d6ff72dbc2a39555d8c6442666782 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Thu, 13 Aug 2020 10:04:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E9=83=A8=E5=88=86=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/index/zhibo-item/index.vue | 22 +++++++++++++++++----- pageB/search/searchGoods.vue | 6 ++++-- pages/index/index.vue | 7 ++++--- pages/zhibo/index.nvue | 13 ++++++++----- 4 files changed, 33 insertions(+), 15 deletions(-) diff --git a/components/index/zhibo-item/index.vue b/components/index/zhibo-item/index.vue index 880a107..11dcc71 100644 --- a/components/index/zhibo-item/index.vue +++ b/components/index/zhibo-item/index.vue @@ -6,9 +6,9 @@ {{name}} - - - 1屏蔽用户 + + + 屏蔽用户 @@ -81,8 +81,20 @@ export default { rid:this.rid } }) - } + }, + articleAddShield() { + console.log(this.item) + this.$u.api.articleAddShield({ + member_id: this.item.user_id, + }).then(res => { + // console.log(res) + if(res.errCode == 0) { + this.$u.toast(res.message); + this.$emit("updateList"); + } + }) + }, }, - props:['name','image','url','zid','rid'] + props:['name','image','url','zid','rid','item'] } \ No newline at end of file diff --git a/pageB/search/searchGoods.vue b/pageB/search/searchGoods.vue index 0eb6f71..053a741 100644 --- a/pageB/search/searchGoods.vue +++ b/pageB/search/searchGoods.vue @@ -11,7 +11,7 @@ 好评 - + @@ -38,7 +38,8 @@ export default { scrollHeight: '', loadStatus: 'loadmore', timer: true, // 防止上拉加载短时间内多次调用, - value:"" + value:"", + top:0 } }, watch: { @@ -131,6 +132,7 @@ export default { switchCurrent(current) { this.page = 1 if(current == 1 && this.current == 1) this.priceOrderAsc = !this.priceOrderAsc; + this.top=0 this.ShopSearch() this.current = current; }, diff --git a/pages/index/index.vue b/pages/index/index.vue index 6008a3d..21bc378 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -45,11 +45,11 @@ + :key="item.live_id" :name="item.store_name" :image="item.cover_img" :url="item.url" :item="item" @updateList="updateList"> + :key="item.live_id" :name="item.store_name" :image="item.cover_img" :url="item.url" :item="item" @updateList="updateList"> @@ -401,7 +401,8 @@ // 屏蔽更新列表 updateList() { this.page = 1; - this.getArticlelist(); + this.getArticlelist(); + this.tabLiveList() }, // 发现下拉加载 swiperBottom(e) { diff --git a/pages/zhibo/index.nvue b/pages/zhibo/index.nvue index f981639..f02e236 100644 --- a/pages/zhibo/index.nvue +++ b/pages/zhibo/index.nvue @@ -26,7 +26,7 @@ {{ $store.state.hasLogin ? '想说点什么' : '请先登录'}} - + @@ -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){