首页菜单样式

feature/v-xuexi
wangdong 9 months ago
parent 74584fe7dd
commit 9460722070
  1. 19
      pages/index/index.vue

@ -38,8 +38,8 @@
<!-- #ifndef MP-TOUTIAO --> <!-- #ifndef MP-TOUTIAO -->
<view class="col-8"></view> <view class="col-8"></view>
<!-- #endif --> <!-- #endif -->
<view class="acea-row nav-list"> <view class="acea-row nav-list flex">
<view class="item" :key="index" v-for="(item, index) in navList" @click="getNavHrefTaber(item, 1)"> <view class="item flex" :key="index" v-for="(item, index) in navList" @click="getNavHrefTaber(item, 1)">
<view class="pictrue"> <view class="pictrue">
<image :src="item.icon" mode="aspectFit"/> <image :src="item.icon" mode="aspectFit"/>
</view> </view>
@ -1255,19 +1255,22 @@ swiper {
margin: 0 auto; margin: 0 auto;
background: #fff; background: #fff;
border-radius: 10rpx; border-radius: 10rpx;
padding: 15rpx 16rpx 0; padding: 15rpx 0 0;
justify-content: space-evenly;
} }
.indexNew .nav .item { .indexNew .nav .item {
min-width: 0; width: 23%;
font-size: 24rpx; font-size: 24rpx;
line-height: 30rpx; line-height: 30rpx;
text-align: center;
color: #666666; color: #666666;
word-break: break-all; word-break: break-all;
margin-right: 52rpx;
margin-bottom: 32rpx; margin-bottom: 32rpx;
&:nth-child(4n) { flex-direction: column;
margin-right: 0; align-items: center;
>text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }

Loading…
Cancel
Save