tanxue 1 месяц назад
Родитель
Сommit
77e95368be
2 измененных файлов с 4 добавлено и 6 удалено
  1. 4 5
      components/custom-tabbar/index.vue
  2. 0 1
      pages/chanpinMy/my.vue

+ 4 - 5
components/custom-tabbar/index.vue

@@ -1,10 +1,9 @@
 <!-- custom-tab-bar/index.vue -->
 <!-- custom-tab-bar/index.vue -->
 <template>
 <template>
-  <view class="custom-tab-bar" v-if="show">
-    <view class="tab-bar-item" v-for="(item, index) in list" :key="index" @click="switchTab(item, index)">
-      <text class="tab-text" :class="{ active: selectedIndex == index }">
-        {{ item.text }}
-      </text>
+  <view class="ezy-custom-tabbar" v-if="show">
+    <view class="tabbar-item-box" v-for="(item, index) in list" :key="index" @click="switchTab(item, index)">
+      <view class="tabbar-item" :style="{ backgroundImage: 'url(' + (selectedIndex == index ? item.selectedIconPath : item.iconPath) + ')' }">
+      </view>
     </view>
     </view>
   </view>
   </view>
 </template>
 </template>

+ 0 - 1
pages/chanpinMy/my.vue

@@ -48,7 +48,6 @@
 		reactive,
 		reactive,
 		ref
 		ref
 	} from "vue";
 	} from "vue";
-	import danyuanMuluVue from '@/pages/xinshuxue/components/danyuanMulu.vue';
 	
 	
 	let currentTabIndex = ref(3)
 	let currentTabIndex = ref(3)
 	let myInfoData = reactive({
 	let myInfoData = reactive({