choujiang/components/foot-tabs/foot-tab-one.vue

69 lines
1.4 KiB
Vue

<template>
<view class="tab">
<view class="foot-tab">
<view class="li" v-for="(item,index) in tabList">
<image src="" class="icon" ></image>
<view class="text">
{{item.title}}
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
tabList:[
{
title:"首页"
},
{
title:"发起抽奖"
},
{
title:"我的"
}
]
}
},
methods: {
}
}
</script>
<style>
.tab{
width: 100%;
background-color: #FFFFFF;position: fixed;
bottom: 0rpx;
left: 0rpx;
height: 108rpx;
box-shadow: 0px -4rpx 12rpx 12rpx rgba(0, 0, 0, 0.07);
}
.foot-tab{
display: flex;
width: 100%;
height: 100%;
justify-content: space-between;
color: rgba(16, 16, 16, 100);
align-items: center;
padding: 0 50rpx;
box-sizing: border-box;
font-size: 24rpx;
text-align: center;
font-family: PingFangSC-regular;
color: #101010;
}
.foot-tab .icon{
width: 48rpx;
height: 48rpx;
margin: auto;
background-color: rgba(227, 227, 227, 100);
}
</style>