Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Registro
Iniciar sesión
weapp
/
C
Seguir
8
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Lanzamientos
66
Wiki
Actividad
Explorar el Código
网络超时加载优化01
tags/2.2.9
海洋之声
hace 6 años
padre
d24463a089
commit
441136ff37
Se han
modificado 3 ficheros
con
9 adiciones
y
3 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+1
-1
app.json
+7
-0
pages/index/index.js
+1
-2
utils/HttpBasics.js
+ 1
- 1
app.json
Ver fichero
@@ -65,7 +65,7 @@
"navigationBarTextStyle": "white"
},
"networkTimeout": {
"request": 1000
0
,
"request": 1000,
"downloadFile": 10000
},
"debug": false
+ 7
- 0
pages/index/index.js
Ver fichero
@@ -111,6 +111,13 @@ Page({
title: weapNote.firstpage.title
})
})
.catch(err => {
console.log(err);
that.setData({
loading: false,
loadingtext: "网络异常,请检查您的网络设置"
})
});
},
onShow:function(){
this.setData({
+ 1
- 2
utils/HttpBasics.js
Ver fichero
@@ -50,8 +50,7 @@ class HttpBasics {
fail: err => {
// wx.hideLoading();
reject(err);
},
complete: res => {}
}
});
});
}
Escribir
Vista previa
Cargando…
Cancelar
Guardar