Răsfoiți Sursa

分类名称排版

shish 1 an în urmă
părinte
comite
06e4f1c24a
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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">
 		<view class="scroll-middle_bx">
 			<scroll-view scroll-y scroll-with-animation class="tab-view">
 			<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)">
 				<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>
 				</div>
 				<view style="height:180upx"></view>
 				<view style="height:180upx"></view>
 			</scroll-view>
 			</scroll-view>