.nav-wrap { position: fixed; left: 0; top: 0; z-index: 10; width: 100%; .nav { width: 100%; background: rgba(255, 255, 255, 1); font-size: 0; } .nav-item { display: inline-block; width: 150rpx; text-align: center; } text { position: relative; left: 0; top: 0; display: inline-block; height: 98rpx; line-height: 98rpx; color: rgba(51, 51, 51, 1); font-size: 28rpx; } text.active { font-weight: 500; color: rgba(107, 133, 89, 1); } text.active:after { position: absolute; left: -15rpx; right: -15rpx; bottom: 0; content: ''; height: 4rpx; background: rgba(107, 133, 89, 1); } } .main { position: absolute; left: 0; top: 98rpx; right: 0; bottom: 0; width: 100%; background: #F6F6F6; } .list { width: 690rpx; min-height: 370rpx; border-radius: 24rpx; overflow: hidden; margin: 30rpx auto 0; background: rgba(255, 255, 255, 1); box-shadow: 0 0 20rpx 0 rgba(0, 0, 0, 0.1); } .top { display: flex; justify-content: space-between; align-items: center; height: 65rpx; padding: 0 30rpx 0 25rpx; border-bottom: 1rpx solid rgba(231, 231, 231, 1); view { line-height: 38rpx; font-size: 24rpx; color: rgba(51, 51, 51, 1); } .col-0 { color: rgba(51, 51, 51, 1); } .col-1 { color: rgba(255, 141, 26, 1); } .col-2 { color: rgba(145, 179, 121, 1); } .col-3 { color: rgba(212, 48, 48, 1); } } .middle { display: flex; padding: 32rpx 19rpx 34rpx; border-bottom: 1rpx solid rgba(231, 231, 231, 1); } .photo-wrap { width: 132rpx; height: 134rpx; border-radius: 12rpx; overflow: hidden; image { display: block; width: 100%; height: 100%; } } .name-wrap { width: calc(100% - 132rpx); padding-left: 21rpx; .name { width: 100%; line-height: 46rpx; font-size: 24rpx; color: rgba(51, 51, 51, 1); word-break: break-all; word-wrap: break-word; } .box { display: flex; align-items: center; margin-top: 33rpx; } .stock, .price { line-height: 36rpx; font-size: 24rpx; color: rgba(153, 153, 153, 1); } .price { margin-left: 20rpx; } } .bottom { display: flex; justify-content: flex-end; align-items: center; padding: 23rpx 21rpx 21rpx; button { width: 127rpx; height: 58rpx; margin-left: 34rpx; border-radius: 29rpx; border: 2rpx solid rgba(153, 153, 153, 1); font-size: 24rpx; color: rgba(153, 153, 153, 1); &:nth-of-type(1) { margin-left: 0; } } button[type="default"] { background-color: transparent; } }