| | |
| | | * 生命周期函数--监听页面加载 |
| | | */ |
| | | onLoad(options) { |
| | | this.bookExhibitionGet() |
| | | |
| | | this.keyProjectsGet(this.data.newPrice) |
| | | // this.setData({ |
| | | // 'product.value': '*', |
| | | // }); |
| | |
| | | }) |
| | | |
| | | |
| | | watch.setWatcher(this); |
| | | let that = this; |
| | | setTimeout(function () { |
| | | that.data.name = "测试watch变化了" |
| | | }, 500) |
| | | |
| | | // watch.setWatcher(this); |
| | | // let that = this; |
| | | // setTimeout(function () { |
| | | // that.data.name = "测试watch变化了" |
| | | // }, 500) |
| | | // console.log(11111); |
| | | }, |
| | | watch: { |
| | | name: function (newVal, oldVal) { |
| | |
| | | * 生命周期函数--监听页面显示 |
| | | */ |
| | | onShow() { |
| | | |
| | | this.bookExhibitionGet() |
| | | |
| | | this.keyProjectsGet(this.data.newPrice) |
| | | |
| | | |
| | | }, |
| | | |
| | | /** |
| | |
| | | this.bookExhibitionGet(newValue) |
| | | } |
| | | this.onLoad() |
| | | |
| | | }, |
| | | |
| | | // 重点项目 |