shish 1 год назад
Родитель
Сommit
c796b03894
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      mallApp/src/pages/home/category.vue

+ 1 - 1
mallApp/src/pages/home/category.vue

@@ -20,7 +20,7 @@
 
     <scroll-view scroll-y scroll-with-animation class="tab-view" :scroll-top="scrollTop">
       <view v-for="(item,index) in tabbar" :key="index" class="tab-bar-item" :class="[currentTab==index ? 'active' : '']" :data-current="index" @tap.stop="swichNav($event ,item)" >
-        <text>{{item.categoryName}}</text>
+        <text style="text-align: center;">{{item.categoryName}}</text>
       </view>
       <view style="height:150upx"></view>
     </scroll-view>