From ec3f9f1abaf2b0327a69ac7b223120f594986d03 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Fri, 23 Sep 2022 20:48:38 +0800 Subject: [PATCH] 上传图片前预览,支持H5模式下的双指缩放 --- plugins/infiniteScroll/cInfiniteScroll.scss | 73 +++++++++++++++++++++++++++++++++--- 1 files changed, 67 insertions(+), 6 deletions(-) diff --git a/plugins/infiniteScroll/cInfiniteScroll.scss b/plugins/infiniteScroll/cInfiniteScroll.scss index 81f7b9c..63b35db 100644 --- a/plugins/infiniteScroll/cInfiniteScroll.scss +++ b/plugins/infiniteScroll/cInfiniteScroll.scss @@ -6,13 +6,74 @@ @import "../../common/sassMixin"; .c-infinite-scroll { - .bottom { - height: 1.8rem; + height: 100%; + .c-infinite-top { + position: relative; + width: 100%; + height: 0; + overflow: hidden; + transition-duration: 0.3s; + &.touching { + transition-duration: 0s; + } + .inner { + @include position(absolute, n 0 0 n); + width: 100%; + height: 234px; + padding-top: 155px; + text-align: center; + box-sizing: border-box; + .at-activity-indicator { + display: inline-block; + height: 40px; + margin-right: 9px; + vertical-align: middle; + } + .text { + vertical-align: middle; + } + } + .tips { + .text:nth-child(3) { + display: none; + } + .at-icon { + margin-right: 9px; + font-size: 33px; + vertical-align: middle; + transition-duration: 0.3s; + } + .text { + vertical-align: middle; + } + &.release { + .at-icon { + transform: rotate(180deg); + } + .text:nth-child(2) { + display: none; + } + .text:nth-child(3) { + display: inline-block; + } + } + } + } + .c-infinite-bottom { + padding-bottom: 20px; text-align: center; - line-height: 1.5rem; - color: #666; - .empty { - line-height: 5rem; + .c-infinite-loading { + height: 94px; + color: #666; + line-height: 84px; + } + .c-infinite-ended { + height: 94px; + color: #999; + line-height: 84px; + } + .c-infinite-empty { + line-height: 234px; color: #999; } } -- Gitblit v1.9.1