This commit is contained in:
xingyy 2023-12-05 19:06:19 +08:00
parent 93fe808801
commit 44a29836fb
3 changed files with 7 additions and 4 deletions

View File

@ -6,14 +6,13 @@
activeColor="#EB783C"
open-type="reLaunch"
text="选票"
>
<div style="width: 52rpx;height: 52rpx">
<img v-if="acc===0" style="width: 100%;height: 100%" src="../../static/zu618.png" alt="">
<img v-else style="width: 100%;height: 100%" src="../../static/zu759@3x (1).png" alt="">
</div>
</tm-tabbar-item>
<tm-tabbar-item @click="acc = 1" activeColor="#EB783C" text="我的" >
<tm-tabbar-item @click="acc = 1" activeColor="#EB783C" text="我的">
<div style="width: 52rpx;height: 52rpx">
<img v-if="acc===0" style="width: 100%;height: 100%" src="../../static/zu628.png" alt="">
<img v-else style="width: 100%;height: 100%" src="../../static/zu-44.png" alt="">
@ -23,7 +22,7 @@
</tm-app>
</template>
<script setup>
import {ref, getCurrentInstance, defineProps, defineEmits, watch,} from 'vue'
import {ref, defineEmits, watch,} from 'vue'
import tmApp from '@/tmui/components/tm-app/tm-app.vue'
import tmTabbar from '@/tmui/components/tm-tabbar/tm-tabbar.vue'
import tmTabbarItem from '@/tmui/components/tm-tabbar-item/tm-tabbar-item.vue'

View File

@ -1,5 +1,6 @@
<template>
<div>
<div :style="{height:`${ztHehight}px`}"></div>
<home v-if="acc===0"/>
<mine v-if="acc===1"/>
<self-tabbar v-model="acc"></self-tabbar>
@ -11,4 +12,5 @@ import mine from '../mine/index.vue'
import selfTabbar from '../../components/self-tabbar/index.vue'
import {ref} from "vue";
const acc=ref(0)
const ztHehight=uni.getSystemInfoSync().statusBarHeight
</script>

View File

@ -1,5 +1,7 @@
<template>
<div>mineminemineminemineminemineminemineminemineminemineminemineminemineminemineminemineminemine</div>
<div>
</div>
</template>
<script setup>