From ee071a4de3040e8624c3dcf4b83f379a3427f68e Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Fri, 23 Aug 2024 09:14:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=91=E7=9A=84=E6=8E=A8?= =?UTF-8?q?=E5=B9=BF=E5=BA=97=E9=93=BA=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user_spread_store/user_spread_store.vue | 72 +++++++------------ 1 file changed, 27 insertions(+), 45 deletions(-) diff --git a/bundle/pages/user_spread_store/user_spread_store.vue b/bundle/pages/user_spread_store/user_spread_store.vue index d21fdde..5f05d2a 100644 --- a/bundle/pages/user_spread_store/user_spread_store.vue +++ b/bundle/pages/user_spread_store/user_spread_store.vue @@ -26,38 +26,36 @@ --> - - - 企业入驻 - {{companyNum}} - + + {{companyNum}} + 企业入驻 - - - 本地生活商家 - {{localStoreNum}} - + + {{localStoreNum}} + 本地生活商家 - - - - {{item.name}} - - - - + + + + + {{item.name}} + + + + + - - + + @@ -123,6 +121,8 @@ const curPageData = data.list; const curPageLen = curPageData.length; const hasNext = !!data.more; + this.companyNum = data.qy_count + this.localStoreNum = data.local_count this.fansList = this.fansList.concat(curPageData); this.mescroll.endSuccess(curPageLen, hasNext); }).catch(() => { @@ -141,7 +141,6 @@ // }).catch(() => { // this.mescroll.endErr() // }) - }, onChangType(val) { @@ -248,25 +247,8 @@ } } - .item-num { - position: relative; - - &:first-child { - padding-right: 50rpx; - font-weight: bold; - } - - .num { - position: absolute; - top: 0; - right: 0; - font-size: 24rpx; - border: 1rpx solid #FF2C3C; - border-radius: 10rpx; - height: 28rpx; - line-height: 28rpx; - padding: 0 4rpx; - color: #FF2C3C; - } + .num-block { + text-align: center; + font-weight: bold; }