123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- /* ==================
- 加载
- ==================== */
- .load {
- display: block;
- line-height: 3em;
- text-align: center;
- }
- .load::before {
- font-family: "icon";
- display: inline-block;
- margin-right: 6rpx;
- }
- .load.loading::before, .load.loading-none::before {
- content: "\e67a";
- animation: icon-spin 2s infinite linear;
- }
- .load.loading::after {
- content: "加载中...";
- }
- .load.over::before {
- content: "\e64a";
- }
- .load.over::after {
- content: "没有更多了";
- }
- .load.error::before {
- content: "\e658";
- }
- /*
- .load.error::after {
- content: "加载失败";
- }*/
- .load.notexist::before {
- content: "\e658";
- }
- .load.notexist::after {
- content: "数据不存在或者已删除";
- }
- .load.load-icon::before {
- font-size: 32rpx;
- }
- .load.load-icon::after {
- display: none;
- }
- .load.load-icon.over {
- display: none;
- }
- .load.load-modal {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 140rpx;
- left: 0;
- margin: auto;
- width: 260rpx;
- height: 260rpx;
- background-color: var(--white);
- border-radius: 10rpx;
- box-shadow: 0 0 0rpx 2000rpx rgba(0, 0, 0, 0.5);
- display: flex;
- align-items: center;
- flex-direction: column;
- justify-content: center;
- font-size: 28rpx;
- z-index: 9999;
- line-height: 2.4em;
- }
- .load.load-modal [class*="icon-"] {
- font-size: 60rpx;
- }
- .load.load-modal image {
- width: 70rpx;
- height: 70rpx;
- }
- .load.load-modal::after {
- content: "";
- position: absolute;
- background-color: var(--white);
- border-radius: 50%;
- width: 200rpx;
- height: 200rpx;
- font-size: 10px;
- border-top: 6rpx solid rgba(0, 0, 0, 0.05);
- border-right: 6rpx solid rgba(0, 0, 0, 0.05);
- border-bottom: 6rpx solid rgba(0, 0, 0, 0.05);
- border-left: 6rpx solid var(--orange);
- animation: icon-spin 1s infinite linear;
- z-index: -1;
- }
- .load-progress {
- pointer-events: none;
- top: 0;
- position: fixed;
- width: 100%;
- left: 0;
- z-index: 2000;
- }
- .load-progress.hide {
- display: none;
- }
- .load-progress .load-progress-bar {
- position: relative;
- width: 100%;
- height: 4rpx;
- overflow: hidden;
- transition: all 200ms ease 0s;
- }
- .load-progress .load-progress-spinner {
- position: absolute;
- top: 10rpx;
- right: 10rpx;
- z-index: 2000;
- display: block;
- }
- .load-progress .load-progress-spinner::after {
- content: "";
- display: block;
- width: 24rpx;
- height: 24rpx;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- border: solid 4rpx transparent;
- border-top-color: inherit;
- border-left-color: inherit;
- border-radius: 50%;
- -webkit-animation: load-progress-spinner 0.4s linear infinite;
- animation: load-progress-spinner 0.4s linear infinite;
- }
- @-webkit-keyframes load-progress-spinner {
- 0% {
- -webkit-transform: rotate(0);
- transform: rotate(0);
- }
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
- }
- @keyframes load-progress-spinner {
- 0% {
- -webkit-transform: rotate(0);
- transform: rotate(0);
- }
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
- }
|