|
@@ -20,7 +20,7 @@ export default class Index extends Component {
|
20
|
20
|
floor: '',
|
21
|
21
|
recordId: null
|
22
|
22
|
}
|
23
|
|
- componentWillMount() {
|
|
23
|
+ componentWillMount () {
|
24
|
24
|
savePoint({
|
25
|
25
|
event: 'list',
|
26
|
26
|
eventType: 'agent',
|
|
@@ -35,15 +35,15 @@ export default class Index extends Component {
|
35
|
35
|
}
|
36
|
36
|
|
37
|
37
|
|
38
|
|
- componentWillUnmount() {
|
|
38
|
+ componentWillUnmount () {
|
39
|
39
|
const { recordId } = this.state
|
40
|
40
|
recordId && updatePoint(recordId)
|
41
|
41
|
}
|
42
|
|
- componentDidMount() {
|
|
42
|
+ componentDidMount () {
|
43
|
43
|
this.loadList()
|
44
|
44
|
}
|
45
|
45
|
//获取楼盘列表
|
46
|
|
- loadGetFloor() {
|
|
46
|
+ loadGetFloor () {
|
47
|
47
|
const params = {
|
48
|
48
|
pageNumber: 1,
|
49
|
49
|
pageSize: 50,
|
|
@@ -55,7 +55,7 @@ export default class Index extends Component {
|
55
|
55
|
})
|
56
|
56
|
})
|
57
|
57
|
}
|
58
|
|
- loadList() {
|
|
58
|
+ loadList () {
|
59
|
59
|
var that = this;
|
60
|
60
|
const params = {
|
61
|
61
|
pageNumber: 1,
|
|
@@ -71,19 +71,25 @@ export default class Index extends Component {
|
71
|
71
|
})
|
72
|
72
|
}
|
73
|
73
|
|
74
|
|
- formatDate(value) {
|
|
74
|
+ formatDate (value) {
|
75
|
75
|
return dayjs(value).format('YYYY-MM-DD')
|
76
|
76
|
}
|
77
|
|
- navigateTo(id) {
|
|
77
|
+ navigateTo (id) {
|
78
|
78
|
Taro.navigateTo({ url: `/pages/agent/progress/index?customerId=${id}` })
|
79
|
79
|
}
|
80
|
|
- getName(dict, id) {
|
|
80
|
+ getName (dict, id) {
|
81
|
81
|
dict = dict.records || []
|
82
|
82
|
// let floorName = (dict.filter(({ buildingId: target }) => id === target)[0] || {}).name
|
83
|
83
|
return (dict.filter(({ buildingId: target }) => id === target)[0] || {}).buildingName
|
84
|
84
|
|
85
|
85
|
}
|
86
|
|
- render() {
|
|
86
|
+
|
|
87
|
+ toRecomonedPage () {
|
|
88
|
+ Taro.navigateTo({
|
|
89
|
+ url: `/pages/agent/recommend/index`
|
|
90
|
+ })
|
|
91
|
+ }
|
|
92
|
+ render () {
|
87
|
93
|
const { list, status, floorList } = this.state
|
88
|
94
|
return (
|
89
|
95
|
<View className='myClient'>
|
|
@@ -113,7 +119,7 @@ export default class Index extends Component {
|
113
|
119
|
{
|
114
|
120
|
list.map((item, index) => {
|
115
|
121
|
return (
|
116
|
|
- <View className='client__list' key={index+'client'} onClick={this.navigateTo.bind(this, item.customerId)}>
|
|
122
|
+ <View className='client__list' key={index + 'client'} onClick={this.navigateTo.bind(this, item.customerId)}>
|
117
|
123
|
<Image className='bg' src={item.verifyStatus == 2 ? require('@assets/person/card1.png') : require('@assets/person/card2.png')}></Image>
|
118
|
124
|
<View className='client'>
|
119
|
125
|
<View className='client__status2'>
|
|
@@ -145,6 +151,11 @@ export default class Index extends Component {
|
145
|
151
|
</View>
|
146
|
152
|
}
|
147
|
153
|
|
|
154
|
+ {/* <View className='recommend' onClick={this.toRecomonedPage}>123</View> */}
|
|
155
|
+ <View className="recommend" onClick={this.toRecomonedPage} >
|
|
156
|
+ <Image src={require('@assets/tuijiankehu.png')} className='home-img'></Image>
|
|
157
|
+ <Text className="text">推荐</Text>
|
|
158
|
+ </View>
|
148
|
159
|
</View>
|
149
|
160
|
);
|
150
|
161
|
}
|