|
|
@@ -139,9 +139,6 @@ Page({
|
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
|
*/
|
|
|
onReady: function () {
|
|
|
- this.setData({
|
|
|
- cpnMine: this.selectComponent('#mine'),
|
|
|
- })
|
|
|
},
|
|
|
|
|
|
/** 轮播监听 */
|
|
|
@@ -293,11 +290,14 @@ Page({
|
|
|
activeTabIndex: activeTabIndex
|
|
|
})
|
|
|
// 黑洞
|
|
|
+ this.setData({
|
|
|
+ cpnMine: this.selectComponent('#mine'),
|
|
|
+ })
|
|
|
if (this.data.categoryOne.children[activeTabIndex - 1].id === 199) {
|
|
|
- this.data.cpnMine.show()
|
|
|
+ var _ = this.data.cpnMine && this.data.cpnMine.show()
|
|
|
return
|
|
|
} else {
|
|
|
- this.data.cpnMine.hide()
|
|
|
+ var _ = this.data.cpnMine && this.data.cpnMine.hide()
|
|
|
}
|
|
|
|
|
|
that.setData({
|
|
|
@@ -479,7 +479,7 @@ Page({
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- this.data.cpnMine.hide()
|
|
|
+ var _ = this.data.cpnMine && this.data.cpnMine.hide()
|
|
|
},
|
|
|
|
|
|
/**
|