增加公寓列表下拉刷新
This commit is contained in:
parent
b168bb21b1
commit
9a45b7f42b
@ -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();
|
||||
},
|
||||
|
@ -13,6 +13,5 @@
|
||||
"list-operations": "/template/listOperations/listOperations",
|
||||
"xin-head-swiper": "/template/xinHeadSwiper/xinHeadSwiper",
|
||||
"QRCodePop": "/template/QRCodePop/QRCodePop"
|
||||
},
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
}
|
@ -9,9 +9,7 @@
|
||||
|
||||
<template is="irenCouponReceive" data="{{ irentCouponBig:irentCouponBig,hideCoupon:hideCoupon,irenCouponReceive:irenCouponReceive }}"></template>
|
||||
<view class='irent-list-box'>
|
||||
|
||||
<view class="header-bj"></view>
|
||||
|
||||
<view id="list-header-search">
|
||||
<template is="list-header-search" data="{{ isNeedMap: isMapFindState }}"></template>
|
||||
</view>
|
||||
@ -32,7 +30,7 @@
|
||||
</view>
|
||||
|
||||
<view id="list-operations" class="list-operations {{ operationsTop ? 'list-operations-top' : '' }}" style="top: {{ screen_data.totalTopHeight }}px;">
|
||||
<list-operations tabTitle="品牌公寓" operationstype="student" money="{{ money }}" brands="{{ brands }}" screen_data="{{ screen_data }}" roomtype="{{ roomtype }}" roomlistings="{{ roomlistings }}" bindsubmit="submitOperations"></list-operations>
|
||||
<list-operations id="list-operations-components" tabTitle="品牌公寓" operationstype="student" money="{{ money }}" brands="{{ brands }}" screen_data="{{ screen_data }}" roomtype="{{ roomtype }}" roomlistings="{{ roomlistings }}" bindsubmit="submitOperations"></list-operations>
|
||||
</view>
|
||||
|
||||
<view class='house-list'>
|
||||
|
@ -15,7 +15,6 @@ Component({
|
||||
this.setData({
|
||||
conditionObj
|
||||
})
|
||||
// console.log("conditionObj", this.data.conditionObj);
|
||||
}
|
||||
},
|
||||
// roomtype: Object,
|
||||
|
Loading…
x
Reference in New Issue
Block a user