Selaa lähdekoodia

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

张延森 5 vuotta sitten
vanhempi
commit
420d6ae407

+ 4
- 4
config/dev.js Näytä tiedosto

@@ -5,14 +5,14 @@ module.exports = {
5 5
   defineConstants: {
6 6
     // HOST: '"http://47.101.36.130:8085"',//测试
7 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 10
     // HOST: '"https://dev.jinchengjiaye.com"',//测试
11 11
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
12 12
     // HOST: '"https://lt.pawoma.cn"',
13 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 16
     Version: 'V3.5.10'
17 17
   },
18 18
   weapp: {},

+ 3
- 2
src/onlineSelling/components/HouseCard/index.js Näytä tiedosto

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

+ 2
- 2
src/onlineSelling/components/HouseGrid/Room.js Näytä tiedosto

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

+ 4
- 3
src/onlineSelling/components/HouseGrid/room.scss Näytä tiedosto

@@ -1,9 +1,10 @@
1 1
 .room {
2 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 6
   line-height: 1.4em;
7
+  overflow: hidden;
7 8
 
8 9
   .info {
9 10
     color: #333;

+ 35
- 5
src/onlineSelling/pages/houseList/index.js Näytä tiedosto

@@ -19,8 +19,8 @@ import { ROLE_CODE } from '@/constants/user'
19 19
 import { report as reportCustomer } from '@/utils/customer'
20 20
 import { getMiniQrcode, savePoint, updatePoint } from '@/services/common'
21 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 24
 import './index.scss'
25 25
 
26 26
 @connect(s => s.user)
@@ -48,6 +48,8 @@ export default class HouseList extends Component {
48 48
     buildingId: null,
49 49
     salesBatchDetail: {},
50 50
     posterConfig: [],
51
+    consultData: {}, // 分享的置业顾问信息
52
+    consultShow: false,  // 置业顾问悬浮框显示隐藏
51 53
   }
52 54
 
53 55
   componentDidShow() {
@@ -99,6 +101,16 @@ export default class HouseList extends Component {
99 101
     }
100 102
 
101 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 115
   getInfo(id) {
104 116
     const { startPrice, endPrice, apartmentId } = this.state
@@ -402,6 +414,7 @@ export default class HouseList extends Component {
402 414
       priceCurrent: item.value,
403 415
       startPrice: item.startPrice,
404 416
       endPrice: item.endPrice,
417
+      apartmentId: '',
405 418
       conditionVisible: false
406 419
     }, () => {
407 420
       const id = this.$router.params.id || this.state.id
@@ -416,7 +429,8 @@ export default class HouseList extends Component {
416 429
   }
417 430
   sureFilter() {
418 431
     this.setState({
419
-      conditionVisible: false
432
+      conditionVisible: false,
433
+      apartmentId: ''
420 434
     }, () => {
421 435
       // Taro.setNavigationBarTitle({ title: '房源' })
422 436
       const id = this.$router.params.id || this.state.id
@@ -480,6 +494,8 @@ export default class HouseList extends Component {
480 494
   apartmentFilter(apartmentId) {
481 495
     this.setState({
482 496
       apartmentId,
497
+      startPrice: '',
498
+      endPrice: '',
483 499
       conditionVisible: false,
484 500
     }, () => {
485 501
       // Taro.setNavigationBarTitle({ title: '房源' })
@@ -538,7 +554,18 @@ export default class HouseList extends Component {
538 554
   }
539 555
 
540 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 569
     const { userInfo: { person } } = this.props
543 570
 
544 571
     const showCircleBtn = posterData && posterData.qrcode
@@ -548,7 +575,10 @@ export default class HouseList extends Component {
548 575
         {conditionVisible && this.renderCondition()}
549 576
         {/* 授权电话与头像 */}
550 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 583
         {showPoster && <Poster data={posterData} configs={posterConfig} onCancel={this.togglePosterStatus} onFinish={this.togglePosterStatus} ></Poster>}
554 584
         {salesBatchDetail.status == "1" ?

+ 1
- 1
src/onlineSelling/pages/records/index.js Näytä tiedosto

@@ -19,7 +19,7 @@ export default class Records extends Component {
19 19
   state = {
20 20
     recordList: []
21 21
   }
22
-  componentWillMount() {
22
+  componentDidShow() {
23 23
     ready.queue(() => {
24 24
 
25 25
       const { userInfo: { person: { personId } } } = this.props