.top-view { position: sticky; top: 0px; z-index: 999; .nav-view { background-color: #407DB8; width: 100%; padding-bottom: 10px; .tab-view { --tabs-nav-background-color: #407DB8; width: 50%; .van-tabs__nav { background-color: #407DB8; width: 100%; } } } .title-view { background-color: #fff; border-radius: 10px; display: flex; align-items: center; align-content: center; flex-direction: column; padding: 5px 10px; .title-view-up, .title-view-mid, .title-view-dwn { display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; align-content: center; height: 25px; text { color: #999999; font-size: 13px; text-align: center; } :first-child { text-align: left; } :last-child { text-align: right; } } .title-view-up { border-bottom: 1px solid #ddd; padding-bottom: 5px; } .title-view-mid { padding: 5px 0px; } } } .item-view { margin: 5px; border-radius: 10px; display: flex; align-items: center; align-content: center; flex-direction: column; padding: 10px 10px; background-color: #fff; .item-view-up { text:nth-child(3) { width: 120px; } } .item-view-up, .item-view-dwn { display: flex; flex-direction: row; justify-content: space-between; align-items: center; height: 50%; width: 100%; align-content: center; height: 25px; text { color: #333; font-size: 14px; /*超出隐藏*/ overflow: hidden; /*溢出不换行*/ white-space: nowrap; /*溢出显示用省略号*/ text-overflow: ellipsis; text-align: center; } :first-child { text-align: left; } :last-child { text-align: right; } } .item-view-up { border-bottom: 1px solid #C6DFFF; padding-bottom: 5px; text { width: 25%; } } .item-view-mid { padding: 5px 0px; :last-child { width: 30%; } } .item-view-dwn { text:nth-last-child(1) { color: #F55656; } } } /* 选中时添加这个 样式 */ .active { background: #E6F1FF; border: 1px solid #C6DFFF; } /* 三角形 */ .active::before { content: ''; display: inline-block; position: absolute; top: 0; left: 5px; width: 0; height: 0; border-top: 25px solid #407DB8; border-right: 25px solid transparent; } /* 小勾 */ .active::after { content: ''; position: absolute; left: 7.5px; top: 5px; width: 8px; height: 4px; display: inline-block; border: 1px solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); -ms-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -webkit-transform: rotate(-45deg); -o-transform: rotate(-45deg); vertical-align: baseline; } .van-swipe-cell__right { height: inherit; color: white; display: flex; .item { width: 50px; text-align: center; display: flex; justify-content: center; align-items: center; font-size: 12px; } } .buttom_view { position: sticky; bottom: 10px; z-index: 999; display: flex; flex-direction: column; justify-content: space-between; margin-top: 20px; align-items: center; align-content: center; width: 100%; }