Commit f59c101f authored by tao.huang's avatar tao.huang

Merge branch '20250528-dev-ht' of gitlab2.dui88.com:sparkprojects/20250528_FHQ1 into dev

parents 51fc5054 0c78a851
This diff is collapsed.
...@@ -47,11 +47,15 @@ const props = defineProps({ ...@@ -47,11 +47,15 @@ const props = defineProps({
}, },
], ],
}, },
curTabIndex: {
type: Number,
default: 0,
},
}); });
const emit = defineEmits(["tabClick"]); const emit = defineEmits(["tabClick"]);
const currentIndex = ref(0); const currentIndex = ref(props.curTabIndex);
const handleTabClick = (index, item) => { const handleTabClick = (index, item) => {
currentIndex.value = index; currentIndex.value = index;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<Brand v-if="curTabIndex == 1"></Brand> <Brand v-if="curTabIndex == 1"></Brand>
<Integral v-if="curTabIndex == 2"></Integral> <Integral v-if="curTabIndex == 2"></Integral>
<My v-if="curTabIndex == 3"></My> <My v-if="curTabIndex == 3"></My>
<TabBar @tabClick="handleTabClick" /> <TabBar :curTabIndex="curTabIndex" @tabClick="handleTabClick" />
</view> </view>
</template> </template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment