.container { display: flex; flex-direction: column; width: 100%; .top-view { display: flex; flex-direction: column; width: 100%; position: sticky; top: 0; z-index: 999; .tmp_view { padding: 0px 10px; &__step { display: flex; flex-direction: row; justify-content: start; align-items: center; align-content: center; width: 100%; white-space: nowrap; &__item { display: inline-flex; flex-direction: column; align-items: center; align-content: center; padding-top: 10px; margin-bottom: 5px; text { font-size: 12px; padding: 2.5px 5px; text-align: center; } } } } .title-view { margin: 10px; background-color: #f0f0f0; border-radius: 10px; display: flex; align-items: center; align-content: center; flex-direction: column; padding: 5px 10px; .title-view-up, .title-view-dwn { display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; align-content: center; height: 25px; text { color: #666; 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; text { width: 25%; } } .title-view-mid { padding: 5px 0px; } } } .item-view { margin: 10px; border-radius: 10px; display: flex; align-items: center; align-content: center; flex-direction: column; padding: 5px 10px; border: 1px solid #ddd; .item-view-up, .item-view-mid, .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: 13px; /*超出隐藏*/ 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 #ddd; padding-bottom: 5px; text { width: 25%; } } .item-view-mid { padding: 5px 0px; :last-child { width: 30%; } } } /* 选中时添加这个 样式 */ .active { background: #E6F1FF; } .button-view { display: flex; justify-content: space-between; margin: 10px; justify-content: center; justify-items: center; width: 100%; van-button { height: 40px; width: 90%; } } }