This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
weapp
/
C
Watch
8
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
66
Wiki
Activity
Browse Source
[onHide和onUnload的增加][修改]:onHide和onUnload的增加
tags/2.3.0
meo
6 years ago
parent
8eac199833
commit
b5996ec79b
3 changed files
with
12 additions
and
1 deletions
Split View
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
View File
@@ -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
View File
@@ -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
View File
@@ -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…
Cancel
Save