shish 1 жил өмнө
parent
commit
c796b03894

+ 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">
     <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)" >
       <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>
       <view style="height:150upx"></view>
       <view style="height:150upx"></view>
     </scroll-view>
     </scroll-view>