45
chenyc
2022-09-23 f632811dbd7219d454bd8e1307577d3863591333
src/views/myMine/index.vue
@@ -97,8 +97,8 @@
            </div>
        </div>
        <van-tabbar v-model="active" @change="tabChang">
            <van-tabbar-item name="home" @click="active = 'home'" icon="home-o">首页</van-tabbar-item>
            <van-tabbar-item name="my" @click="active = 'my'" icon="manager">我的</van-tabbar-item>
            <van-tabbar-item name="home" icon="like">首页</van-tabbar-item>
            <van-tabbar-item name="my" icon="manager">我的</van-tabbar-item>
        </van-tabbar>
    </div>
</template>
@@ -110,6 +110,7 @@
    const router=useRouter()
    const active=ref('my')
    const tabChang=(index:any)=>{
        alert(index)
        if (index==='home'){
            router.push('/')
        } else {
@@ -118,12 +119,14 @@
    }
</script>
<style lang="scss" scoped>
    body{
        background-color:#166bd3;
    }
.page{
    background-color: #F6FAFF;
    background-color:#F6FAFF;
    position:relative;
    min-width: 375px;
    min-height: 800px;
    text-align: center;
    .hader{
        margin-top: 20px;
        margin-bottom: 20px;
@@ -210,6 +213,7 @@
            // margin-bottom: 20px;
        }
        .serveItem{
            text-align: center;
            margin-top: 20px;
            font-size: 13px;
            font-family: PingFangSC-Regular, PingFang SC;