1. 在 public/css 文件里 新建 loading.min.css 文件 写入如下代码:
#i-loading{background:#fff;left:0;top:0;right:0;bottom:0;position:fixed;z-index:9999;transition:all .5s ease-out}.i-loading-out{opacity:0;}#i-loading .loading-center{position:absolute;left:50%;top:50%;height:150px;width:150px;margin-top:-75px;margin-left:-75px;-ms-transform:rotate(45deg);-webkit-transform:rotate(45deg);transform:rotate(45deg)}#i-loading i{width:20px;height:20px;background-color:#2593fb;position:absolute;left:65px;top:65px}#i-loading i:nth-child(2n+0){margin-right:0}#i-loading i:nth-child(1){-webkit-animation:item_one 2s infinite;animation:item_one 2s infinite;-webkit-animation-delay:.2s;animation-delay:.2s}#i-loading i:nth-child(2){-webkit-animation:item_two 2s infinite;animation:item_two 2s infinite;-webkit-animation-delay:.3s;animation-delay:.3s}#i-loading i:nth-child(3){-webkit-animation:item_three 2s infinite;animation:item_three 2s infinite;-webkit-ani