浏览代码

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/miniapp-v3 into dev

张延森 5 年前
父节点
当前提交
420d6ae407

+ 4
- 4
config/dev.js 查看文件

5
   defineConstants: {
5
   defineConstants: {
6
     // HOST: '"http://47.101.36.130:8085"',//测试
6
     // HOST: '"http://47.101.36.130:8085"',//测试
7
     // WSS_HOST: '"wss://47.101.36.130:8085"',
7
     // WSS_HOST: '"wss://47.101.36.130:8085"',
8
-    // HOST: '"https://dev.pawoma.cn"',//测试
9
-    // WSS_HOST: '"wss://dev.pawoma.cn"',
8
+    HOST: '"https://dev.pawoma.cn"',//测试
9
+    WSS_HOST: '"wss://dev.pawoma.cn"',
10
     // HOST: '"https://dev.jinchengjiaye.com"',//测试
10
     // HOST: '"https://dev.jinchengjiaye.com"',//测试
11
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
11
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
12
     // HOST: '"https://lt.pawoma.cn"',
12
     // HOST: '"https://lt.pawoma.cn"',
13
     // WSS_HOST: '"wss://lt.pawoma.cn"',
13
     // WSS_HOST: '"wss://lt.pawoma.cn"',
14
-    HOST: '"http://127.0.0.1:8080"',
15
-    WSS_HOST: '"ws://127.0.0.1:8080"',
14
+    // HOST: '"http://127.0.0.1:8080"',
15
+    // WSS_HOST: '"ws://127.0.0.1:8080"',
16
     Version: 'V3.5.10'
16
     Version: 'V3.5.10'
17
   },
17
   },
18
   weapp: {},
18
   weapp: {},

+ 3
- 2
src/onlineSelling/components/HouseCard/index.js 查看文件

8
 export default function HouseCard(props) {
8
 export default function HouseCard(props) {
9
   const {
9
   const {
10
     buildingName,
10
     buildingName,
11
+    termname,
11
     blockName,
12
     blockName,
12
     unitName,
13
     unitName,
13
     roomName,
14
     roomName,
17
     buildingImgList = [],
18
     buildingImgList = [],
18
   } = props.summary || {}
19
   } = props.summary || {}
19
 
20
 
20
-  const title = `${buildingName} ${blockName} ${unitName} ${roomName}`
21
+  const title = `${buildingName} ${termname||''} ${blockName} ${unitName} ${roomName}`
21
   const thumb = (buildingImgList || []).length
22
   const thumb = (buildingImgList || []).length
22
   // const thumb = (buildingImgList || []).length ? transferImage((buildingImgList)[0].url) : emptyImg
23
   // const thumb = (buildingImgList || []).length ? transferImage((buildingImgList)[0].url) : emptyImg
23
   const showDT = dayjs(createDate).format('YYYY/MM/DD')
24
   const showDT = dayjs(createDate).format('YYYY/MM/DD')
24
-  const wanY = Number(price).toFixed(0)
25
+  const wanY = Number(price)
25
 
26
 
26
   return (
27
   return (
27
     <View className="housecard">
28
     <View className="housecard">

+ 2
- 2
src/onlineSelling/components/HouseGrid/Room.js 查看文件

12
     }
12
     }
13
   }
13
   }
14
 
14
 
15
-  const wanY = Number(price).toFixed(0)
15
+  const wanY = Number(price)
16
 
16
 
17
   return (
17
   return (
18
     <HotBlock number={heat + realHeat + 0}>
18
     <HotBlock number={heat + realHeat + 0}>
19
       {status == '1' && <View className="room" onClick={handleClick}>
19
       {status == '1' && <View className="room" onClick={handleClick}>
20
         <View className="warn">{roomName || ''}</View>
20
         <View className="warn">{roomName || ''}</View>
21
         <View className="warn">{personNum || ''}</View>
21
         <View className="warn">{personNum || ''}</View>
22
-        <View className="info">{wanY}万元</View>
22
+        <View className="info" style="white-space:nowrap;">{wanY}万元</View>
23
         <View className="info">{apartmentName || ''}</View>
23
         <View className="info">{apartmentName || ''}</View>
24
       </View>}
24
       </View>}
25
 
25
 

+ 4
- 3
src/onlineSelling/components/HouseGrid/room.scss 查看文件

1
 .room {
1
 .room {
2
   text-align: center;
2
   text-align: center;
3
-  margin-bottom: 16rpx;
4
-  padding: 20rpx;
5
-  font-size: 28rpx;
3
+  margin-bottom: 16px;
4
+  padding: 20px 10px;
5
+  font-size: 28px;
6
   line-height: 1.4em;
6
   line-height: 1.4em;
7
+  overflow: hidden;
7
 
8
 
8
   .info {
9
   .info {
9
     color: #333;
10
     color: #333;

+ 35
- 5
src/onlineSelling/pages/houseList/index.js 查看文件

19
 import { report as reportCustomer } from '@/utils/customer'
19
 import { report as reportCustomer } from '@/utils/customer'
20
 import { getMiniQrcode, savePoint, updatePoint } from '@/services/common'
20
 import { getMiniQrcode, savePoint, updatePoint } from '@/services/common'
21
 import { getCanvasConfig } from '@/utils/tools'
21
 import { getCanvasConfig } from '@/utils/tools'
22
-// import Consultant from '@/components/consultant'
23
-
22
+import { getCardDetail } from '@/services/card'
23
+import Consultant from '@/components/consultant'
24
 import './index.scss'
24
 import './index.scss'
25
 
25
 
26
 @connect(s => s.user)
26
 @connect(s => s.user)
48
     buildingId: null,
48
     buildingId: null,
49
     salesBatchDetail: {},
49
     salesBatchDetail: {},
50
     posterConfig: [],
50
     posterConfig: [],
51
+    consultData: {}, // 分享的置业顾问信息
52
+    consultShow: false,  // 置业顾问悬浮框显示隐藏
51
   }
53
   }
52
 
54
 
53
   componentDidShow() {
55
   componentDidShow() {
99
     }
101
     }
100
 
102
 
101
     this.reportClientFn()
103
     this.reportClientFn()
104
+    let { qrcodeParams } = this.state
105
+    const consultant = this.$router.params.consultant || qrcodeParams.consultant
106
+    if (consultant) {
107
+      getCardDetail(consultant).then(res => {
108
+        this.setState({
109
+          consultData: res,
110
+          consultShow: true
111
+        })
112
+      })
113
+    }
102
   }
114
   }
103
   getInfo(id) {
115
   getInfo(id) {
104
     const { startPrice, endPrice, apartmentId } = this.state
116
     const { startPrice, endPrice, apartmentId } = this.state
402
       priceCurrent: item.value,
414
       priceCurrent: item.value,
403
       startPrice: item.startPrice,
415
       startPrice: item.startPrice,
404
       endPrice: item.endPrice,
416
       endPrice: item.endPrice,
417
+      apartmentId: '',
405
       conditionVisible: false
418
       conditionVisible: false
406
     }, () => {
419
     }, () => {
407
       const id = this.$router.params.id || this.state.id
420
       const id = this.$router.params.id || this.state.id
416
   }
429
   }
417
   sureFilter() {
430
   sureFilter() {
418
     this.setState({
431
     this.setState({
419
-      conditionVisible: false
432
+      conditionVisible: false,
433
+      apartmentId: ''
420
     }, () => {
434
     }, () => {
421
       // Taro.setNavigationBarTitle({ title: '房源' })
435
       // Taro.setNavigationBarTitle({ title: '房源' })
422
       const id = this.$router.params.id || this.state.id
436
       const id = this.$router.params.id || this.state.id
480
   apartmentFilter(apartmentId) {
494
   apartmentFilter(apartmentId) {
481
     this.setState({
495
     this.setState({
482
       apartmentId,
496
       apartmentId,
497
+      startPrice: '',
498
+      endPrice: '',
483
       conditionVisible: false,
499
       conditionVisible: false,
484
     }, () => {
500
     }, () => {
485
       // Taro.setNavigationBarTitle({ title: '房源' })
501
       // Taro.setNavigationBarTitle({ title: '房源' })
538
   }
554
   }
539
 
555
 
540
   render() {
556
   render() {
541
-    const { salesBatchDetail, showShareMenu, showPoster, houseList, conditionVisible, posterData, posterShow, posterConfig } = this.state
557
+    const {
558
+      consultData,
559
+      consultShow,
560
+      salesBatchDetail,
561
+      showShareMenu,
562
+      showPoster,
563
+      houseList,
564
+      conditionVisible,
565
+      posterData,
566
+      posterConfig,
567
+    } = this.state
568
+
542
     const { userInfo: { person } } = this.props
569
     const { userInfo: { person } } = this.props
543
 
570
 
544
     const showCircleBtn = posterData && posterData.qrcode
571
     const showCircleBtn = posterData && posterData.qrcode
548
         {conditionVisible && this.renderCondition()}
575
         {conditionVisible && this.renderCondition()}
549
         {/* 授权电话与头像 */}
576
         {/* 授权电话与头像 */}
550
         <GrantProfile both person={person} />
577
         <GrantProfile both person={person} />
551
-
578
+        {/* 置业顾问悬框 */}
579
+        {
580
+          consultShow && <Consultant style="bottom:150rpx" smallStyle="bottom:178rpx" personId={person.personId} name={person.name || person.nickname} data={consultData}></Consultant>
581
+        }
552
         {/* 生成海报 */}
582
         {/* 生成海报 */}
553
         {showPoster && <Poster data={posterData} configs={posterConfig} onCancel={this.togglePosterStatus} onFinish={this.togglePosterStatus} ></Poster>}
583
         {showPoster && <Poster data={posterData} configs={posterConfig} onCancel={this.togglePosterStatus} onFinish={this.togglePosterStatus} ></Poster>}
554
         {salesBatchDetail.status == "1" ?
584
         {salesBatchDetail.status == "1" ?

+ 1
- 1
src/onlineSelling/pages/records/index.js 查看文件

19
   state = {
19
   state = {
20
     recordList: []
20
     recordList: []
21
   }
21
   }
22
-  componentWillMount() {
22
+  componentDidShow() {
23
     ready.queue(() => {
23
     ready.queue(() => {
24
 
24
 
25
       const { userInfo: { person: { personId } } } = this.props
25
       const { userInfo: { person: { personId } } } = this.props