|
@@ -42,9 +42,17 @@ Page({
|
|
|
this.storeBindings.destroyStoreBindings()
|
|
|
},
|
|
|
loadMore() {
|
|
|
- this.getData(getHotrecommendList, {
|
|
|
- grade: this.data.userInfo.grade
|
|
|
- })
|
|
|
+ console.log(this.data.currentType, 'zzz');
|
|
|
+ if (this.data.currentType == '1') {
|
|
|
+ this.getData(getHotrecommendList, {
|
|
|
+ grade: this.data.userInfo.grade
|
|
|
+ })
|
|
|
+ } else if (this.data.currentType == '2') {
|
|
|
+ this.getData(getHotrecommendList, {
|
|
|
+ grade: 'PRESCHOOL'
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
onReachBottom() {
|
|
|
console.log('触底');
|
|
@@ -57,6 +65,7 @@ Page({
|
|
|
this.setData({
|
|
|
currentType: target.dataset.type
|
|
|
})
|
|
|
+ this.resetData()
|
|
|
}
|
|
|
},
|
|
|
|