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
[onHide和onUnload的增加][修改]:onHide和onUnload的增加
tags/2.3.0
meo
hace 6 años
padre
8eac199833
commit
b5996ec79b
Se han
modificado 3 ficheros
con
12 adiciones
y
1 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+4
-1
pages/couponorder/detail/index.js
+4
-0
pages/orderquanma/index.js
+4
-0
pages/passCar/couponDetail/couponDetail.js
+ 4
- 1
pages/couponorder/detail/index.js
Ver fichero
@@ -20,7 +20,10 @@ Page({
showIf: false,
},
onUnload:function(){
console.log("onUnload");
let that = this;
clearInterval(that.data.setInter);
},
onHide:function(){
let that = this;
clearInterval(that.data.setInter);
},
+ 4
- 0
pages/orderquanma/index.js
Ver fichero
@@ -99,6 +99,10 @@ Page({
let that = this;
clearInterval(that.data.setInter);
},
onHide: function () {
let that = this;
clearInterval(that.data.setInter);
},
// onHide:function(){
// console.log(app.globalData.sight)
// wx.setScreenBrightness({
+ 4
- 0
pages/passCar/couponDetail/couponDetail.js
Ver fichero
@@ -17,6 +17,10 @@ Page({
let that = this;
clearInterval(that.data.setInter);
},
onHide: function () {
let that = this;
clearInterval(that.data.setInter);
},
onLoad: function (options) {
let that = this;
that.setData({
Escribir
Vista previa
Cargando…
Cancelar
Guardar