本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
註冊
登入
weapp
/
C
關注
8
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
66
Wiki
活動
瀏覽代碼
[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…
取消
儲存