Pārlūkot izejas kodu

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

张延森 5 gadus atpakaļ
vecāks
revīzija
672c3523e9

Binārs
src/onlineSelling/assets/card.png Parādīt failu


Binārs
src/onlineSelling/assets/chips.png Parādīt failu


Binārs
src/onlineSelling/assets/copy.png Parādīt failu


Binārs
src/onlineSelling/assets/lock.png Parādīt failu


Binārs
src/onlineSelling/assets/pay.png Parādīt failu


Binārs
src/onlineSelling/assets/preselection.png Parādīt failu


Binārs
src/onlineSelling/assets/void.png Parādīt failu


+ 16
- 0
src/onlineSelling/components/ContactConsultant/index.js Parādīt failu

@@ -0,0 +1,16 @@
1
+import { View } from "@tarojs/components";
2
+import './index.scss'
3
+
4
+export default function ContactConsultant(props) {
5
+  const handleChat = () => {
6
+    const { buildingId } = props
7
+
8
+    Taro.navigateTo({
9
+      url: `/pages/card/list/index?buildingId=${buildingId}`
10
+    })
11
+  }
12
+
13
+  return (
14
+    <View className="contact" style={props.style} onClick={handleChat}>{props.text || '联系置业顾问'}</View>
15
+  )
16
+}

+ 6
- 0
src/onlineSelling/components/ContactConsultant/index.scss Parādīt failu

@@ -0,0 +1,6 @@
1
+.contact{
2
+  width: 100vw;
3
+  text-align: center;
4
+  font-size: 36px;
5
+  color: #3DE344;
6
+}

+ 2
- 2
src/onlineSelling/components/HotBlock/index.scss Parādīt failu

@@ -9,10 +9,10 @@
9 9
     border-radius: 6px;
10 10
     .inside{
11 11
       position: absolute;
12
-      height: 130px;
12
+      height: 110px;
13 13
       width: 132px;
14 14
       left:0;
15
-      top: -4px;
15
+      top: -6px;
16 16
 
17 17
     }
18 18
 

+ 9
- 4
src/onlineSelling/components/HouseGrid/Room.js Parādīt failu

@@ -1,6 +1,9 @@
1 1
 import { View } from "@tarojs/components";
2 2
 import HotBlock from "../HotBlock";
3 3
 import './room.scss'
4
+import lockImg from '../../assets/lock.png'
5
+import preselectionImg from '../../assets/preselection.png'
6
+import chipsImg from '../../assets/chips.png'
4 7
 
5 8
 export default function Room(props) {
6 9
   const { roomName, heat, realHeat, price, apartmentName, status } = props.dataset || {}
@@ -13,15 +16,17 @@ export default function Room(props) {
13 16
     }
14 17
   }
15 18
 
16
-  const wanY = Number(price)
17
-
18 19
   return (
19 20
     <HotBlock number={heat + realHeat + 0}>
20 21
       {status == '1' && <View className="room" onClick={handleClick}>
21 22
         <View className="roomname">{roomName || ''}</View>
22 23
         <View className="yuxuan">{personNum}预选</View>
23
-        <View className="info" >{wanY}万元</View>
24
-        <View className="info">{apartmentName || ''}</View>
24
+        <View className="yuxuan">{personNum}认筹</View>
25
+        <Image src={preselectionImg} className="preselection-img"></Image>
26
+        <Image src={chipsImg} className="chips-img"></Image>
27
+        <Image src={lockImg} className="lock-img"></Image>
28
+        
29
+       
25 30
       </View>}
26 31
 
27 32
     </HotBlock>

+ 23
- 2
src/onlineSelling/components/HouseGrid/room.scss Parādīt failu

@@ -3,9 +3,9 @@
3 3
   margin-bottom: 16px;
4 4
   padding: 10px;
5 5
   font-size: 28px;
6
-  height: 130px;
6
+  height: 110px;
7 7
   overflow: hidden;
8
-  line-height: 1.2;
8
+  line-height: 1.24;
9 9
 
10 10
   .info {
11 11
     color: #333;
@@ -22,4 +22,25 @@
22 22
   .tip {
23 23
     color: #BB9C79;
24 24
   }
25
+  .lock-img{
26
+    width:22px;
27
+    height:23px;
28
+    position: absolute;
29
+    left: 2px;
30
+    bottom: 3px;
31
+  }
32
+  .preselection-img{
33
+    width:18px;
34
+    height:18px;
35
+    position: absolute;
36
+    left: 10px;
37
+    top: 12px;
38
+  }
39
+  .chips-img{
40
+    width:18px;
41
+    height:18px;
42
+    position: absolute;
43
+    right: 10px;
44
+    top: 12px;
45
+  }
25 46
 }

+ 1
- 1
src/onlineSelling/components/Statement/index.js Parādīt failu

@@ -1,4 +1,4 @@
1
-import { View, Image, Text } from "@tarojs/components";
1
+import { View} from "@tarojs/components";
2 2
 import './index.scss'
3 3
 
4 4
 export default function Statement(props) {

+ 4
- 10
src/onlineSelling/pages/detail/resultPage.js Parādīt failu

@@ -3,6 +3,7 @@ import './index.scss'
3 3
 import { connect } from '@tarojs/redux'
4 4
 import ready from '@/utils/ready'
5 5
 import { addPreselection, cancelPreselection } from '@/services/project'
6
+import ContactConsultant from '../../components/ContactConsultant'
6 7
 
7 8
 @connect(
8 9
   ({ user }) => ({ ...user })
@@ -49,7 +50,7 @@ export default class Index extends Component {
49 50
         })
50 51
       } else {
51 52
         Taro.setNavigationBarTitle({ title: '取消预选' })
52
-        cancelPreselection( params2).then(res => {
53
+        cancelPreselection(params2).then(res => {
53 54
           this.setState({
54 55
             status: 1,
55 56
             statusText: '您已成功取消预选此房源'
@@ -63,16 +64,10 @@ export default class Index extends Component {
63 64
       }
64 65
     })
65 66
   }
66
-  handleChat() {
67
-    const { buildingId } = this.$router.params
68 67
 
69
-    Taro.navigateTo({
70
-      url: `/pages/card/list/index?buildingId=${buildingId}`
71
-    })
72
-  }
73 68
   render() {
74 69
     const { status, statusText2 } = this.state
75
-    const { type } = this.$router.params
70
+    const { type, buildingId } = this.$router.params
76 71
     return (
77 72
       <View className="result">
78 73
         {status == 1 && <Image className="result-img" src={require('../../assets/success2.png')}></Image>}
@@ -82,8 +77,7 @@ export default class Index extends Component {
82 77
         {type != 'add' && <View className="status">{status == 1 ? '取消成功' : status == 2 ? '正在处理' : '取消失败'}</View>}
83 78
         <View className="tip" style="margin-bottom:10rpx">{statusText}</View>
84 79
         {statusText2 && <View className="tip">{statusText2}</View>}
85
-
86
-        <View className="contact" onClick={() => this.handleChat()}>联系置业顾问</View>
80
+        <ContactConsultant  buildingId={buildingId} style=" position: absolute;bottom: 8vh;" />
87 81
       </View>
88 82
 
89 83
     );

+ 17
- 0
src/onlineSelling/pages/houseList/index.js Parādīt failu

@@ -61,6 +61,7 @@ export default class HouseList extends Component {
61 61
     consultShow: false,  // 置业顾问悬浮框显示隐藏
62 62
     noRecord: false,
63 63
     loading: true,
64
+    currentHot: 0,
64 65
   }
65 66
 
66 67
 
@@ -592,6 +593,12 @@ export default class HouseList extends Component {
592 593
     const buildingId = this.$router.params.buildingId || this.state.buildingId
593 594
     this.goto(`/pages/project/detail/index?id=${buildingId}`)
594 595
   }
596
+  handleScreen(value) {
597
+  
598
+    this.setState({
599
+      currentHot: value,
600
+    })
601
+  }
595 602
 
596 603
   render() {
597 604
     const {
@@ -606,6 +613,7 @@ export default class HouseList extends Component {
606 613
       noRecord,
607 614
       loading,
608 615
       salesBatchDetail,
616
+      currentHot
609 617
     } = this.state
610 618
 
611 619
     if (loading) {
@@ -616,6 +624,7 @@ export default class HouseList extends Component {
616 624
 
617 625
     const showCircleBtn = posterData && posterData.qrcode
618 626
     console.log('==============>', posterData, showPoster, posterConfig)
627
+    const screenList = [{ title: '预选热度图', value: 0 }, { title: '认筹热度图', value: 1 }]
619 628
     return (
620 629
       <Block>
621 630
         {conditionVisible && this.renderCondition()}
@@ -635,8 +644,16 @@ export default class HouseList extends Component {
635 644
                 <View className="building-top">
636 645
                   <View style="color:#333;font-size:28rpx">{salesBatchDetail.buildingName || ''}</View>
637 646
                   <View style="color:#666;font-size:24rpx;" onClick={() => this.toBuildingDetail()}>查看楼盘详情<Text className="right-icon"></Text></View>
647
+                </View>
638 648
 
649
+                <View className="screen-flex" >
650
+                  {screenList.map(item => (
651
+                    <View key={item.value} onClick={() => this.handleScreen(item.value)} className={currentHot == item.value ? 'top-item active' : 'top-item'}>
652
+                      {item.title}
653
+                    </View>
654
+                  ))}
639 655
                 </View>
656
+                
640 657
                 {houseList.length ? this.renderHouses() : this.renderBlank()}
641 658
                 {this.renderBottom()}
642 659
               </View>

+ 29
- 2
src/onlineSelling/pages/houseList/index.scss Parādīt failu

@@ -41,7 +41,34 @@
41 41
       display: inline-block;
42 42
     }
43 43
   }
44
-  
44
+  .screen-flex{
45
+    display: flex;
46
+    align-items: center;
47
+    background:#fff;
48
+    font-size: 34px;
49
+    color: #666;
50
+    padding-bottom: 30px;
51
+    font-size: 400;
52
+    .top-item{
53
+      width:164px;
54
+      height:48px;
55
+      font-size:24px;
56
+      font-weight:300;
57
+      color: #333;
58
+      line-height: 48px;
59
+      background:rgba(255,255,255,1);
60
+      border:1px solid rgba(228,228,228,1);
61
+      box-shadow:0px 4px 12px 0px rgba(255,171,50,0.08);
62
+      border-radius:24px;
63
+      margin-left: 30px;
64
+      text-align: center;
65
+
66
+    }
67
+    .active{
68
+      background-color: #BB9C79;
69
+      color: #fff;
70
+    }
71
+  }
45 72
   .bottombar {
46 73
     height: 168px;
47 74
     box-shadow:0px 16px 48px 0px rgba(0, 0, 0, 0.12);
@@ -84,7 +111,7 @@
84 111
 
85 112
   .container {
86 113
     // top + margin + bottom
87
-    height: calc(100% - 350px);
114
+    height: calc(100% - 428px);
88 115
   }
89 116
 }
90 117
 .screen-page{

+ 4
- 5
src/onlineSelling/pages/records/index.js Parādīt failu

@@ -91,11 +91,9 @@ export default class Records extends Component {
91 91
           }
92 92
         </CheckboxGroup>
93 93
         <Statement />
94
-        {/* <View className="bottom-con">
95
-          <View className="raise-btn">认筹房源</View>
96
-          <View className="statement"> !免责声明:</View>
97
-          <View className="statement">房源信息、选房协议等来源于开发商,具体销售数据可能会有延迟,最终以开发商官网公告为准,请在执行具体操作前和置业顾问沟通确认,并谨慎核查。</View>
98
-        </View> */}
94
+
95
+        {/* <View className="raise-btn">认筹房源</View> */}
96
+
99 97
       </Block>
100 98
     )
101 99
   }
@@ -117,6 +115,7 @@ export default class Records extends Component {
117 115
               }
118 116
             </ScrollView >
119 117
         }
118
+        <Statement />
120 119
 
121 120
 
122 121
       </Block>

+ 10
- 20
src/onlineSelling/pages/records/index.scss Parādīt failu

@@ -44,26 +44,16 @@
44 44
     padding-left: 30px;
45 45
     margin-bottom: 20px;
46 46
   }
47
-  .bottom-con{
48
-    padding: 0 30px;
49
-    margin-top: 20vh;
50
-    .raise-btn{
51
-      width: 690px;
52
-      height:94px;
53
-      line-height: 94px;
54
-      background:rgba(187,156,121,1);
55
-      border-radius:10px;
56
-      color: #fff;
57
-      font-size: 36px;
58
-      text-align: center;
59
-      margin-bottom: 20px;
60
-
61
-    }
62
-    .statement{
63
-      font-size: 24px;
64
-      color: #999;
65
-      line-height: 1.6;
66
-    }
47
+  .raise-btn{
48
+    width: 690px;
49
+    height:94px;
50
+    line-height: 94px;
51
+    background:rgba(187,156,121,1);
52
+    border-radius:10px;
53
+    color: #fff;
54
+    font-size: 36px;
55
+    text-align: center;
56
+    margin-bottom: 20px;
67 57
   }  
68 58
 }
69 59