/*每个页面公共css */ .vue-ref { z-index: 999 !important; } .custom-loading { position: fixed; top: 0; left: 0; right: 0; bottom: 0; /* background: rgba(0, 0, 0, 0.5); */ display: flex; justify-content: center; align-items: center; z-index: 9999999; width: 100vw; height: 100vh; } .centerContent { width: 100px; height: 100px; display: flex; flex-direction: column; justify-content: center; align-items: center; /* background: rgba(0, 0, 0, 0.5); */ border-radius: 18rpx; box-sizing: border-box; padding: 16rpx; } .loading-icon { width: 60rpx; height: 60rpx; -webkit-animation: spinZ 3s linear infinite; animation: spinZ 3s linear infinite; /* 添加旋转动画 */ } @-webkit-keyframes spinZ { 0% { -webkit-transform: rotateY(0deg); transform: rotateY(0deg); /* 从 0 度开始 */ } 50% { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); /* 旋转到 360 度 */ } 100% { -webkit-transform: rotateY(0deg); transform: rotateY(0deg); /* 旋转到 360 度 */ } } @keyframes spinZ { 0% { -webkit-transform: rotateY(0deg); transform: rotateY(0deg); /* 从 0 度开始 */ } 50% { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); /* 旋转到 360 度 */ } 100% { -webkit-transform: rotateY(0deg); transform: rotateY(0deg); /* 旋转到 360 度 */ } } .loading-text { color: white; margin-top: 10px; font-size: 28rpx; }