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; }