瀏覽代碼

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

张延森 5 年之前
父節點
當前提交
749c0cd712

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

@@ -23,6 +23,7 @@ export default function RaiseCard(props) {
23 23
     payStatus,
24 24
     houseId,
25 25
     taHousingResourcesList = [],
26
+    taRaise = {},
26 27
     buildingImgList = [],
27 28
   } = props.summary || {}
28 29
   const defHouse = taHousingResourcesList[0] || {}
@@ -59,11 +60,11 @@ export default function RaiseCard(props) {
59 60
           {!props.type && <View className={payStatus == 'paid' ? 'raised badge' : payStatus == 'unpaid' ? 'unraise badge' : 'badge'}>{payStatus == 'paid' ? '已缴费' : payStatus == 'unpaid' ? '未缴费' : '已退费'}</View>}
60 61
           {(props.type == 'raiseProfile' || props.type == 'houseResource') && <View style="color:#FF3C3C" className='badge'>{mineLocked ? '已锁给我' : ' '}</View>}
61 62
           {(props.type == 'raiseProfile' || props.type == 'raiseMoney') && <View style={props.type == 'raiseMoney' ? 'color:#BB9C79;font-size:30rpx' : 'color:#BB9C79;font-size:30rpx;margin-top:-20rpx'}>{apartmentName || ''}</View>}
62
-          {props.type == 'raiseMoney' && <View className="red-price">现价{Number(price) + 0}万</View>}
63
+          {props.type == 'raiseMoney' && taRaise.displayHousePrice && <View className="red-price">现价{Number(price) + 0}万</View>}
63 64
           {props.type == 'houseResource' && <View style="color:#BB9C79;font-size:28rpx;margin:-40rpx 0 12rpx 0">{houseLockingStatus == 'locked' ? '已锁定' : '未锁定'}</View>}
64 65
           <View className="title">{title}</View>
65 66
           {!props.type && <View className="meta">{showDT}</View>}
66
-          {props.type == 'raiseProfile' && <View className="price">现价<Text className="red">{Number(price) + 0}</Text>万</View>}
67
+          {props.type == 'raiseProfile' && taRaise.displayHousePrice && <View className="price">现价<Text className="red">{Number(price) + 0}</Text>万</View>}
67 68
           {(props.type == 'raiseProfile' || props.type == 'raiseMoney') &&
68 69
             <Block>
69 70
               {buildingArea ? <View className="area">建筑面积约 <Text className="red">{buildingArea}m²</Text>

+ 1
- 1
src/onlineSelling/components/RaiseCard/index.scss 查看文件

@@ -1,6 +1,6 @@
1 1
 .housecard {
2 2
   width: 690px;
3
-  height: 250px;
3
+  min-height: 250px;
4 4
   background:#fff;
5 5
   display: flex;
6 6
   font-weight: 400;

+ 4
- 3
src/onlineSelling/pages/detail/index.js 查看文件

@@ -191,9 +191,10 @@ export default class Index extends Component {
191 191
               <View style="padding: 0 30rpx;">
192 192
                 <View className="name">{houseDetail.apartmentName || ''}</View>
193 193
                 <View className="btn" onClick={() => this.handleChat(houseDetail.buildingId)}>询问优惠</View>
194
-                <View className="price">
195
-                  现价:{houseDetail.price}万
196
-              </View>
194
+                {
195
+                  taRaise.displayHousePrice && <View className="price"> 现价:{houseDetail.price}万</View>
196
+                }
197
+
197 198
                 {houseDetail.apartmentName &&
198 199
                   <View className="area">
199 200
                     {houseDetail.buildingArea ? <Text>建筑面积约<Text style="color:#FE1C1C">{houseDetail.buildingArea}</Text>m² </Text> : '建筑面积待定'}

+ 2
- 1
src/onlineSelling/pages/houseCart/index.scss 查看文件

@@ -68,13 +68,14 @@
68 68
 
69 69
   .shoping-cart {
70 70
     position: absolute;
71
-    bottom: 135px;
71
+    bottom: 125px;
72 72
     font-size: 28px;
73 73
     line-height: 30px;
74 74
     color: #333;
75 75
     width: calc(100% - 70px);
76 76
     box-shadow:0px 4px 12px 0px rgba(0, 0, 0, 0.08);
77 77
     border-radius:44px 44px 0px 0px;
78
+    background-color: #fff;
78 79
 
79 80
     .title {
80 81
       text-align: center;

+ 10
- 7
src/onlineSelling/pages/houseList/index.js 查看文件

@@ -399,7 +399,7 @@ export default class HouseList extends Component {
399 399
   }
400 400
 
401 401
   renderHouses() {
402
-    const { houseList,dataType } = this.state
402
+    const { houseList, dataType } = this.state
403 403
 
404 404
     return (
405 405
       <ScrollView className="container" scrollY scrollWithAnimation>
@@ -436,7 +436,8 @@ export default class HouseList extends Component {
436 436
   }
437 437
 
438 438
   handleCondition(value) {
439
-    if (value == 2) {
439
+    const { salesBatchDetail: { displayHousePrice } } = this.state
440
+    if ((!displayHousePrice && value == 1) || value == 2) {
440 441
       this.setState({
441 442
         apartmentId: '',
442 443
         startPrice: '',
@@ -567,27 +568,29 @@ export default class HouseList extends Component {
567 568
             </View>
568 569
           ))}
569 570
         </View>
570
-          : <Blank tips="暂无户型图,请按价格筛选"></Blank>
571
+          : <Blank tips="暂无户型"></Blank>
571 572
         }
572 573
       </Block>
573 574
     )
574 575
   }
575 576
 
576 577
   renderCondition() {
577
-    const { current } = this.state
578
+    const { current, salesBatchDetail: { displayHousePrice } } = this.state
578 579
     const condition = [{ title: '按户型', value: 0 }, { title: '按价格', value: 1 }, { title: '不限条件', value: 2 }]
580
+    const condition2 = [{ title: '按户型', value: 0 }, { title: '不限条件', value: 2 }]
581
+    const conditionList = displayHousePrice ? condition : condition2
579 582
     return (
580 583
       <View className="screen-page">
581 584
         <View className="screen-top">
582 585
           筛选房源
583
-            {condition.map(item => (
586
+            {conditionList.map(item => (
584 587
             <View key={item.value} onClick={() => this.handleCondition(item.value)} className={current == item.value ? 'top-item active' : 'top-item'}>
585 588
               {item.title}
586 589
             </View>
587 590
           ))}
588 591
         </View>
589 592
         {current == 0 && this.renderApartment()}
590
-        {current == 1 && this.renderPrice()}
593
+        {current == 1 && displayHousePrice && this.renderPrice()}
591 594
 
592 595
 
593 596
       </View>
@@ -656,7 +659,7 @@ export default class HouseList extends Component {
656 659
                     </View>
657 660
                   ))}
658 661
                 </View>
659
-                
662
+
660 663
                 {houseList.length ? this.renderHouses() : this.renderBlank()}
661 664
                 {this.renderBottom()}
662 665
               </View>

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

@@ -206,7 +206,7 @@ export default class raiseMoney extends Component {
206 206
         {
207 207
           raiseCart.map(item => (
208 208
             <View key={item.houseId} >
209
-              <RaiseCard type="raiseMoney" summary={item} onCancel={this.handleCancel} disableCancel={disabled} />
209
+              <RaiseCard type="raiseMoney" style="height:auto" summary={item} onCancel={this.handleCancel} disableCancel={disabled} />
210 210
             </View>
211 211
           ))
212 212
         }

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

@@ -13,7 +13,7 @@ import PickerComponent from '../../components/Picker'
13 13
 import './index.scss'
14 14
 import * as houseActions from '@/actions/house'
15 15
 
16
-function noop(){}
16
+function noop() { }
17 17
 
18 18
 @connect(
19 19
   ({ user, city, house }) => ({ ...user, ...city, house }),
@@ -57,7 +57,7 @@ export default class Records extends Component {
57 57
   componentDidShow() {
58 58
     ready.queue(() => {
59 59
 
60
-      const { id: salesBatchId } = this.$router.params
60
+      const { id: salesBatchId = '' } = this.$router.params
61 61
       const { userInfo: { person: { personId } }, house } = this.props
62 62
       const params = {
63 63
         personId,
@@ -200,7 +200,7 @@ export default class Records extends Component {
200 200
               {
201 201
                 raiseList.map(item => (
202 202
                   <View key={item.raiseRecordId} >
203
-                    <RaiseCard handleCard={()=>this.toRaiseProfile(item.raiseRecordId)} summary={item} />
203
+                    <RaiseCard handleCard={() => this.toRaiseProfile(item.raiseRecordId)} summary={item} />
204 204
                   </View>
205 205
                 )
206 206
                 )