diff --git a/pages/irentList/irentList.js b/pages/irentList/irentList.js
index e3e4ceb..c5b7753 100644
--- a/pages/irentList/irentList.js
+++ b/pages/irentList/irentList.js
@@ -230,13 +230,34 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
+ this.data.school = ''
+ this.data.brands.value = ''
+ this.data.roomlistings.value = ''
+ this.data.roomtype.value = ''
this.setData({
listPage: 1,
page: {
next_page: 1
},
+ school: '',
+ brands: this.data.brands,
+ roomlistings: this.data.roomlistings,
+ roomtype: this.data.roomtype,
+ money: {
+ rent_min: 0,
+ rent_max: ''
+ },
data: []
})
+
+ const listOperations = this.selectComponent('#list-operations-components')
+ const conditionObj = listOperations.data.conditionObj || {}
+ for (const key in conditionObj) {
+ if (conditionObj[key]?.valueText) conditionObj[key].valueText = ''
+ }
+ listOperations.setData({
+ conditionObj
+ })
this.getList()
wx.stopPullDownRefresh();
},
diff --git a/pages/irentList/irentList.json b/pages/irentList/irentList.json
index 36e1d34..d1822b8 100644
--- a/pages/irentList/irentList.json
+++ b/pages/irentList/irentList.json
@@ -13,6 +13,5 @@
"list-operations": "/template/listOperations/listOperations",
"xin-head-swiper": "/template/xinHeadSwiper/xinHeadSwiper",
"QRCodePop": "/template/QRCodePop/QRCodePop"
- },
- "enablePullDownRefresh": false
+ }
}
\ No newline at end of file
diff --git a/pages/irentList/irentList.wxml b/pages/irentList/irentList.wxml
index efc2581..fbfd8a6 100644
--- a/pages/irentList/irentList.wxml
+++ b/pages/irentList/irentList.wxml
@@ -9,9 +9,7 @@
-
-
@@ -32,7 +30,7 @@
-
+
diff --git a/template/listOperations/listOperations.js b/template/listOperations/listOperations.js
index 7befb4f..0ee94ec 100644
--- a/template/listOperations/listOperations.js
+++ b/template/listOperations/listOperations.js
@@ -15,7 +15,6 @@ Component({
this.setData({
conditionObj
})
- // console.log("conditionObj", this.data.conditionObj);
}
},
// roomtype: Object,