Sfoglia il codice sorgente

小程序隐藏计时器停止

tags/富茂链客4.1.0
刘晖 6 anni fa
parent
commit
ce20747c7c
3 ha cambiato i file con 10 aggiunte e 4 eliminazioni
  1. +3
    -1
      pages/joinFrDpell/index.js
  2. +4
    -2
      pages/spellDetail/index.js
  3. +3
    -1
      pages/spellGroup/mySpellGroup/index.js

+ 3
- 1
pages/joinFrDpell/index.js Vedi File

@@ -478,7 +478,9 @@ Page({
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () { onHide: function () {
this.setData({
showTime: false
})
}, },


/** /**


+ 4
- 2
pages/spellDetail/index.js Vedi File

@@ -221,7 +221,7 @@ Page({
*/ */
onShow: function () { onShow: function () {
this.setData({ this.setData({
showTime: false
showTime: true
}) })
if (this.data.data != null&&this.data.data.status ==10) { if (this.data.data != null&&this.data.data.status ==10) {
this.countdown() this.countdown()
@@ -232,7 +232,9 @@ Page({
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () { onHide: function () {

this.setData({
showTime: false
})
}, },


/** /**


+ 3
- 1
pages/spellGroup/mySpellGroup/index.js Vedi File

@@ -461,7 +461,9 @@ Page({
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () { onHide: function () {
this.setData({
showTime: false
})
}, },


/** /**


Caricamento…
Annulla
Salva