This website works better with JavaScript.
Почетна
Преглед
Помоћ
Регистрација
Пријавите Се
weapp
/
C
Прати
8
Волим
0
Креирај огранак
0
Код
Дискусије
0
Захтеви за спајање
0
Издања
66
Вики
Activity
Преглед изворни кода
[onHide和onUnload的增加][修改]:onHide和onUnload的增加
tags/2.3.0
meo
пре 6 година
родитељ
8eac199833
комит
b5996ec79b
3 измењених фајлова
са
12 додато
и
1 уклоњено
Подељен поглед
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Прегледај датотеку
@@ -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
Прегледај датотеку
@@ -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
Прегледај датотеку
@@ -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({
Write
Preview
Loading…
Откажи
Сачувај