内容1 内容2
data:
tags:0
methods:
//标签页
changeTab(tags) {
this.tags = tags
}
css样式
/* 标签页 */
.menu {
margin-top: 42rpx;
font-size: 32rpx;
display: flex;
flex-direction: row;
background-color: #FFFFFF;
justify-content: space-around;
}
.default {
width: 100rpx;
height: 92rpx;
line-height: 92rpx;
text-align: center;
}
/* 选项卡选中后的样式 */
.selected {
border-bottom: 4rpx solid red;
font-weight: 700;
}