.photoWrap { display: flex; flex-wrap: wrap; padding: 12px; box-sizing: border-box; justify-content: space-between; div { box-sizing: border-box; } } .gridImg { display: flex; justify-content: center; align-items: center; width: 100%; height: calc(100vw / 2); border-radius: 2px; overflow: hidden; position: relative; background-color: #eaeaea; background-repeat: no-repeat; background-position: center; background-image: url('../images/icon-photo-default.png'); } .photoItem { position: relative; width: 49%; margin-bottom: 12px; .iconImage { display: flex; justify-content: center; } .gridName { font-size: 16px; font-weight: 500; color: #333; line-height: 22px; padding: 8px 0 4px 0; } .gridDes { color: #777; line-height: 17px; padding-left: 1px; font-size: 12px; } } .phoneListDetailWrap { min-height: calc(100vh - var(--header-height)); } .phoneListDetail { position: relative; box-sizing: border-box; display: flex; flex-wrap: wrap; .gridItem { padding: 1.5px; width: calc(100% / 3); height: calc(100vw / 3); box-sizing: border-box; .gridImg { width: 100%; height: 100%; border-radius: 2px; } } } :global { .van-image-preview { .van-image-preview__close-icon, .van-image-preview__index { top: 50px; } } } .downBtn { position: fixed; right: 20px; bottom: 40px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, 1); padding: 8px; box-shadow: 0 2px 8px 0px rgba(0, 0, 0, 0.2); &:active { opacity: 0.8; } img { width: 100%; height: 100%; display: block; } }