| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793 |
- <template>
- <!-- 1、常用loading加载弹窗 -->
- <view class="aui-loading aui-loading-ring" :class="{'aui-loading-ring-row': direction == 'row'}" v-if="SHOW && type == 1">
- <view class="aui-mask" v-if="mask" @touchmove.stop.prevent></view>
- <view class="aui-loading-main">
- <view class="aui-loading-animate">
- <view class="span"></view>
- <view class="span"></view>
- <view class="span"></view>
- <view class="span"></view>
- <view class="span"></view>
- <view class="span"></view>
- <view class="span"></view>
- <view class="span"></view>
- <view class="span"></view>
- <view class="span"></view>
- <view class="span"></view>
- <view class="span"></view>
- </view>
- <view class="aui-loading-msg" v-if="msg">{{msg}}</view>
- </view>
- </view>
- <!-- 2、按钮内显示loading加载动画 -->
- <view class="aui-loading aui-loading-button" v-else-if="SHOW && type == 2">
- <view class="aui-loading-main" :style="{background: styles.background, borderRadius: styles.borderRadius, zIndex: styles.zIndex}">
- <view class="aui-loading-warp">
- <view class="aui-loading-animate">
- <view class="span" :style="{borderColor: styles.color}"></view>
- <view class="span" :style="{borderColor: styles.color}"></view>
- <view class="span" :style="{borderColor: styles.color}"></view>
- <view class="span" :style="{borderColor: styles.color}"></view>
- <view class="span" :style="{borderColor: styles.color}"></view>
- <view class="span" :style="{borderColor: styles.color}"></view>
- <view class="span" :style="{borderColor: styles.color}"></view>
- <view class="span" :style="{borderColor: styles.color}"></view>
- <view class="span" :style="{borderColor: styles.color}"></view>
- <view class="span" :style="{borderColor: styles.color}"></view>
- <view class="span" :style="{borderColor: styles.color}"></view>
- <view class="span" :style="{borderColor: styles.color}"></view>
- </view>
- <view class="aui-loading-msg" v-if="msg" :style="{color: styles.color}">{{msg}}</view>
- </view>
- </view>
- </view>
- <!-- 3、特殊风格loading加载弹窗 -> 四方块旋转 -->
- <view class="aui-loading aui-loading-squarefour" :class="{'aui-loading-squarefour-style-1': theme==1, 'aui-loading-squarefour-style-2': theme==2}" v-else-if="SHOW && type == 3">
- <view class="aui-mask" v-if="mask" @touchmove.stop.prevent></view>
- <view class="aui-loading-main" :style="{background: styles.background, zIndex: styles.zIndex}">
- <view class="aui-loading-animate">
- <view class="span1"></view>
- <view class="span2"></view>
- <view class="span3"></view>
- <view class="span4"></view>
- </view>
- <view class="aui-loading-msg" style="top: 40%;" v-if="msg" :style="{color: styles.color}">{{msg}}</view>
- </view>
- </view>
- <!-- 4、三平行四边形放大缩小(全屏首次加载过度动画) -->
- <view class="aui-loading aui-loading-dots" v-else-if="SHOW && type == 4">
- <view class="aui-mask" v-if="mask" @touchmove.stop.prevent></view>
- <view class="aui-loading-main">
- <view class="aui-loading-dot-items">
- <view class="aui-loading-dot-item dot_one"></view>
- <view class="aui-loading-dot-item dot_two"></view>
- <view class="aui-loading-dot-item dot_three"></view>
- </view>
- </view>
- </view>
- <!-- 5、三圆点背景过度(全屏首次加载过度动画) -->
- <view class="aui-loading aui-loading-dots-opacity" v-else-if="SHOW && type == 5">
- <view class="aui-mask" v-if="mask" @touchmove.stop.prevent></view>
- <view class="aui-loading-main">
- <view class="aui-loading-dot-items">
- <view class="aui-loading-dot-item dot_one"></view>
- <view class="aui-loading-dot-item dot_two"></view>
- <view class="aui-loading-dot-item dot_three"></view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- name: "aui-loading",
- props: {
- type: { //默认圆环风格(<1>、1:toast圆环风格,<2>、2:点击按钮后在按钮内显示加载动画) <3>、3:四方块水平方向旋转,
- type: Number,
- default: 1
- },
- mask: { //是否显示遮罩,默认false
- type: Boolean,
- default: true
- },
- direction: { //横向("row")或纵向("col")控制,默认纵向
- type: String,
- default: 'row'
- },
- theme: { //控制风格 type==3时生效
- type: Number,
- default: 1
- },
- styles: { //样式
- type: Object,
- default () {
- return {
- color: '',
- borderRadius: '',
- background: '',
- zIndex: ''
- };
- }
- },
- },
- data() {
- return {
- msg:'加载中...',
- SHOW: false, //是否显示
- };
- },
- created(){
- //console.log(this.styles);
- },
- methods:{
- //显示
- show(msg='加载中...'){
- var _this = this;
- _this.msg=msg
- return new Promise(function(resolve, reject){
- _this.SHOW = true;
- var Timer = setTimeout(function(){
- clearTimeout(Timer)
- _this.hide(); //隐藏loading
- },2000)
- resolve();
- });
- },
- showLoading(msg='加载中...'){
- var _this = this;
- _this.msg=msg
- return new Promise(function(resolve, reject){
- _this.SHOW = true;
- resolve();
- });
- },
- //隐藏
- hide(){
- var _this = this;
- return new Promise(function(resolve, reject){
- _this.SHOW = false;
- resolve();
- });
- },
- }
- }
- </script>
- <style>
- /* loading加载弹窗 */
- /* loading-ring 样式设置 */
- .aui-loading.aui-loading-ring{
- width: 100%;
- height: 100%;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 999;
- }
- .aui-loading.aui-loading-ring .aui-loading-main{
- width: auto;
- height: auto;
- min-width: 55px;
- min-height: 55px;
- background: rgba(0,0,0,.8);
- border-radius: 10px;
- box-shadow: 0 0 1px rgba(100,100,100,.5);
- padding: 15px;
- box-sizing: border-box;
- -ms-animation: aui-fade-in .1s ease-out forwards;
- -webkit-animation: aui-fade-in .1s ease-out forwards;
- animation: aui-fade-in .1s ease-out forwards;
- position: absolute;
- top: 40%;
- left: 50%;
- z-index: 999;
- -ms-transform: translate(-50%, -50%);
- -webkit-transform: translate(-50%, -50%);
- transform: translate(-50%, -50%);
- }
- .aui-loading.aui-loading-ring .aui-loading-animate{
- width: 25px;
- height: 25px;
- margin: 0 auto;
- border-radius: 50%;
- position: relative;
- z-index: 999;
- }
- .aui-loading.aui-loading-ring .aui-loading-msg{
- width: 100%;
- height: 17px;
- max-width: -webkit-calc(100vw - 40px);
- max-width: calc(100vw - 40px);
- line-height: 17px;
- position: relative;
- top: 5px;
- font-size: 13px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- color: #FFF;
- text-align: center;
- opacity: .8;
- }
- .aui-loading.aui-loading-ring .aui-loading-animate .span{
- width: -webkit-calc(100% - 6px);
- width: calc(100% - 6px);
- height: 2px;
- display: inline-block;
- border-radius: 2px;
- position: absolute;
- box-sizing: initial !important;
- top: -webkit-calc(50% - 1px);
- top: calc(50% - 1px);
- left: 0;
- opacity: 0.3;
- -ms-animation: load-button 0.6s ease infinite;
- -webkit-animation: load-button 0.6s ease infinite;
- animation: load-button 0.6s ease infinite;
- }
- .aui-loading.aui-loading-ring .aui-loading-animate .span:nth-child(1){
- border-left: 6px solid #FFF;
- -ms-transform: rotate(0deg);
- -webkit-transform: rotate(0deg);
- transform: rotate(0deg);
- -ms-animation-delay: 0.05s;
- -webkit-animation-delay: 0.05s;
- animation-delay: 0.05s;
- }
- .aui-loading.aui-loading-ring .aui-loading-animate .span:nth-child(2){
- border-left: 6px solid #FFF;
- -ms-transform: rotate(30deg);
- -webkit-transform: rotate(30deg);
- transform: rotate(30deg);
- -ms-animation-delay: 0.1s;
- -webkit-animation-delay: 0.1s;
- animation-delay: 0.1s;
- }
- .aui-loading.aui-loading-ring .aui-loading-animate .span:nth-child(3){
- border-left: 6px solid #FFF;
- -ms-transform: rotate(60deg);
- -webkit-transform: rotate(60deg);
- transform: rotate(60deg);
- -ms-animation-delay: 0.15s;
- -webkit-animation-delay: 0.15s;
- animation-delay: 0.15s;
- }
- .aui-loading.aui-loading-ring .aui-loading-animate .span:nth-child(4){
- border-left: 6px solid #FFF;
- -ms-transform: rotate(90deg);
- -webkit-transform: rotate(90deg);
- transform: rotate(90deg);
- -ms-animation-delay: 0.2s;
- -webkit-animation-delay: 0.2s;
- animation-delay: 0.2s;
- }
- .aui-loading.aui-loading-ring .aui-loading-animate .span:nth-child(5){
- border-left: 6px solid #FFF;
- -ms-transform: rotate(120deg);
- -webkit-transform: rotate(120deg);
- transform: rotate(120deg);
- -ms-animation-delay: 0.25s;
- -webkit-animation-delay: 0.25s;
- animation-delay: 0.25s;
- }
- .aui-loading.aui-loading-ring .aui-loading-animate .span:nth-child(6){
- border-left: 6px solid #FFF;
- -ms-transform: rotate(150deg);
- -webkit-transform: rotate(150deg);
- transform: rotate(150deg);
- -ms-animation-delay: 0.3s;
- -webkit-animation-delay: 0.3s;
- animation-delay: 0.3s;
- }
- .aui-loading.aui-loading-ring .aui-loading-animate .span:nth-child(7){
- border-right: 6px solid #FFF;
- -ms-transform: rotate(0deg);
- -webkit-transform: rotate(0deg);
- transform: rotate(0deg);
- -ms-animation-delay: 0.35s;
- -webkit-animation-delay: 0.35s;
- animation-delay: 0.35s;
- }
- .aui-loading.aui-loading-ring .aui-loading-animate .span:nth-child(8){
- border-right: 6px solid #FFF;
- -ms-transform: rotate(30deg);
- -webkit-transform: rotate(30deg);
- transform: rotate(30deg);
- -ms-animation-delay: 0.4s;
- -webkit-animation-delay: 0.4s;
- animation-delay: 0.4s;
- }
- .aui-loading.aui-loading-ring .aui-loading-animate .span:nth-child(9){
- border-right: 6px solid #FFF;
- -ms-transform: rotate(60deg);
- -webkit-transform: rotate(60deg);
- transform: rotate(60deg);
- -ms-animation-delay: 0.45s;
- -webkit-animation-delay: 0.45s;
- animation-delay: 0.45s;
- }
- .aui-loading.aui-loading-ring .aui-loading-animate .span:nth-child(10){
- border-right: 6px solid #FFF;
- -ms-transform: rotate(90deg);
- -webkit-transform: rotate(90deg);
- transform: rotate(90deg);
- -ms-animation-delay: 0.5s;
- -webkit-animation-delay: 0.5s;
- animation-delay: 0.5s;
- }
- .aui-loading.aui-loading-ring .aui-loading-animate .span:nth-child(11){
- border-right: 6px solid #FFF;
- -ms-transform: rotate(120deg);
- -webkit-transform: rotate(120deg);
- transform: rotate(120deg);
- -ms-animation-delay: 0.55s;
- -webkit-animation-delay: 0.55s;
- animation-delay: 0.55s;
- }
- .aui-loading.aui-loading-ring .aui-loading-animate .span:nth-child(12){
- border-right: 6px solid #FFF;
- -ms-transform: rotate(150deg);
- -webkit-transform: rotate(150deg);
- transform: rotate(150deg);
- -ms-animation-delay: 0.6s;
- -webkit-animation-delay: 0.6s;
- animation-delay: 0.6s;
- }
-
- .aui-loading.aui-loading-ring.aui-loading-ring-row .aui-loading-main{
- display: block;
- min-height: 40px;
- padding: 10px 15px;
- border-radius: 6px;
- }
- .aui-loading.aui-loading-ring.aui-loading-ring-row .aui-loading-animate{
- display: inline-block;
- vertical-align: top;
- }
- .aui-loading.aui-loading-ring.aui-loading-ring-row .aui-loading-msg{
- width: auto;
- height: 25px;
- line-height: 25px;
- top: 0;
- margin-left: 10px;
- display: inline-block;
- vertical-align: top;
- }
- /* loading-button 样式设置 */
- .aui-loading.aui-loading-button{
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- }
- .aui-loading.aui-loading-button .aui-loading-main{
- width: 100%;
- height: 100%;
- text-align: center;
- position: absolute;
- top: 0;
- left: 0;
- z-index: 996;
- background: #FFF;
- white-space: nowrap;
- -ms-animation: aui-fade-in .2s ease-out forwards;
- -webkit-animation: aui-fade-in .2s ease-out forwards;
- animation: aui-fade-in .2s ease-out forwards;
- }
- .aui-loading.aui-loading-button .aui-loading-warp{
- width: auto;
- height: auto;
- display: flex;
- position: absolute;
- top: 50%;
- left: 50%;
- -webkit-transform: translate(-50%, -50%);
- transform: translate(-50%, -50%);
- }
- .aui-loading.aui-loading-button .aui-loading-animate{
- width: 20px;
- height: 20px;
- display: inline-block;
- vertical-align: top;
- position: relative;
- }
- .aui-loading.aui-loading-button .aui-loading-msg{
- height: 20px;
- line-height: 20px;
- font-size: 13px;
- margin-left: 5px;
- display: inline-block;
- vertical-align: top;
- position: relative;
- top: 1px;
- }
- .aui-loading.aui-loading-button .aui-loading-animate .span{
- width: -webkit-calc(100% - 6px);
- width: calc(100% - 6px);
- height: 2px;
- display: inline-block;
- border-radius: 2px;
- box-sizing: initial !important;
- position: absolute;
- top: -webkit-calc(50% - 1px);
- top: calc(50% - 1px);
- left: 0;
- opacity: 0.3;
- -ms-animation: load-button 0.6s ease infinite;
- -webkit-animation: load-button 0.6s ease infinite;
- animation: load-button 0.6s ease infinite;
- }
- .aui-loading.aui-loading-button .aui-loading-animate .span:nth-child(1){
- border-left: 5px solid #909090;
- -ms-transform: rotate(0deg);
- -webkit-transform: rotate(0deg);
- transform: rotate(0deg);
- -ms-animation-delay: 0.05s;
- -webkit-animation-delay: 0.05s;
- animation-delay: 0.05s;
- }
- .aui-loading.aui-loading-button .aui-loading-animate .span:nth-child(2){
- border-left: 5px solid #909090;
- -ms-transform: rotate(30deg);
- -webkit-transform: rotate(30deg);
- transform: rotate(30deg);
- -ms-animation-delay: 0.1s;
- -webkit-animation-delay: 0.1s;
- animation-delay: 0.1s;
- }
- .aui-loading.aui-loading-button .aui-loading-animate .span:nth-child(3){
- border-left: 5px solid #909090;
- -ms-transform: rotate(60deg);
- -webkit-transform: rotate(60deg);
- transform: rotate(60deg);
- -ms-animation-delay: 0.15s;
- -webkit-animation-delay: 0.15s;
- animation-delay: 0.15s;
- }
- .aui-loading.aui-loading-button .aui-loading-animate .span:nth-child(4){
- border-left: 5px solid #909090;
- -ms-transform: rotate(90deg);
- -webkit-transform: rotate(90deg);
- transform: rotate(90deg);
- -ms-animation-delay: 0.2s;
- -webkit-animation-delay: 0.2s;
- animation-delay: 0.2s;
- }
- .aui-loading.aui-loading-button .aui-loading-animate .span:nth-child(5){
- border-left: 5px solid #909090;
- -ms-transform: rotate(120deg);
- -webkit-transform: rotate(120deg);
- transform: rotate(120deg);
- -ms-animation-delay: 0.25s;
- -webkit-animation-delay: 0.25s;
- animation-delay: 0.25s;
- }
- .aui-loading.aui-loading-button .aui-loading-animate .span:nth-child(6){
- border-left: 5px solid #909090;
- -ms-transform: rotate(150deg);
- -webkit-transform: rotate(150deg);
- transform: rotate(150deg);
- -ms-animation-delay: 0.3s;
- -webkit-animation-delay: 0.3s;
- animation-delay: 0.3s;
- }
- .aui-loading.aui-loading-button .aui-loading-animate .span:nth-child(7){
- border-right: 5px solid #909090;
- -ms-transform: rotate(0deg);
- -webkit-transform: rotate(0deg);
- transform: rotate(0deg);
- -ms-animation-delay: 0.35s;
- -webkit-animation-delay: 0.35s;
- animation-delay: 0.35s;
- }
- .aui-loading.aui-loading-button .aui-loading-animate .span:nth-child(8){
- border-right: 5px solid #909090;
- -ms-transform: rotate(30deg);
- -webkit-transform: rotate(30deg);
- transform: rotate(30deg);
- -ms-animation-delay: 0.4s;
- -webkit-animation-delay: 0.4s;
- animation-delay: 0.4s;
- }
- .aui-loading.aui-loading-button .aui-loading-animate .span:nth-child(9){
- border-right: 5px solid #909090;
- -ms-transform: rotate(60deg);
- -webkit-transform: rotate(60deg);
- transform: rotate(60deg);
- -ms-animation-delay: 0.45s;
- -webkit-animation-delay: 0.45s;
- animation-delay: 0.45s;
- }
- .aui-loading.aui-loading-button .aui-loading-animate .span:nth-child(10){
- border-right: 5px solid #909090;
- -ms-transform: rotate(90deg);
- -webkit-transform: rotate(90deg);
- transform: rotate(90deg);
- -ms-animation-delay: 0.5s;
- -webkit-animation-delay: 0.5s;
- animation-delay: 0.5s;
- }
- .aui-loading.aui-loading-button .aui-loading-animate .span:nth-child(11){
- border-right: 5px solid #909090;
- -ms-transform: rotate(120deg);
- -webkit-transform: rotate(120deg);
- transform: rotate(120deg);
- -ms-animation-delay: 0.55s;
- -webkit-animation-delay: 0.55s;
- animation-delay: 0.55s;
- }
- .aui-loading.aui-loading-button .aui-loading-animate .span:nth-child(12){
- border-right: 5px solid #909090;
- -ms-transform: rotate(150deg);
- -webkit-transform: rotate(150deg);
- transform: rotate(150deg);
- -ms-animation-delay: 0.6s;
- -webkit-animation-delay: 0.6s;
- animation-delay: 0.6s;
- }
- /* loading-squarefour 样式设置 */
- .aui-loading.aui-loading-squarefour{
- width: 100%;
- height: 100%;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 999;
- }
- .aui-loading.aui-loading-squarefour .aui-loading-main{
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- z-index: 996;
- background: #FFF;
- -ms-animation: aui-fade-in .2s ease-out forwards;
- -webkit-animation: aui-fade-in .2s ease-out forwards;
- animation: aui-fade-in .2s ease-out forwards;
- }
- .aui-loading.aui-loading-squarefour .aui-loading-animate{
- width: 30px;
- height: 30px;
- display: block;
- margin: auto;
- position: absolute;
- top: -webkit-calc(50% - 15px);
- top: calc(40% - 25px);
- left: -webkit-calc(50% - 15px);
- left: calc(50% - 15px);
- -ms-animation: aui-loading-squarefour-animate 1s infinite;
- -webkit-animation: aui-loading-squarefour-animate 1s infinite;
- animation: aui-loading-squarefour-animate 1s infinite;
- }
- .aui-loading.aui-loading-squarefour .aui-loading-animate view{
- width: 12px;
- height: 12px;
- display: block;
- border-radius: 2px;
- background: #2cb0b2;
- position: absolute;
- }
- .aui-loading.aui-loading-squarefour .aui-loading-animate .span1{
- background: #8BC34A;
- left: 0px;
- -ms-animation: aui-loading-square-span1-animate 2s linear 0s infinite normal;
- -webkit-animation: aui-loading-square-span1-animate 2s linear 0s infinite normal;
- animation: aui-loading-square-span1-animate 2s linear 0s infinite normal;
- }
- .aui-loading.aui-loading-squarefour .aui-loading-animate .span2{
- background: #F44336;
- right: 0;
- -ms-animation: aui-loading-square-span2-animate 2s linear 0s infinite normal;
- -webkit-animation: aui-loading-square-span2-animate 2s linear 0s infinite normal;
- animation: aui-loading-square-span2-animate 2s linear 0s infinite normal;
- }
- .aui-loading.aui-loading-squarefour .aui-loading-animate .span3{
- background: #FFB74D;
- bottom: 0;
- -ms-animation: aui-loading-square-span3-animate 2s linear 0s infinite normal;
- -webkit-animation: aui-loading-square-span3-animate 2s linear 0s infinite normal;
- animation: aui-loading-square-span3-animate 2s linear 0s infinite normal;
- }
- .aui-loading.aui-loading-squarefour .aui-loading-animate .span4{
- background: #82bcf9;
- right: 0;
- bottom: 0;
- -ms-animation: aui-loading-square-span4-animate 2s linear 0s infinite normal;
- -webkit-animation: aui-loading-square-span4-animate 2s linear 0s infinite normal;
- animation: aui-loading-square-span4-animate 2s linear 0s infinite normal;
- }
- .aui-loading.aui-loading-squarefour .aui-loading-msg{
- width: 100%;
- height: 50px;
- line-height: 60px;
- font-size: 13px;
- color: #909090;
- text-align: center;
- position: absolute;
- top: 50%;
- left: 0;
- }
- .aui-loading.aui-loading-squarefour.aui-loading-squarefour-style-2{
- z-index: 996;
- }
- .aui-loading.aui-loading-squarefour.aui-loading-squarefour-style-1{
- z-index: 999;
- }
- .aui-loading.aui-loading-squarefour.aui-loading-squarefour-style-1 .aui-loading-main{
- width: auto;
- height: auto;
- min-width: 54px;
- min-height: 54px;
- background: rgba(0,0,0,.8);
- border-radius: 10px;
- box-shadow: 0 0 1px rgba(100,100,100,.3) inset;
- padding: 15px;
- box-sizing: border-box;
- top: 50%;
- left: 50%;
- z-index: 999;
- -ms-transform: translate(-50%, -50%);
- -webkit-transform: translate(-50%, -50%);
- transform: translate(-50%, -50%);
- }
- .aui-loading.aui-loading-squarefour.aui-loading-squarefour-style-1 .aui-loading-main .aui-loading-animate{
- position: relative;
- top: 0;
- left: 0;
- }
- .aui-loading.aui-loading-squarefour.aui-loading-squarefour-style-1 .aui-loading-main .aui-loading-msg{
- height: 22px;
- line-height: 20px;
- padding: 0 10px;
- box-sizing: border-box;
- font-size: 14px;
- color: #FFF;
- opacity: 0.9;
- position: relative;
- top: 6px;
- left: 0;
- }
- /* 三平行四边形放大缩小动画放大缩小动画(全屏首次加载过度动画) */
- .aui-loading.aui-loading-dots{background-color: #FFF; height: 100%; width: 100%; position: fixed; z-index: 996; margin-top: 0px; top: 0px;}
- .aui-loading.aui-loading-dots .aui-loading-main{width: 100%;height: 100%;position: relative;}
- .aui-loading.aui-loading-dots .aui-loading-dot-items {position: absolute;left: 50%;top: 50%;height: 60px;width: 120px; text-align: center; margin-top: -30px;margin-left: -60px;}
- .aui-loading.aui-loading-dots .aui-loading-dot-item{width: 10px;height: 10px; background-color: #ec2b45; display: inline-block; margin-right: 6px; margin-top: 20px; border-radius: 2px; -webkit-transform: scale(1) skewX(-30deg); transform: scale(1) skewX(-30deg);}
- .aui-loading.aui-loading-dots .dot_one {background: #197DE0; -webkit-animation: dot_one 1.5s infinite; animation: dot_one 1.5s infinite;}
- .aui-loading.aui-loading-dots .dot_two {background: #2CB0B2; -webkit-animation: dot_two 1.5s infinite; animation: dot_two 1.5s infinite; -webkit-animation-delay: 0.2s; animation-delay: 0.2s;}
- .aui-loading.aui-loading-dots .dot_three {background: #4CD964; margin-right: 0; -webkit-animation: dot_three 1.5s infinite; animation: dot_three 1.5s infinite; -webkit-animation-delay: 0.4s; animation-delay: 0.4s;}
- /* 圆点背景过度动画-微信小程序效果(全屏首次加载过度动画) */
- .aui-loading.aui-loading-dots-opacity{background-color: #FFF; height: 100%; width: 100%; position: fixed; z-index: 996; margin-top: 0px; top: 0px;}
- .aui-loading.aui-loading-dots-opacity .aui-loading-main{width: 100%;height: 100%;position: relative;}
- .aui-loading.aui-loading-dots-opacity .aui-loading-dot-items {position: absolute;left: 50%;top: 50%;height: 60px;width: 80px; text-align: center; margin-top: -30px;margin-left: -40px;}
- .aui-loading.aui-loading-dots-opacity .aui-loading-dot-item{width: 9px;height: 9px; opacity: 1; background-color: #ec2b45; display: inline-block; margin-right: 8px;margin-top: 30px;-moz-border-radius: 50% 50% 50% 50%;-webkit-border-radius: 50% 50% 50% 50%;border-radius: 50% 50% 50% 50%;}
- .aui-loading.aui-loading-dots-opacity .dot_one {background: #197DE0;-webkit-animation: dot-opacity 1.5s infinite; animation: dot-opacity 1.5s infinite;}
- .aui-loading.aui-loading-dots-opacity .dot_two {background: #2CB0B2;-webkit-animation: dot-opacity 1.5s infinite; animation: dot-opacity 1.5s infinite; -webkit-animation-delay: 0.25s; animation-delay: 0.25s;}
- .aui-loading.aui-loading-dots-opacity .dot_three {background: #4CD964;margin-right: 0; -webkit-animation: dot-opacity 1.5s infinite; animation: dot-opacity 1.5s infinite; -webkit-animation-delay: 0.5s; animation-delay: 0.5s;}
- @-webkit-keyframes dot-opacity {
- 50% {opacity: 0.1; }
- }
- @keyframes dot-opacity {
- 50% {opacity: 0.1; }
- }
- @-webkit-keyframes dot_one {
- 75% {-webkit-transform: scale(0) skewX(-30deg); }
- }
- @keyframes dot_one {
- 75% {transform: scale(0) skewX(-30deg); -webkit-transform: scale(0) skewX(-30deg);}
- }
- @-webkit-keyframes dot_two {
- 75% {-webkit-transform: scale(0) skewX(-30deg); }
- }
- @keyframes dot_two {
- 75% {transform: scale(0) skewX(-30deg); -webkit-transform: scale(0) skewX(-30deg);}
- }
- @-webkit-keyframes dot_three {
- 75% {-webkit-transform: scale(0) skewX(-30deg); }
- }
- @keyframes dot_three {
- 75% {transform: scale(0) skewX(-30deg);-webkit-transform: scale(0) skewX(-30deg);}
- }
- /* loading加载弹窗 load-button 动画 */
- @-ms-keyframes load-button {
- 0% {opacity: 1;}
- 100% {opacity: 0.3;}
- }
- @-webkit-keyframes load-button {
- 0% {opacity: 1;}
- 100% {opacity: 0.3;}
- }
- @keyframes load-button {
- 0% {opacity: 1;}
- 100% {opacity: 0.3;}
- }
- /* loading加载弹窗 aui-loading-squarefour 动画 */
- @-ms-keyframes aui-loading-squarefour-animate{
- 0%{-ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg);}
- 100%{-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);}
- }
- @-webkit-keyframes aui-loading-squarefour-animate{
- 0%{-ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg);}
- 100%{-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);}
- }
- @keyframes aui-loading-squarefour-animate{
- 0%{-ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg);}
- 100%{-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);}
- }
-
- @-ms-keyframes aui-loading-square-span1-animate{
- 0%{-ms-transform: translate(0, 0); -webkit-transform: translate(0, 0); transform: translate(0, 0);}
- 25%{-ms-transform: translate(0, 18px); -webkit-transform: translate(0, 18px); transform: translate(0, 18px);}
- 50%{-ms-transform: translate(18px, 18px); -webkit-transform: translate(18px, 18px); transform: translate(18px, 18px);}
- 75%{-ms-transform: translate(18px, 0); -webkit-transform: translate(18px, 0); transform: translate(18px, 0);}
- }
- @-webkit-keyframes aui-loading-square-span1-animate{
- 0%{-ms-transform: translate(0, 0); -webkit-transform: translate(0, 0); transform: translate(0, 0);}
- 25%{-ms-transform: translate(0, 18px); -webkit-transform: translate(0, 18px); transform: translate(0, 18px);}
- 50%{-ms-transform: translate(18px, 18px); -webkit-transform: translate(18px, 18px); transform: translate(18px, 18px);}
- 75%{-ms-transform: translate(18px, 0); -webkit-transform: translate(18px, 0); transform: translate(18px, 0);}
- }
- @keyframes aui-loading-square-span1-animate{
- 0%{-ms-transform: translate(0, 0); -webkit-transform: translate(0, 0); transform: translate(0, 0);}
- 25%{-ms-transform: translate(0, 18px); -webkit-transform: translate(0, 18px); transform: translate(0, 18px);}
- 50%{-ms-transform: translate(18px, 18px); -webkit-transform: translate(18px, 18px); transform: translate(18px, 18px);}
- 75%{-ms-transform: translate(18px, 0); -webkit-transform: translate(18px, 0); transform: translate(18px, 0);}
- }
-
- @-ms-keyframes aui-loading-square-span2-animate{
- 0%{-ms-transform: translate(0, 0); -webkit-transform: translate(0, 0); transform: translate(0, 0);}
- 25%{-ms-transform: translate(-18px, 0); -webkit-transform: translate(-18px, 0); transform: translate(-18px, 0);}
- 50%{-ms-transform: translate(-18px, 18px); -webkit-transform: translate(-18px, 18px); transform: translate(-18px, 18px);}
- 75%{-ms-transform: translate(0, 18px); -webkit-transform: translate(0, 18px); transform: translate(0, 18px);}
- }
- @-webkit-keyframes aui-loading-square-span2-animate{
- 0%{-ms-transform: translate(0, 0); -webkit-transform: translate(0, 0); transform: translate(0, 0);}
- 25%{-ms-transform: translate(-18px, 0); -webkit-transform: translate(-18px, 0); transform: translate(-18px, 0);}
- 50%{-ms-transform: translate(-18px, 18px); -webkit-transform: translate(-18px, 18px); transform: translate(-18px, 18px);}
- 75%{-ms-transform: translate(0, 18px); -webkit-transform: translate(0, 18px); transform: translate(0, 18px);}
- }
- @keyframes aui-loading-square-span2-animate{
- 0%{-ms-transform: translate(0, 0); -webkit-transform: translate(0, 0); transform: translate(0, 0);}
- 25%{-ms-transform: translate(-18px, 0); -webkit-transform: translate(-18px, 0); transform: translate(-18px, 0);}
- 50%{-ms-transform: translate(-18px, 18px); -webkit-transform: translate(-18px, 18px); transform: translate(-18px, 18px);}
- 75%{-ms-transform: translate(0, 18px); -webkit-transform: translate(0, 18px); transform: translate(0, 18px);}
- }
- @-ms-keyframes aui-loading-square-span3-animate{
- 0%{-ms-transform: translate(0, 0); -webkit-transform: translate(0, 0); transform: translate(0, 0);}
- 25%{-ms-transform: translate(18px, 0); -webkit-transform: translate(18px, 0); transform: translate(18px, 0);}
- 50%{-ms-transform: translate(18px, -18px); -webkit-transform: translate(18px, -18px); transform: translate(18px, -18px);}
- 75%{-ms-transform: translate(0, -18px); -webkit-transform: translate(0, -18px); transform: translate(0, -18px);}
- }
- @-webkit-keyframes aui-loading-square-span3-animate{
- 0%{-ms-transform: translate(0, 0); -webkit-transform: translate(0, 0); transform: translate(0, 0);}
- 25%{-ms-transform: translate(18px, 0); -webkit-transform: translate(18px, 0); transform: translate(18px, 0);}
- 50%{-ms-transform: translate(18px, -18px); -webkit-transform: translate(18px, -18px); transform: translate(18px, -18px);}
- 75%{-ms-transform: translate(0, -18px); -webkit-transform: translate(0, -18px); transform: translate(0, -18px);}
- }
- @keyframes aui-loading-square-span3-animate{
- 0%{-ms-transform: translate(0, 0); -webkit-transform: translate(0, 0); transform: translate(0, 0);}
- 25%{-ms-transform: translate(18px, 0); -webkit-transform: translate(18px, 0); transform: translate(18px, 0);}
- 50%{-ms-transform: translate(18px, -18px); -webkit-transform: translate(18px, -18px); transform: translate(18px, -18px);}
- 75%{-ms-transform: translate(0, -18px); -webkit-transform: translate(0, -18px); transform: translate(0, -18px);}
- }
- @-ms-keyframes aui-loading-square-span4-animate{
- 0%{-ms-transform: translate(0, 0); -webkit-transform: translate(0, 0); transform: translate(0, 0);}
- 25%{-ms-transform: translate(0, -18px); -webkit-transform: translate(0, -18px); transform: translate(0, -18px);}
- 50%{-ms-transform: translate(-18px, -18px); -webkit-transform: translate(-18px, -18px); transform: translate(-18px, -18px);}
- 75%{-ms-transform: translate(-18px, 0); -webkit-transform: translate(-18px, 0); transform: translate(-18px, 0);}
- }
- @-webkit-keyframes aui-loading-square-span4-animate{
- 0%{-ms-transform: translate(0, 0); -webkit-transform: translate(0, 0); transform: translate(0, 0);}
- 25%{-ms-transform: translate(0, -18px); -webkit-transform: translate(0, -18px); transform: translate(0, -18px);}
- 50%{-ms-transform: translate(-18px, -18px); -webkit-transform: translate(-18px, -18px); transform: translate(-18px, -18px);}
- 75%{-ms-transform: translate(-18px, 0); -webkit-transform: translate(-18px, 0); transform: translate(-18px, 0);}
- }
- @keyframes aui-loading-square-span4-animate{
- 0%{-ms-transform: translate(0, 0); -webkit-transform: translate(0, 0); transform: translate(0, 0);}
- 25%{-ms-transform: translate(0, -18px); -webkit-transform: translate(0, -18px); transform: translate(0, -18px);}
- 50%{-ms-transform: translate(-18px, -18px); -webkit-transform: translate(-18px, -18px); transform: translate(-18px, -18px);}
- 75%{-ms-transform: translate(-18px, 0); -webkit-transform: translate(-18px, 0); transform: translate(-18px, 0);}
- }
- </style>
|