Browse Source

recommend

xujing 5 years ago
parent
commit
8c4feada19

BIN
src/assets/index/encyclopedia-icon.png View File


BIN
src/assets/index/forward.png View File


BIN
src/assets/index/inspection.png View File


BIN
src/assets/index/location.png View File


BIN
src/assets/index/logo.png View File


BIN
src/assets/index/mall-icon.png View File


BIN
src/assets/index/map-icon.png View File


BIN
src/assets/index/map.png View File


BIN
src/assets/index/recommend-icon.png View File


BIN
src/assets/index/search.png View File


BIN
src/assets/index/share.png View File


BIN
src/assets/zixun.png View File


+ 19
- 15
src/pages/agent/client/index.js View File

5
 import emptyImg from '@/assets/empty.png'
5
 import emptyImg from '@/assets/empty.png'
6
 import dayjs from 'dayjs'
6
 import dayjs from 'dayjs'
7
 import { savePoint, updatePoint } from '@/services/common'
7
 import { savePoint, updatePoint } from '@/services/common'
8
+import { connect } from '@tarojs/redux'
9
+@connect(
10
+  state => ({ ...state.project, ...state.city }))
8
 export default class Index extends Component {
11
 export default class Index extends Component {
9
 
12
 
10
   config = {
13
   config = {
20
     floor: '',
23
     floor: '',
21
     recordId: null
24
     recordId: null
22
   }
25
   }
23
-  componentWillMount () {
26
+  componentWillMount() {
24
     savePoint({
27
     savePoint({
25
       event: 'list',
28
       event: 'list',
26
       eventType: 'agent',
29
       eventType: 'agent',
35
   }
38
   }
36
 
39
 
37
 
40
 
38
-  componentWillUnmount () {
41
+  componentWillUnmount() {
39
     const { recordId } = this.state
42
     const { recordId } = this.state
40
     recordId && updatePoint(recordId)
43
     recordId && updatePoint(recordId)
41
   }
44
   }
42
-  componentDidMount () {
45
+  componentDidMount() {
43
     this.loadList()
46
     this.loadList()
44
   }
47
   }
45
   //获取楼盘列表
48
   //获取楼盘列表
46
-  loadGetFloor () {
49
+  loadGetFloor() {
47
     const params = {
50
     const params = {
48
       pageNumber: 1,
51
       pageNumber: 1,
49
       pageSize: 50,
52
       pageSize: 50,
55
       })
58
       })
56
     })
59
     })
57
   }
60
   }
58
-  loadList () {
61
+  loadList() {
59
     var that = this;
62
     var that = this;
60
     const params = {
63
     const params = {
61
       pageNumber: 1,
64
       pageNumber: 1,
71
     })
74
     })
72
   }
75
   }
73
 
76
 
74
-  formatDate (value) {
77
+  formatDate(value) {
75
     return dayjs(value).format('YYYY-MM-DD')
78
     return dayjs(value).format('YYYY-MM-DD')
76
   }
79
   }
77
-  navigateTo (id) {
80
+  navigateTo(id) {
78
     Taro.navigateTo({ url: `/pages/agent/progress/index?customerId=${id}` })
81
     Taro.navigateTo({ url: `/pages/agent/progress/index?customerId=${id}` })
79
   }
82
   }
80
-  getName (dict, id) {
83
+  getName(dict, id) {
81
     dict = dict.records || []
84
     dict = dict.records || []
82
     // let floorName = (dict.filter(({ buildingId: target }) => id === target)[0] || {}).name
85
     // let floorName = (dict.filter(({ buildingId: target }) => id === target)[0] || {}).name
83
     return (dict.filter(({ buildingId: target }) => id === target)[0] || {}).buildingName
86
     return (dict.filter(({ buildingId: target }) => id === target)[0] || {}).buildingName
84
 
87
 
85
   }
88
   }
86
 
89
 
87
-  toRecomonedPage () {
90
+  toRecomonedPage() {
91
+    console.log(this.props, "this.props")
88
     Taro.navigateTo({
92
     Taro.navigateTo({
89
-      url: `/pages/agent/recommend/index`
93
+      url: `/pages/agent/recommend/index?type=index&cityId=` + this.props.curCity.id
90
     })
94
     })
91
   }
95
   }
92
-  render () {
96
+  render() {
93
     const { list, status, floorList } = this.state
97
     const { list, status, floorList } = this.state
94
     return (
98
     return (
95
       <View className='myClient'>
99
       <View className='myClient'>
152
         }
156
         }
153
 
157
 
154
         {/* <View className='recommend' onClick={this.toRecomonedPage}>123</View> */}
158
         {/* <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>
159
+        <View className="recommend" onClick={this.toRecomonedPage}  >
160
+          <Image src={require('@/assets/tuijiankehu.png')} className='home-img'></Image>
161
+          <Text className="text">推荐</Text>
162
+        </View>
159
       </View>
163
       </View>
160
     );
164
     );
161
   }
165
   }

+ 1
- 1
src/pages/agent/recommend/index.js View File

11
 @connect(({ user, card, project }) => ({ ...user, ...card, ...project }))
11
 @connect(({ user, card, project }) => ({ ...user, ...card, ...project }))
12
 export default class Index extends Component {
12
 export default class Index extends Component {
13
   config = {
13
   config = {
14
-    navigationBarTitleText: '新增客户'
14
+    navigationBarTitleText: '推荐客户'
15
   }
15
   }
16
   state = {
16
   state = {
17
     name: '',//客户姓名 
17
     name: '',//客户姓名 

+ 1
- 1
src/pages/card/fans/index.js View File

135
           <View>
135
           <View>
136
             {list.map(item =>
136
             {list.map(item =>
137
               <FansItem key={item.uvId} data={item} />)}
137
               <FansItem key={item.uvId} data={item} />)}
138
-            {list.length >= 50 && <View style="text-align:center;line-height:120rpx;font-size:24rpx;color:#999"> 仅展示最近50条围观记录</View>}
138
+            {list.length > 50 && <View style="text-align:center;line-height:120rpx;font-size:24rpx;color:#999"> 仅展示最近50条围观记录</View>}
139
           </View>
139
           </View>
140
           : <EmptyPage text="暂无围观记录哦~" />}
140
           : <EmptyPage text="暂无围观记录哦~" />}
141
 
141