This commit is contained in:
尹吉欢
2018-04-18 14:52:45 +08:00
parent a5f94b084e
commit ce0d47eaa2
2 changed files with 4 additions and 12 deletions
+3 -3
View File
@@ -1290,11 +1290,11 @@ input[type=range]::-webkit-slider-thumb {
.rangeNote span.span07{float:right;}
/* 启动页 */
.contentStart{background:#21a5fe;}
.contentStart .time{width:65px;height:30px;line-height:1.6rem;text-align:center;font-size:0.7rem;color:#fff;background:rgba(0,0,0,0.3);border-radius:1.25rem;display:block;position:absolute;top:0.75rem;right:0.75rem;}
.contentStart #time{font-size:0.7rem;vertical-align:middle;}
.contentStart .startImg01{width:30%;margin:0 auto;margin-top:45%;}
.contentStart .startImg02{width:179px;height:44px;background:url(../images/startImg02.png) no-repeat center center;text-align:center;position:absolute;bottom:4rem;left:50%;margin-left:-89.5px;}
.contentStart p{width:100%;font-size:0.55rem;color:#D7D7D7;text-align:center;position:absolute;bottom:0.5rem;}
.contentStart img{width:70%;margin:0 auto;margin-top:30%;}
.contentStart #test_btn{background:#fff;color:#21a5fe;width:10rem;margin:0 auto;margin-top:1.5rem;}
/* 引导页 */
.swiper-container{width:100%;height:100%;background:#fff;z-index:10000;}
+1 -9
View File
@@ -11,7 +11,6 @@ axios.interceptors.request.use(function (config) {
return Promise.reject(error);
});
var showTimeOutTime = 0;
// 添加响应拦截器
axios.interceptors.response.use(function (response) {
try {
@@ -22,14 +21,7 @@ axios.interceptors.response.use(function (response) {
return response;
}, function (error) {
try {
if (error.toString().indexOf('timeout') > -1) {
var curTime = new Date();
if (curTime - showTimeOutTime > 5000) {
plus.nativeUI.alert("请求超时");
showTimeOutTime = new Date();
}
plus.nativeUI.closeWaiting();
}else if(error=="Error: Network Error"){
if(error=="Error: Network Error" || error.toString().indexOf('timeout') > -1){
if(plus.webview.getWebviewById('error.html')==null){
clicked('error.html',true,false,{},{},function(){
window.location.reload();