/* components/toast/index.wxss */ .overlay{ position: fixed; top:0; left:0; width:100%; height:100%; background-color: rgba(0, 0, 0, 0.7); z-index: 1000; } .toast{ background: #ebeae8; width: 80%; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); border-radius: 20rpx; text-align: center; padding: 8% 0; } .toast .icon{ width: 45%; } .toast-con text{ display: inline-block; width: 90%; margin: 0 auto; } .toast-footer button{ background: #38948f; margin-top: 40rpx; color: #fff; border-radius: 50rpx; font-size: 32rpx; font-weight: normal; }