You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
141 lines
2.2 KiB
141 lines
2.2 KiB
/**index.wxss**/
|
|
.scrollList{
|
|
width: calc(100% - 48rpx);
|
|
display: flex;
|
|
text-align: center;
|
|
justify-content: center;
|
|
height: 80rpx;
|
|
background: #fff;
|
|
}
|
|
.scrollList text{
|
|
background: #F6F6F6;
|
|
border-radius: 2px;
|
|
font-size: 28rpx;
|
|
color: #999999;
|
|
margin:0 8rpx;
|
|
padding: 18rpx 24rpx;
|
|
height: min-content;
|
|
flex-shrink: 0;
|
|
}
|
|
.scrollList .actived{
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
color: #027AFF;
|
|
background: #F0F5FF;
|
|
}
|
|
.top {
|
|
/* background-color: #006BFF; */
|
|
height: 556rpx;
|
|
width: 100%;
|
|
border-bottom-left-radius: 56rpx;
|
|
/* display: flex; */
|
|
/* overflow: scroll; */
|
|
/* padding-left: 1rem;
|
|
padding-right: 1rem; */
|
|
/* position: sticky; */
|
|
top: 0rpx;
|
|
z-index: 5;
|
|
}
|
|
::-webkit-scrollbar {
|
|
/*隐藏滚轮*/
|
|
display: none;
|
|
}
|
|
.top_box {
|
|
background-color: white;
|
|
/* padding-top: 0.4rem; */
|
|
flex-shrink: 0;
|
|
width: 300rpx;
|
|
height: 350rpx;
|
|
border-radius: 10%;
|
|
text-align: center;
|
|
/* display: flex; */
|
|
justify-content: center;
|
|
padding-left: 36rpx;
|
|
}
|
|
|
|
.box_image {
|
|
width: 70rpx;
|
|
height: 70rpx;
|
|
border-radius: 6rem;
|
|
box-shadow: #FFDEC5 0rem 0.5rem 1rem;
|
|
}
|
|
|
|
.box_title {
|
|
color: #999999;
|
|
font-size: 24rpx;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.box_num {
|
|
font-weight: 900;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
|
|
|
|
|
|
/**index.wxss**/
|
|
page {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.container {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.nav {
|
|
/* 设置tab-nav宽高度 */
|
|
height: 80rpx;
|
|
width: 100%;
|
|
|
|
/* 假如您需要并排放置两个带边框的框,
|
|
可通过将 box-sizing 设置为 "border-box"。 */
|
|
box-sizing: border-box;
|
|
|
|
overflow: hidden;
|
|
|
|
/* 居中 */
|
|
line-height: 80rpx;
|
|
|
|
background:
|
|
#f7f7f7;
|
|
|
|
font-size: 16px;
|
|
|
|
/* 规定段落中的文本不进行换行: */
|
|
white-space: nowrap;
|
|
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 99;
|
|
}
|
|
|
|
.nav-item {
|
|
width: 20%;
|
|
display: inline-block;
|
|
text-align: center;
|
|
}
|
|
|
|
.nav-item.active {
|
|
color:
|
|
green;
|
|
}
|
|
|
|
.tab-box {
|
|
background:
|
|
rgb(31, 201, 96);
|
|
/* 这里设置成nav的高度 */
|
|
padding-top: 80rpx;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.tab-content {
|
|
/* 裁剪 div 元素中内容的左/右边缘 - 如果溢出元素的内容区域的话: */
|
|
overflow-y: scroll;
|
|
}
|
|
|