周立森 5 лет назад
Родитель
Сommit
263af942c7

+ 2
- 2
config/dev.js Просмотреть файл

@@ -9,8 +9,8 @@ module.exports = {
9 9
     WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10 10
     // HOST: '"https://lt.pawoma.cn"',
11 11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
12
-    // HOST: '"http://192.168.0.72:8080"',
13
-    // WSS_HOST: '"ws://192.168.0.72:8080"',
12
+    HOST: '"http://192.168.0.84:8080"',
13
+    WSS_HOST: '"ws://192.168.0.84:8080"',
14 14
   },
15 15
   weapp: {},
16 16
   h5: {}

Двоичные данные
src/assets/icons/baozhang.png Просмотреть файл


Двоичные данные
src/assets/icons/fuwu.png Просмотреть файл


Двоичные данные
src/assets/icons/jiedu.png Просмотреть файл


Двоичные данные
src/assets/icons/zixun.png Просмотреть файл


+ 1
- 0
src/constants/api.js Просмотреть файл

@@ -179,3 +179,4 @@ export const API_FOLLOW_LIST = resolvePath('taCustomerFollowUpRecord')
179 179
 export const API_SEX_INFO = resolvePath('genderStatistic')
180 180
 export const API_ECHERTS_DAILY = resolvePath('customerStatisticDaily')
181 181
 export const API_ECHERTS_MONTH = resolvePath('customerStatisticMonthly')
182
+export const API_BUILDING_TYPE = resolvePath('getByBuildingIdSelectBuildingProjectType')

+ 11
- 8
src/pages/activity/detail/assemble.js Просмотреть файл

@@ -402,15 +402,18 @@ export default class Detail extends Component {
402 402
               phone: person.tel || person.phone,
403 403
               avatarurl: person.avatarurl,
404 404
             }).then(res => {
405
-              this.setState({
406
-                recordDetail: res.taShareRecord,
407
-                recordId: res.taShareRecord.recordId,
408
-                memberList: res.shareChildRecordList || [],
409
-                isStarter: true,
410
-                groupState: res.taShareRecord.status,
411
-              }, () => cb && cb())
405
+              console.log(res,'888888')
406
+              if(res){
407
+                this.setState({
408
+                  recordDetail: res.taShareRecord,
409
+                  recordId: res.taShareRecord.recordId,
410
+                  memberList: res.shareChildRecordList || [],
411
+                  isStarter: true,
412
+                  groupState: res.taShareRecord.status,
413
+                }, () => cb && cb())
414
+              }
412 415
             }).catch(err => {
413
-              console.log('err:', err)
416
+              console.log(err,'11111111111111')
414 417
               Taro.showToast({
415 418
                 title: '发起失败: ' + err.message,
416 419
                 icon: 'none'

+ 4
- 4
src/pages/agent/recommend/index.js Просмотреть файл

@@ -246,10 +246,10 @@ export default class Index extends Component {
246 246
       this.Alert("请选择意向楼盘");
247 247
       return false;
248 248
     }
249
-    if (adviser == "") {
250
-      this.Alert("请选择置业顾问");
251
-      return false;
252
-    }
249
+    // if (adviser == "") {
250
+    //   this.Alert("请选择置业顾问");
251
+    //   return false;
252
+    // }
253 253
     // if (date == "请选择") {
254 254
     //   this.Alert("请选择预约到访时间");
255 255
     //   return false;

+ 31
- 35
src/pages/person/customerAnalysis/analysis.js Просмотреть файл

@@ -25,15 +25,7 @@ export default class analysis extends Taro.Component {
25 25
     recordId: undefined, // 埋点ID
26 26
     sexInfo: [],
27 27
     checkedWhich: 0,
28
-    chartInfo: [
29
-      // { name: '周一', value: '26' },
30
-      // { name: '周二', value: '84' },
31
-      // { name: '周三', value: '107' },
32
-      // { name: '周四', value: '93' },
33
-      // { name: '周五', value: '127' },
34
-      // { name: '周六', value: '64' },
35
-      // { name: '周日', value: '94' },
36
-    ],
28
+    chartInfo: [],
37 29
     chartInfo2: [],
38 30
     chartInfo3: [],
39 31
   }
@@ -50,37 +42,39 @@ export default class analysis extends Taro.Component {
50 42
     if (value == '0') {
51 43
       querySexInfo('new').then(res => {
52 44
         this.setState({
53
-          sexInfo: res.slice(0,3) || []
45
+          sexInfo: res.slice(0, 3) || []
54 46
         })
55 47
       })
56 48
       getEchartDailyInfo('new').then(res => {
49
+        const arr = res.reverse()
57 50
         this.setState({
58
-          chartInfo: res.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum }))
51
+          chartInfo: arr.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum }))
59 52
         })
60 53
       })
61 54
 
62 55
     } else if (value == '1') {
63 56
       querySexInfo('follow').then(res => {
64 57
         this.setState({
65
-          sexInfo: res.slice(0,3) || []
58
+          sexInfo: res.slice(0, 3) || []
66 59
         })
67 60
       })
68 61
       getEchartDailyInfo('follow').then(res => {
69 62
 
70
-        console.log(res.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum })), "5555*-----------------555555")
63
+        const arr2 = res.reverse()
71 64
         this.setState({
72
-          chartInfo2: res.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum }))
65
+          chartInfo2: arr2.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum }))
73 66
         })
74 67
       })
75 68
     } else {
76 69
       querySexInfo('visite').then(res => {
77 70
         this.setState({
78
-          sexInfo: res.slice(0,3) || []
71
+          sexInfo: res.slice(0, 3) || []
79 72
         })
80 73
       })
81 74
       getEchartDailyInfo('visite').then(res => {
75
+        const arr3 = res.reverse()
82 76
         this.setState({
83
-          chartInfo3: res.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum }))
77
+          chartInfo3: arr3.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum }))
84 78
         })
85 79
       })
86 80
     }
@@ -94,12 +88,14 @@ export default class analysis extends Taro.Component {
94 88
   componentDidMount() {
95 89
     querySexInfo('new').then(res => {
96 90
       this.setState({
97
-        sexInfo: res.slice(0,3) || []
91
+        sexInfo: res.slice(0, 3) || []
98 92
       })
99 93
     })
94
+    this.changeDailyMonth(0)
100 95
     getEchartDailyInfo('new').then(res => {
96
+      const arr = res.reverse()
101 97
       this.setState({
102
-        chartInfo: res.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum }))
98
+        chartInfo: arr.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum }))
103 99
       })
104 100
     })
105 101
   }
@@ -110,41 +106,46 @@ export default class analysis extends Taro.Component {
110 106
     if (inx == 0) {
111 107
       if (params == 'new') {
112 108
         getEchartDailyInfo(params).then(res => {
109
+          const arr = res.reverse()
113 110
           this.setState({
114
-            chartInfo: res.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum })) || []
111
+            chartInfo: arr.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum })) || []
115 112
           })
116 113
         })
117 114
       } else if (params == 'follow') {
118 115
         getEchartDailyInfo(params).then(res => {
116
+          const arr2 = res.reverse()
119 117
           this.setState({
120
-            chartInfo2: res.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum })) || []
118
+            chartInfo2: arr2.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum })) || []
121 119
           })
122 120
         })
123 121
       } else {
124 122
         getEchartDailyInfo(params).then(res => {
123
+          const arr3 = res.reverse()
125 124
           this.setState({
126
-            chartInfo3: res.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum })) || []
125
+            chartInfo3: arr3.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum })) || []
127 126
           })
128 127
         })
129 128
       }
130 129
     } else {
131 130
       if (params == 'new') {
132 131
         getEchartMonthInfo(params).then(res => {
132
+          const arr = res.reverse()
133 133
           this.setState({
134
-            chartInfo: res.map(x => ({ name: `${x.month.substr(4)}月`, value: x.customerNum })) || []
134
+            chartInfo: arr.map(x => ({ name: `${x.month.substr(4)}月`, value: x.customerNum })) || []
135 135
           })
136 136
         })
137 137
       } else if (params == 'follow') {
138
+        const arr2 = res.reverse()
138 139
         getEchartMonthInfo(params).then(res => {
139 140
           this.setState({
140
-            chartInfo2: res.map(x => ({ name: `${x.month.substr(4)}月`, value: x.customerNum })) || []
141
+            chartInfo2: arr2.map(x => ({ name: `${x.month.substr(4)}月`, value: x.customerNum })) || []
141 142
           })
142 143
         })
143 144
       } else {
144 145
         getEchartMonthInfo(params).then(res => {
145
-
146
+          const arr3 = res.reverse()
146 147
           this.setState({
147
-            chartInfo3: res.map(x => ({ name: `${x.month.substr(4)}月`, value: x.customerNum })) || []
148
+            chartInfo3: arr3.map(x => ({ name: `${x.month.substr(4)}月`, value: x.customerNum })) || []
148 149
           })
149 150
         })
150 151
       }
@@ -163,7 +164,7 @@ export default class analysis extends Taro.Component {
163 164
 
164 165
     return (
165 166
       <View>
166
-        <AtTabs className="tab-bar" current={current} tabList={tabList} onClick={this.handleClick.bind(this)} swipeable="false">
167
+        <AtTabs className="tab-bar" current={current} tabList={tabList} onClick={this.handleClick.bind(this)} swipeable={false}>
167 168
           <AtTabsPane current={current} index={0} >
168 169
             <View>
169 170
               <View style="height:40rpx;position: relative;margin-top:20rpx">
@@ -179,10 +180,7 @@ export default class analysis extends Taro.Component {
179 180
               {
180 181
                 chartInfo.length &&
181 182
 
182
-
183
-                // <View style="width:100vw;height:530rpx;position: relative;">
184 183
                 <LineChart source={chartInfo} />
185
-                // </View>
186 184
 
187 185
               }
188 186
               {
@@ -224,9 +222,9 @@ export default class analysis extends Taro.Component {
224 222
                 </View>
225 223
               </View>
226 224
               {chartInfo2.length &&
227
-                <View style="width:100vw;height:530rpx;position: relative;">
228
-                  <LineChart source={chartInfo2} />
229
-                </View>
225
+
226
+                <LineChart source={chartInfo2} />
227
+
230 228
               }
231 229
               {
232 230
                 !chartInfo2.length &&
@@ -267,9 +265,7 @@ export default class analysis extends Taro.Component {
267 265
               </View>
268 266
               {
269 267
                 chartInfo3.length &&
270
-                <View style="width:100vw;height:530rpx;position: relative;">
271
-                  <LineChart source={chartInfo3} />
272
-                </View>
268
+                <LineChart source={chartInfo3} />
273 269
               }
274 270
               {
275 271
                 !chartInfo3.length &&

+ 1
- 1
src/pages/person/customerAnalysis/index.js Просмотреть файл

@@ -62,7 +62,7 @@ export default class customer extends Taro.Component {
62 62
     const tabList = [{ title: '客户分析' }, { title: '我的客户' }]
63 63
     const { customerNum, current } = this.state
64 64
     return (
65
-      <AtTabs className="tab-box" current={current} tabList={tabList} onClick={this.handleClick.bind(this)}>
65
+      <AtTabs className="tab-box" current={current} tabList={tabList} onClick={this.handleClick.bind(this)} swipeable={false}>
66 66
         <AtTabsPane current={current} index={0} >
67 67
           <View >
68 68
             {

+ 4
- 1
src/pages/person/customerAnalysis/index.scss Просмотреть файл

@@ -164,7 +164,10 @@
164 164
     left:320px;
165 165
     display: flex;
166 166
     align-items: center;
167
-    max-width: 200px;
167
+    .text{
168
+      max-width: 300px;
169
+      @include text-ellipsis;
170
+    }
168 171
   }
169 172
   .user__left__phone{
170 173
     font-size:32px;

+ 10
- 6
src/pages/person/customerAnalysis/myCustomer.js Просмотреть файл

@@ -3,7 +3,7 @@ import { AtTabs, AtTabsPane } from 'taro-ui'
3 3
 import ListView from '@components/ListView'
4 4
 import "taro-ui/dist/style/components/tabs.scss"
5 5
 import { savePoint, updatePoint } from '@services/common'
6
-import { getCustomerDetail, getVisitRecord, getActivityList, getFollowRecord, addFollowRecord, commitCustomerInfo } from '@services/person'
6
+import { getCustomerDetail, getVisitRecord, getActivityList, getFollowRecord, addFollowRecord, commitCustomerInfo,getBuildingType } from '@services/person'
7 7
 import { connect } from '@tarojs/redux'
8 8
 import './index.scss'
9 9
 import ActivityItem from './item'
@@ -29,7 +29,7 @@ export default class myCustomer extends Taro.Component {
29 29
     baseVisible: false,
30 30
     followValue: '', //跟进内容
31 31
     desc: '', //客户描述
32
-    selector: ['高层', '别墅', '公寓'],
32
+    selector: [],
33 33
     sexSelector: ['男', '女'],
34 34
     customerDetail: {},
35 35
     followRecord: [],
@@ -184,7 +184,7 @@ export default class myCustomer extends Taro.Component {
184 184
       followVisible: true,
185 185
     })
186 186
   }
187
-  addFollowRecord
187
+
188 188
   followSaveBtn() {
189 189
     if (this.state.followValue == "") {
190 190
       Taro.showToast({
@@ -258,9 +258,13 @@ export default class myCustomer extends Taro.Component {
258 258
     )
259 259
   }
260 260
   perfectInformation() {
261
+    const {customerDetail} = this.state
261 262
     this.setState({
262 263
       baseVisible: true,
263
-      baseInfo: this.state.customerDetail,
264
+      baseInfo: customerDetail,
265
+    })
266
+    getBuildingType(customerDetail.buildingId).then(res=>{
267
+      console.log(res,"1111111111")
264 268
     })
265 269
   }
266 270
   // 保存
@@ -450,7 +454,7 @@ export default class myCustomer extends Taro.Component {
450 454
           <Image className="bg" src={getThumbnail('https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/images/shop/background.jpg')} ></Image>
451 455
           <Image className="user__left__headimg" src={customerDetail.picture || require('@assets/default-avatar.png')} />
452 456
           <View className='user__left__name'>
453
-            {customerDetail.name}
457
+            <View className="text">{customerDetail.name}的数据哈酒好多次客户方</View>
454 458
             {
455 459
               customerDetail.sex == '1' && <Image style="width:36rpx;height:38rpx;margin-left:10rpx" src={maleImg} />
456 460
             }
@@ -547,7 +551,7 @@ export default class myCustomer extends Taro.Component {
547 551
                 <View className="list">
548 552
                   {followRecord.length && followRecord.map(item => (
549 553
                     <View key={item.followUpRecordId + 'follow'}>
550
-                      <View style=" display:flex;justify-content: space-between;align-items: center;color: #333;font-size: 16px; margin-bottom:20rpx;">
554
+                      <View style=" display:flex;justify-content: space-between;align-items: center;color: #333;font-size: 34rpx; margin-bottom:24rpx;">
551 555
                         <View style=" display: flex;align-items: center;"><View style="width:8px;height:8px;margin-right:20rpx;display:inline-block;background:rgba(246,182,29,1);border-radius: 50%;"></View>{item.recordType}</View>
552 556
                         <View classNam="time" style=" font-size: 26rpx;color: #999;">{dayjs(item.createDate).format('YYYY年MM月DD日 HH:mm:ss') || ' '}</View>
553 557
                       </View>

+ 4
- 1
src/pages/project/detail/Around/Pannel.js Просмотреть файл

@@ -5,13 +5,16 @@ import './style.scss'
5 5
 const posIcon = require('@assets/icons/amap/position.png')
6 6
 
7 7
 export default function Pannel(props) {
8
+  console.log(props.dataset,"props.datasetprops.datasetprops.datasetprops.dataset")
8 9
   const { data = [], manualData = [] } = props.dataset || {}
9 10
   const activeKey = props.active
10 11
 
12
+  const ty = Object.prototype.toString
13
+  
11 14
   return (
12 15
     <View className="around-pannel">
13 16
       {
14
-        data.map((item, index) => {
17
+        (ty.call(data) === '[object String]' ? JSON.parse(data) : []).map((item, index) => {
15 18
           const { id, name, distance } = item || {}
16 19
           const dist = distance >= 1000 ? `${Number(distance / 1000).toFixed(1)}km` : `${distance}m`
17 20
           const active = activeKey === id

+ 4
- 2
src/pages/project/detail/Around/index.js Просмотреть файл

@@ -7,6 +7,7 @@ import './style.scss'
7 7
 
8 8
 export default function Around(props) {
9 9
   const detail = props.building || {}
10
+  console.log(detail,"detaildetaildetaildetail")
10 11
   const [lat, lng] = (detail.coordinate || '').split(',')
11 12
   const poiDatas = detail.mapJson ? JSON.parse(detail.mapJson) : []
12 13
 
@@ -22,10 +23,11 @@ export default function Around(props) {
22 23
     }
23 24
   })
24 25
 
26
+  
25 27
   // 所有的 markers
26 28
   const markersList = dataList.map((item) => {
27
-    
28
-    return (item.data || []).map((it) => {
29
+    const mapJson = JSON.parse(item.data) 
30
+    return (mapJson || []).map((it) => {
29 31
       const [longitude, latitude] = it.location.split(',')
30 32
 
31 33
       return {

+ 64
- 45
src/pages/project/detail/index.js Просмотреть файл

@@ -58,7 +58,7 @@ export default class Index extends Component {
58 58
     videoPlayShow: 'flex',
59 59
   }
60 60
 
61
-  componentWillMount () {
61
+  componentWillMount() {
62 62
     // const { id = '78c3dd489791dc1d29472fa344b08c45' } = this.$router.params
63 63
 
64 64
     ready.queue(() => {
@@ -92,12 +92,12 @@ export default class Index extends Component {
92 92
     })
93 93
   }
94 94
 
95
-  componentWillUnmount () {
95
+  componentWillUnmount() {
96 96
     const { recordId } = this.state
97 97
     recordId && updatePoint(recordId)
98 98
   }
99 99
 
100
-  loadHelpGroupList () {
100
+  loadHelpGroupList() {
101 101
     const { buildingId } = this.state
102 102
 
103 103
     queryHelpGroup({ buildingId: buildingId }).then(res => {
@@ -119,7 +119,7 @@ export default class Index extends Component {
119 119
     )
120 120
   }
121 121
 
122
-  loadDetail () {
122
+  loadDetail() {
123 123
     const { buildingId } = this.state
124 124
     const { dispatchProjectDetail } = this.props
125 125
     this.setState({
@@ -147,7 +147,7 @@ export default class Index extends Component {
147 147
     })
148 148
   }
149 149
 
150
-  loadActivityData () {
150
+  loadActivityData() {
151 151
     const { buildingId } = this.state
152 152
     const payload = { pageSize: 999, pageNumber: 1, buildingId }
153 153
     queryActivityList(payload).then(res => {
@@ -157,7 +157,7 @@ export default class Index extends Component {
157 157
     })
158 158
   }
159 159
 
160
-  loadNewsData () {
160
+  loadNewsData() {
161 161
     const { buildingId } = this.state
162 162
     const payload = { pageSize: 2, pageNumber: 1, buildingId }
163 163
     queryNewsList(payload).then(res => {
@@ -167,11 +167,11 @@ export default class Index extends Component {
167 167
     })
168 168
   }
169 169
 
170
-  navigateTo (url) {
170
+  navigateTo(url) {
171 171
     Taro.navigateTo({ url: url })
172 172
   }
173 173
   // 海报预览图
174
-  previewImage (arr) {
174
+  previewImage(arr) {
175 175
     // console.log('arr:' + arr)
176 176
     if (arr[0].length > 1) {
177 177
       Taro.previewImage({
@@ -198,7 +198,7 @@ export default class Index extends Component {
198 198
     })
199 199
   }
200 200
 
201
-  openMap () {
201
+  openMap() {
202 202
     const {
203 203
       buildingName,
204 204
       address,
@@ -225,12 +225,12 @@ export default class Index extends Component {
225 225
     })
226 226
   }
227 227
 
228
-  toViewAlbum () {
228
+  toViewAlbum() {
229 229
     const { buildingId } = this.state
230 230
     this.navigateTo(`/pages/project/album/index?id=${buildingId}`)
231 231
   }
232 232
 
233
-  onViewFans () {
233
+  onViewFans() {
234 234
     const { buildingId } = this.state
235 235
     this.navigateTo('/pages/card/fans/index?type=item&id=' + buildingId)
236 236
   }
@@ -259,7 +259,7 @@ export default class Index extends Component {
259 259
     }
260 260
   }
261 261
 
262
-  getPhoneNumber (e, item) {
262
+  getPhoneNumber(e, item) {
263 263
     getUserPhone(e, (phoneNumber) => {
264 264
       const { userInfo: { person: { personId, nickname, name } } } = this.props
265 265
       Taro.navigateTo({
@@ -268,7 +268,7 @@ export default class Index extends Component {
268 268
     })
269 269
   }
270 270
 
271
-  getPosterData () {
271
+  getPosterData() {
272 272
     return new Promise(resolve => {
273 273
       const { posterData } = this.state
274 274
       if (posterData.qrcode) {
@@ -339,14 +339,14 @@ export default class Index extends Component {
339 339
     })
340 340
   }
341 341
 
342
-  handleTelClick (item, e) {
342
+  handleTelClick(item, e) {
343 343
     e.stopPropagation()
344 344
     Taro.makePhoneCall({
345 345
       phoneNumber: item.phone
346 346
     })
347 347
   }
348 348
 
349
-  handleChatClick (item, e) {
349
+  handleChatClick(item, e) {
350 350
     e.stopPropagation()
351 351
     const { userInfo: { person: { personId, nickname, name } } } = this.props
352 352
     Taro.navigateTo({
@@ -354,24 +354,24 @@ export default class Index extends Component {
354 354
     })
355 355
   }
356 356
 
357
-  handleConsuItemClick (item) {
357
+  handleConsuItemClick(item) {
358 358
     Taro.navigateTo({
359 359
       url: `/pages/card/index?id=${item.id}`
360 360
     })
361 361
   }
362 362
 
363
-  handleMoreClick () {
363
+  handleMoreClick() {
364 364
     // App.zhuge.track('查看置业顾问列表')
365 365
     Taro.navigateTo({
366 366
       url: `/pages/card/list/index?buildingId=${this.state.buildingId}`
367 367
     })
368 368
   }
369 369
 
370
-  handleStopPropagation (e) {
370
+  handleStopPropagation(e) {
371 371
     e.stopPropagation()
372 372
   }
373 373
 
374
-  toRecomonedPage () {
374
+  toRecomonedPage() {
375 375
     const {
376 376
       userInfo: { person: { personType } }
377 377
     } = this.props
@@ -387,31 +387,31 @@ export default class Index extends Component {
387 387
     }
388 388
   }
389 389
 
390
-  toHome () {
390
+  toHome() {
391 391
     Taro.switchTab({
392 392
       url: `/pages/project/index`
393 393
     })
394 394
   }
395 395
 
396
-  HandleCircumTabClick (id) {
396
+  HandleCircumTabClick(id) {
397 397
     this.setState({
398 398
       curTab: id
399 399
     })
400 400
   }
401 401
 
402
-  handleNewsMoreClick () {
402
+  handleNewsMoreClick() {
403 403
     Taro.navigateTo({
404 404
       url: `/pages/news/index?buildingId=` + this.state.buildingId
405 405
     })
406 406
   }
407 407
 
408
-  handNewsItemClick (id) {
408
+  handNewsItemClick(id) {
409 409
     Taro.navigateTo({
410 410
       url: '/pages/news/detail/index?id=' + id
411 411
     })
412 412
   }
413 413
 
414
-  handleActivityMoreClick () {
414
+  handleActivityMoreClick() {
415 415
     Taro.navigateTo({
416 416
       url: `/pages/activity/index?buildingId=` + this.state.buildingId
417 417
     })
@@ -423,14 +423,14 @@ export default class Index extends Component {
423 423
     })
424 424
   }
425 425
 
426
-  handlePreviewHxImage (current, urls) {
426
+  handlePreviewHxImage(current, urls) {
427 427
     Taro.previewImage({
428 428
       current,
429 429
       urls
430 430
     })
431 431
   }
432 432
 
433
-  handleFavor () {
433
+  handleFavor() {
434 434
     const { buildingId, isSaved } = this.state
435 435
     if (isSaved) {
436 436
       cancelFavorProject(buildingId).then(res => {
@@ -460,18 +460,18 @@ export default class Index extends Component {
460 460
       console.log('活动项目收藏')
461 461
     })
462 462
   }
463
-  handleToolsClick () {
463
+  handleToolsClick() {
464 464
     Taro.navigateTo({
465 465
       url: `/pages/toolKit/index`
466 466
     })
467 467
   }
468
-  moreFloor () {
468
+  moreFloor() {
469 469
     Taro.navigateTo({
470 470
       url: `/pages/project/floor/index`
471 471
     })
472 472
   }
473 473
 
474
-  renderBottomMenu () {
474
+  renderBottomMenu() {
475 475
     const { userInfo: { person: { personType } } } = this.props
476 476
     const { posterShow } = this.state
477 477
     return (
@@ -506,14 +506,14 @@ export default class Index extends Component {
506 506
     )
507 507
   }
508 508
 
509
-  previewHouseImage (current, urls) {
509
+  previewHouseImage(current, urls) {
510 510
     Taro.previewImage({
511 511
       current,
512 512
       urls
513 513
     })
514 514
   }
515 515
 
516
-  renderBuildingProjectTypeList () {
516
+  renderBuildingProjectTypeList() {
517 517
     const { statusOpts } = this.state
518 518
     const { projectDetail: { buildingProjectType = [], status, marketStatus } } = this.props
519 519
     return (
@@ -573,7 +573,7 @@ export default class Index extends Component {
573 573
   }
574 574
 
575 575
 
576
-  renderPhotoAlbum () {
576
+  renderPhotoAlbum() {
577 577
     const { projectDetail: { buildingApartment } } = this.props
578 578
     const list = buildingApartment.filter(item => item.apartmentType === 'photo')
579 579
     // const imgList = list.reduce((prev, cur) => {
@@ -633,7 +633,7 @@ export default class Index extends Component {
633 633
       </Block>
634 634
     )
635 635
   }
636
-  rendercircum () {
636
+  rendercircum() {
637 637
     const building = {
638 638
       ...this.props.projectDetail
639 639
     }
@@ -650,7 +650,7 @@ export default class Index extends Component {
650 650
     )
651 651
   }
652 652
 
653
-  renderConsuler () {
653
+  renderConsuler() {
654 654
     const { userInfo: { person: { phone } } } = this.props
655 655
     const { projectDetail: { consultants = [] } } = this.props
656 656
     return (
@@ -659,11 +659,30 @@ export default class Index extends Component {
659 659
           consultants.length > 0 && (
660 660
             <View className="section counselor">
661 661
               <View className="section-head">
662
-                <Text className="section-head__title">推荐经纪人</Text>
662
+                <Text className="section-head__title">置业顾问</Text>
663 663
                 <View className="section-head__more" onClick={() => { this.handleMoreClick() }}>
664 664
                   更多<Text className="iconfont icon-more"></Text>
665 665
                 </View>
666 666
               </View>
667
+              <View style="display:flex;align-items:center;justify-content:space-between;margin-top:30rpx">
668
+
669
+                <View style="display:flex;align-items:center;font-size: 26rpx;color: #999;">
670
+                  <Image style="width:30rpx;height:30rpx;margin-right:10rpx" src={require('@assets/icons/baozhang.png')} />
671
+                  官方保障
672
+                </View>
673
+                <View style="display:flex;align-items:center;font-size: 26rpx;color: #999;">
674
+                  <Image style="width:30rpx;height:30rpx;margin-right:10rpx" src={require('@assets/icons/zixun.png')} />
675
+                  免费咨询
676
+                </View>
677
+                <View style="display:flex;align-items:center;font-size: 26rpx;color: #999;">
678
+                  <Image style="width:30rpx;height:30rpx;margin-right:10rpx" src={require('@assets/icons/jiedu.png')} />
679
+                  户型解读
680
+                </View>
681
+                <View style="display:flex;align-items:center;font-size: 26rpx;color: #999;">
682
+                  <Image style="width:30rpx;height:30rpx;margin-right:10rpx" src={require('@assets/icons/fuwu.png')} />
683
+                  贴心服务
684
+                </View>
685
+              </View>
667 686
               <View className="section-content">
668 687
                 {
669 688
                   consultants.slice(0, 3).map(item => (
@@ -704,7 +723,7 @@ export default class Index extends Component {
704 723
     )
705 724
   }
706 725
 
707
-  renderStatement () {
726
+  renderStatement() {
708 727
     return (
709 728
       <View className='statement'>
710 729
         免责条款:以上价格仅供参考,具体一房一价的信息以售楼处展示为准。本网显示房屋位置、交通、医疗、教育、商业等配套信息,来源于第三方网络数据,不作为要约,仅供参考,双方具体权利义务应以法律规定及买卖合同约定为准。<br></br>本平台对项目周边文化教育的介绍旨在提供相关信息,并不意味着信息发布方对就学安排作出承诺。相关教育资源就学信息存在调整的可能,应以政府教育主管部门及办学颁布的政策规定为准。
@@ -713,7 +732,7 @@ export default class Index extends Component {
713 732
   }
714 733
 
715 734
 
716
-  renderHelp () {
735
+  renderHelp() {
717 736
     const { helpList } = this.state
718 737
     return (
719 738
       <Block>
@@ -734,17 +753,17 @@ export default class Index extends Component {
734 753
     )
735 754
   }
736 755
 
737
-  handleHelpClick (item) {
756
+  handleHelpClick(item) {
738 757
     Taro.navigateTo({
739 758
       url: '/pages/activity/detail/assistance?id=' + item.activityId
740 759
     })
741 760
   }
742
-  handleGroupClick (item) {
761
+  handleGroupClick(item) {
743 762
     Taro.navigateTo({
744 763
       url: '/pages/activity/detail/assemble?id=' + item.activityId
745 764
     })
746 765
   }
747
-  renderGroup () {
766
+  renderGroup() {
748 767
     const { groupList } = this.state
749 768
     return (
750 769
       <Block>
@@ -767,7 +786,7 @@ export default class Index extends Component {
767 786
     )
768 787
   }
769 788
 
770
-  renderHouseTypeList () {
789
+  renderHouseTypeList() {
771 790
     const { statusOpts } = this.state
772 791
     const { projectDetail: { buildingApartment } } = this.props
773 792
     const list = buildingApartment.filter(item => item.apartmentType === 'apart')
@@ -885,7 +904,7 @@ export default class Index extends Component {
885 904
       </Block>
886 905
     )
887 906
   }
888
-  renderNews () {
907
+  renderNews() {
889 908
     const { newsList } = this.state
890 909
     return (
891 910
       <Block>
@@ -940,7 +959,7 @@ export default class Index extends Component {
940 959
   // }
941 960
 
942 961
 
943
-  renderVideo () {
962
+  renderVideo() {
944 963
     const { videoPlayShow } = this.state
945 964
     const { projectDetail } = this.props
946 965
     const { videoImage } = projectDetail
@@ -989,13 +1008,13 @@ export default class Index extends Component {
989 1008
     )
990 1009
   }
991 1010
 
992
-  changeCurrent (current) {
1011
+  changeCurrent(current) {
993 1012
     this.setState({
994 1013
       current: current + 1
995 1014
     })
996 1015
   }
997 1016
 
998
-  render () {
1017
+  render() {
999 1018
     const { posterStatus, posterData, loaded, btnstate } = this.state
1000 1019
     const { projectDetail } = this.props
1001 1020
     const { uvList = {} } = projectDetail

+ 1
- 1
src/pages/project/detail/index.scss Просмотреть файл

@@ -102,7 +102,7 @@
102 102
   }
103 103
 
104 104
   &-content {
105
-    margin-top: 40px;
105
+    margin-top: 20px;
106 106
   }
107 107
 }
108 108
 

+ 7
- 1
src/services/person.js Просмотреть файл

@@ -8,7 +8,8 @@ import {
8 8
   API_FOLLOW_LIST,
9 9
   API_SEX_INFO,
10 10
   API_ECHERTS_DAILY,
11
-  API_ECHERTS_MONTH
11
+  API_ECHERTS_MONTH,
12
+  API_BUILDING_TYPE,
12 13
 } from '@constants/api'
13 14
 
14 15
 
@@ -39,6 +40,11 @@ export const queryMyCustomer = payload => fetch({ url: API_MY_CUSTOMER, payload
39 40
  * @param {*} type  
40 41
  */
41 42
 export const queryCustomerList = (type, payload) => fetch({ url: `${API_CUSTOMER_LIST}/${type}`, payload })
43
+/**
44
+ * 获取项目类型
45
+ * @param {*} buildingId 
46
+ */
47
+export const getBuildingType = (customerId, payload) => fetch({ url: `${API_BUILDING_TYPE}/${buildingId}`, payload })
42 48
 /**
43 49
  * 获取客户详情
44 50
  * @param {*} customerId  

+ 5
- 2
src/utils/request.js Просмотреть файл

@@ -71,10 +71,13 @@ export const fetch = async (options) => {
71 71
         }
72 72
       }
73 73
       console.error(res.data)
74
-      throw new Error(data)
74
+      Taro.showToast({
75
+        title: message,
76
+        icon: 'none'
77
+      })
75 78
     }
76 79
   }).catch((err) => {
77
-    console.error(err)
80
+    console.error(err, "444")
78 81
 
79 82
     let errMessage = `请求失败: ${err.errMsg}`
80 83
     if (err.errMsg === 'request:fail timeout') {

Двоичные данные
xiangsong.zip Просмотреть файл