|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<view class="custom-tabbar">
|
|
|
<view v-for="(item, index) in tabList" :key="index" @click="switchTab(item)">
|
|
|
- <image :src="activeIndex === index ? item.selectedIcon : item.icon" />
|
|
|
+ <!-- <image :src="activeIndex === index ? item.selectedIcon : item.icon" /> -->
|
|
|
<text :style="{ color: activeIndex === index ? selectedColor : defaultColor }">
|
|
|
{{ item.text }}
|
|
|
</text>
|
|
@@ -23,7 +23,8 @@
|
|
|
})
|
|
|
|
|
|
function switchTab(item) {
|
|
|
- uni.switchTab({ url: item.pagePath });
|
|
|
+ console.log('item', item)
|
|
|
+ uni.reLaunch({ url: item.pagePath });
|
|
|
}
|
|
|
</script>
|
|
|
|