我的图标-布局调整
This commit is contained in:
parent
7ffa374c55
commit
e816da4cf2
@ -189,6 +189,10 @@ image {
|
|||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.newsList{
|
||||||
|
margin-bottom: 100rpx;
|
||||||
|
}
|
||||||
|
|
||||||
.newsItem {
|
.newsItem {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -312,3 +316,7 @@ image {
|
|||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
margin-bottom: 16rpx;
|
margin-bottom: 16rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.grid_Text{
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
@ -70,7 +70,7 @@
|
|||||||
:key="index"
|
:key="index"
|
||||||
>
|
>
|
||||||
<image class="grid_Pic" :src="item.nav_icon" mode=""></image>
|
<image class="grid_Pic" :src="item.nav_icon" mode=""></image>
|
||||||
<text>{{ item.nav_name }}</text>
|
<text class="grid_Text">{{ item.nav_name }}</text>
|
||||||
</u-grid-item>
|
</u-grid-item>
|
||||||
</u-grid>
|
</u-grid>
|
||||||
</view>
|
</view>
|
||||||
@ -501,6 +501,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async selectTab(index, item) {
|
async selectTab(index, item) {
|
||||||
|
console.log("🚀 ~ selectTab ~ item:", item)
|
||||||
const isTabChange = this.selectedTab !== index;
|
const isTabChange = this.selectedTab !== index;
|
||||||
if (isTabChange) {
|
if (isTabChange) {
|
||||||
this.page_num = 1;
|
this.page_num = 1;
|
||||||
@ -508,7 +509,6 @@ export default {
|
|||||||
// this.loadMoreText = "下拉加载后续10条,共计30条";
|
// this.loadMoreText = "下拉加载后续10条,共计30条";
|
||||||
}
|
}
|
||||||
this.selectedTab = index;
|
this.selectedTab = index;
|
||||||
console.log("选中的tab:", index);
|
|
||||||
const res = await request(apiArr.infoPage, "POST", {
|
const res = await request(apiArr.infoPage, "POST", {
|
||||||
community_id: Number(uni.getStorageSync("changeCommData").id),
|
community_id: Number(uni.getStorageSync("changeCommData").id),
|
||||||
announcement_category_id: item.id,
|
announcement_category_id: item.id,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user