logs.wxml
{{showView?‘Click To Check IdleReason’:‘Click To Check MTStatus’}}
logs.js
Page({
data: {
showView: true
},
onLoad: function (options) {
// 生命周期函数–监听页面加载
showView: (options.showView == “true” ? true : false)
}
, onChangeShowState: function () {
var that = this;
that.setData({
showView: (!that.data.showView)
})
},
})
logs.wxss
.bright789_view_hide{
display: none;
}
.bright789_view_show{
display: block;
}