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

+ 2 - 2
mallApp/src/pages/item/item.vue

@@ -29,8 +29,8 @@
 		<view class="scroll-middle_bx">
 			<scroll-view scroll-y scroll-with-animation class="tab-view">
 				<div v-for="(item, index) in filterProductInfo" :key="index" class="tab-bar-item" :class="[classIndex == index ? 'active' : '']" :data-current="index" @tap.stop="swichClass(index)">
-					<text v-if="item.classId=='-1' || item.classId=='-3'" style="color:red;font-weight:bold;">{{ item.className || "" }}</text>
-					<text v-else>{{ item.className }}</text>
+					<text v-if="item.classId=='-1' || item.classId=='-3'" style="color:red;font-weight:bold;text-align: center;">{{ item.className || "" }}</text>
+					<text v-else style="text-align: center;">{{ item.className }}</text>
 				</div>
 				<view style="height:180upx"></view>
 			</scroll-view>