From e5262370dff3f13b4e84a15a6fa88824d1bf56c8 Mon Sep 17 00:00:00 2001 From: zengBin Date: Mon, 21 Oct 2024 17:52:43 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=8F=8D=E9=A6=88=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dynamicDiscuss.wpy | 105 ++++++++++++++++++++++++---- src/components/dynamicList.wpy | 11 +-- src/pages/dynamic/dynamicDetail.wpy | 14 +++- src/pages/dynamic/hotTopic.wpy | 40 ++++++++++- src/pages/dynamic/issue.wpy | 14 +++- src/pages/tabBar/dynamic.wpy | 13 +++- 6 files changed, 169 insertions(+), 28 deletions(-) diff --git a/src/components/dynamicDiscuss.wpy b/src/components/dynamicDiscuss.wpy index 306ee0e..5065e01 100644 --- a/src/components/dynamicDiscuss.wpy +++ b/src/components/dynamicDiscuss.wpy @@ -13,6 +13,12 @@ z-index: 2222; } +.ui-triangle-icon{ + width: 8rpx; + height: 16rpx; + margin-left: 10rpx; +} + .ui-no-data{ text-align: center; padding-top: 200rpx; @@ -76,14 +82,6 @@ display: block; } -.referencesIcon { - width: 124rpx; - height: 36rpx; - display: block; - margin-left: 16rpx; - margin-top: 2rpx; -} - .ui-content{ word-break: break-all; } @@ -204,10 +202,55 @@ border-radius: 12rpx; } } + +.dialogs { + width: 100%; + z-index: 1111; + max-height: 670rpx; + background: #FFFFFF; + position: relative; + border-radius: 24rpx 24rpx 0rpx 0rpx!important; + + .cancelIcon{ + width: 28rpx; + height: 28rpx; + position: absolute; + right: 30rpx; + top: 30rpx; + } + + .ui-container{ + height: 600rpx; + padding: 30rpx 30rpx 100rpx 30rpx; + overflow-x: hidden; + overflow-y: scroll; + + .ui-like-member-pic{ + width: 70rpx; + height: 70rpx; + border-radius: 50%; + display: block; + } + + .ui-references-icon{ + width: 124rpx; + height: 36rpx; + display: block; + margin-left: 16rpx; + margin-top: 2rpx; + } + } +} diff --git a/src/components/dynamicList.wpy b/src/components/dynamicList.wpy index 372743a..46e634e 100644 --- a/src/components/dynamicList.wpy +++ b/src/components/dynamicList.wpy @@ -270,8 +270,8 @@ scroll-view { {{ item.commenter_count }} - - + + {{ item.liker_count }} @@ -350,15 +350,10 @@ scroll-view { vm.$emit('signInVerify') return } - let nowTime = new Date() vm.$post({url: `${service.host}/moment/${e.id}/like`}).then(({code}) => { wx.hideLoading() if (code == 0) { - vm.list[index].is_like = !vm.list[index].is_like - vm.list[index].liker_count = vm.list[index].liker_count + (vm.list[index].is_like ? 1 : -1) - if (vm.list[index].is_like) { - vm.gifurl = `${vm.gifurl}?${nowTime}` - } + vm.$emit('changListLiker', index) } }).catch(() => { wx.hideLoading() diff --git a/src/pages/dynamic/dynamicDetail.wpy b/src/pages/dynamic/dynamicDetail.wpy index e8336f0..c737c23 100644 --- a/src/pages/dynamic/dynamicDetail.wpy +++ b/src/pages/dynamic/dynamicDetail.wpy @@ -7,7 +7,7 @@ page {