|
@@ -15,7 +15,7 @@
|
|
|
<view class="customer-list-wrap">
|
|
|
<view v-if="customerList.length == 0" class="empty-wrap"><u-empty mode="list" text="暂无相关客户"></u-empty></view>
|
|
|
<view v-for="(item, index) in customerList" class="customer-item" :key="index">
|
|
|
- <view class="info">
|
|
|
+ <view class="info" @click="pageTo('/pages/agent/recommend/detail?id=' + item.id)">
|
|
|
<view class="customer">
|
|
|
<view class="relname">
|
|
|
{{ item.name }}
|
|
@@ -33,16 +33,16 @@
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
<u-icon class="u-m-r-5" name="home" size="22"></u-icon>
|
|
|
- {{ item.propertyInfo.name }}
|
|
|
+ {{ item.estate_name }}
|
|
|
</view>
|
|
|
- <view class="item">
|
|
|
+ <!-- <view class="item">
|
|
|
<u-icon class="u-m-r-5" name="rmb" size="22"></u-icon>
|
|
|
预期最高收益{{ item.commission }}元
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
<view class="data-wrap">
|
|
|
- <view class="date u-m-t-5">报备时间:xxx</view>
|
|
|
- <view class="date">保护期截止:xxxx</view>
|
|
|
+ <view class="date u-m-t-5">报备时间:{{item.create_at}}</view>
|
|
|
+ <view class="date">保护期截止:{{item.lock_at}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="tool-wrap">
|
|
@@ -87,7 +87,7 @@
|
|
|
</view>
|
|
|
<view class="popup-footer" style="position: absolute;">
|
|
|
<u-button size="medium" @click="searchPopupShow = false">取消</u-button>
|
|
|
- <u-button size="medium" type="primary" @click="search()">搜索</u-button>
|
|
|
+ <u-button size="medium" type="primary" @click="searchHandle()">搜索</u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</u-popup>
|
|
@@ -212,14 +212,14 @@ export default {
|
|
|
name: '时间远到近',
|
|
|
value: 1
|
|
|
},
|
|
|
- {
|
|
|
- name: '预期佣金高到底',
|
|
|
- value: 2
|
|
|
- },
|
|
|
- {
|
|
|
- name: '预期佣金低到高',
|
|
|
- value: 3
|
|
|
- }
|
|
|
+ // {
|
|
|
+ // name: '预期佣金高到底',
|
|
|
+ // value: 2
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // name: '预期佣金低到高',
|
|
|
+ // value: 3
|
|
|
+ // }
|
|
|
]
|
|
|
}
|
|
|
],
|
|
@@ -297,47 +297,32 @@ export default {
|
|
|
},
|
|
|
onReachBottom() {
|
|
|
if (that.loadmore.status == 'nomore') return;
|
|
|
- that.loadmore.currnetPage++;
|
|
|
- // xxxx.callFunction({
|
|
|
- // url: 'client/agent/kh/getRecommendLogList',
|
|
|
- // title: '请求中...',
|
|
|
- // data: {
|
|
|
- // pageIndex: that.loadmore.currnetPage,
|
|
|
- // filterHours: that.filterHours,
|
|
|
- // filterPropertyId: that.filterPropertyId,
|
|
|
- // filterVerifyStatus: that.filterVerifyStatus,
|
|
|
- // filterStepStatus: that.filterStepStatus,
|
|
|
- // orderMethod: that.orderMethod,
|
|
|
- // }
|
|
|
- // })
|
|
|
- // .then(res => {
|
|
|
- // if (res.list.length < 10) {
|
|
|
- // that.loadmore.status = 'nomore';
|
|
|
- // }
|
|
|
- // that.customerList = that.customerList.concat(res.list);
|
|
|
- // })
|
|
|
- // .catch(res => {
|
|
|
- // xxxx.toast(res.msg);
|
|
|
- // });
|
|
|
+ that.loadmore.currnetPage++
|
|
|
+ this.getDataList()
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
// 防止频繁刷新
|
|
|
},
|
|
|
methods: {
|
|
|
- getDataList () {
|
|
|
+ getDataList (params, bc) {
|
|
|
const that = this
|
|
|
uni.api.estate.apireportlist({
|
|
|
- page: that.loadmore.currnetPage
|
|
|
+ page: that.loadmore.currnetPage,
|
|
|
+ ...params,
|
|
|
}).then(res => {
|
|
|
const list = res.list || []
|
|
|
if (list.length < 10) {
|
|
|
that.loadmore.status = 'nomore';
|
|
|
}
|
|
|
if (res.page = 1) {
|
|
|
+ if (list.length == 0) {
|
|
|
+ uni.toast('无搜索结果', 'none');
|
|
|
+ }
|
|
|
that.customerList = [...list]
|
|
|
} else {
|
|
|
that.customerList = that.customerList.concat(list)
|
|
|
}
|
|
|
+ if (bc) bc()
|
|
|
})
|
|
|
},
|
|
|
customBack() {
|
|
@@ -360,26 +345,11 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- search() {
|
|
|
- // xxxxx.callFunction({
|
|
|
- // url: 'client/agent/kh/getRecommendLogList',
|
|
|
- // title: '搜索中...',
|
|
|
- // data: {
|
|
|
- // pageIndex: that.loadmore.currnetPage,
|
|
|
- // filterHours: that.filterHours,
|
|
|
- // filterPropertyId: that.filterPropertyId,
|
|
|
- // filterVerifyStatus: that.filterVerifyStatus,
|
|
|
- // filterStepStatus: that.filterStepStatus,
|
|
|
- // orderMethod: that.orderMethod,
|
|
|
- // searchFormData: that.searchFormData
|
|
|
- // }
|
|
|
- // }).then(res => {
|
|
|
- // if (res.list.length == 0) {
|
|
|
- // uni.toast('无搜索结果', 'none');
|
|
|
- // }
|
|
|
- // that.searchPopupShow = false;
|
|
|
- // that.customerList = res.list;
|
|
|
- // });
|
|
|
+ searchHandle() {
|
|
|
+ that.loadmore.currnetPage = 1
|
|
|
+ this.getDataList(this.searchFormData, () => {
|
|
|
+ this.searchPopupShow = false
|
|
|
+ })
|
|
|
},
|
|
|
// 筛选
|
|
|
confirmFilter(e) {
|