xujing před 5 roky
rodič
revize
601c65630c

+ 7
- 3
src/onlineSelling/components/RaiseCard/index.js Zobrazit soubor

@@ -12,6 +12,7 @@ export default function RaiseCard(props) {
12 12
     termName,
13 13
     blockName,
14 14
     unitName,
15
+    floorName,
15 16
     roomName,
16 17
     price,
17 18
     houseLockingStatus,
@@ -22,6 +23,7 @@ export default function RaiseCard(props) {
22 23
     insideArea,
23 24
     payStatus,
24 25
     houseId,
26
+    status,
25 27
     taHousingResourcesList = [],
26 28
     apartmentImgList = [],
27 29
     taRaise = {},
@@ -33,7 +35,8 @@ export default function RaiseCard(props) {
33 35
   }
34 36
 
35 37
   const defHouse = taHousingResourcesList[0] || {}
36
-  const title = `${buildingName || defHouse.buildingName || ''} ${termName || defHouse.termName || ''} ${blockName || defHouse.blockName || ''} ${unitName || defHouse.unitName || ''} ${roomName || defHouse.roomName || ' '}`
38
+  const ellipsis = taHousingResourcesList.length > 1 ? `等${taHousingResourcesList.length}套房源` : ''
39
+  const title = `${buildingName || defHouse.buildingName || ''} ${termName || defHouse.termName || ''} ${blockName || defHouse.blockName || ''} ${unitName || defHouse.unitName || ''} ${floorName || defHouse.floorName || ''} ${roomName || defHouse.roomName || ' '}${ellipsis}`
37 40
   const thumb = (buildingImgList || []).length
38 41
   const thumb2 = (apartmentImgList || []).length
39 42
   const showDT = dayjs(createDate).format('YYYY/MM/DD')
@@ -67,14 +70,15 @@ export default function RaiseCard(props) {
67 70
       <View className="body">
68 71
         {props.type == 'raiseMoney' && !props.disableCancel && <Image src={closeImg} onClick={handleCancel} className="close-img"></Image>}
69 72
         <View onClick={() => (props.handleCard && props.handleCard())}>
70
-          {!props.type && <View className={payStatus == 'paid' ? 'raised badge' : payStatus == 'unpaid' ? 'unraise badge' : 'badge'}>{payStatus == 'paid' ? '已缴费' : payStatus == 'unpaid' ? '未缴费' : '已退费'}</View>}
73
+          {!props.type && <View style={status == '0' ? 'color:#999' : ''} className={payStatus == 'paid' ? 'raised badge' : payStatus == 'unpaid' ? 'unraise badge' : 'badge'}>{payStatus == 'paid' ? '已缴费' : payStatus == 'unpaid' ? '未缴费' : '已退费'}</View>}
71 74
           {(props.type == 'raiseProfile' || props.type == 'houseResource') && <View style="color:#FF3C3C" className='badge'>{mineLocked ? '已锁给我' : ' '}</View>}
72 75
           {(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>}
73 76
           {props.type == 'raiseMoney' && taRaise.displayHousePrice && <View className="red-price">现价{Number(price) + 0}万</View>}
74 77
           {props.type == 'houseResource' && <View style="color:#BB9C79;font-size:28rpx;margin:-40rpx 0 12rpx 0">{houseLockingStatus == 'locked' ? '已锁定' : '未锁定'}</View>}
75
-          <View className="title" style={props.type == 'raiseMoney' && !props.disableCancel ? 'max-width:340rpx' : ''}>{title}</View>
78
+          <View className={props.type == 'raiseMoney' && !props.disableCancel ? 'title max' : 'title'} style={status == '0' ? 'color:#999' : ''}>{title}</View>
76 79
           {!props.type && <View className="meta">{showDT}</View>}
77 80
           {props.type == 'raiseProfile' && taRaise.displayHousePrice && <View className="price">现价<Text className="red">{Number(price) + 0}</Text>万</View>}
81
+          {status == '0' && <View style="color:#999;font-size:30rpx">已作废</View>}
78 82
           {(props.type == 'raiseProfile' || props.type == 'raiseMoney') &&
79 83
             <Block>
80 84
               {buildingArea ? <View className="area">建筑面积约 <Text className="red">{buildingArea}m²</Text>

+ 4
- 1
src/onlineSelling/components/RaiseCard/index.scss Zobrazit soubor

@@ -54,11 +54,14 @@
54 54
       color:#333;
55 55
       line-height: 1.6;
56 56
     }
57
+    .max{
58
+      max-width:340px
59
+    }
57 60
 
58 61
     .meta {
59 62
       font-size: 24px;
60 63
       color:#999;
61
-      text-align: right;
64
+      float: right;
62 65
     }
63 66
     .price{
64 67
       font-size: 28px;

+ 1
- 1
src/onlineSelling/pages/raiseMoney/index.js Zobrazit soubor

@@ -46,7 +46,7 @@ export default class raiseMoney extends Component {
46 46
     navigationBarTitleText: '认筹确认'
47 47
   }
48 48
   state = {
49
-    current: 2,
49
+    current: 0,
50 50
     inputName: '',
51 51
     raiseProfile: undefined,  // 认筹主记录
52 52
     record: {},               // 认筹单

+ 2
- 2
src/onlineSelling/pages/raiseProfile/index.js Zobrazit soubor

@@ -52,9 +52,9 @@ export default class Raise extends Component {
52 52
 
53 53
   // 查看所有认筹房源
54 54
   viewAllHouses = () => {
55
-    const { raiseRecordId } = this.$router.params
55
+    const { id} = this.$router.params
56 56
     Taro.navigateTo({
57
-      url: `/onlineSelling/pages/raiseProfile/houseResource?raiseRecordId=${raiseRecordId}`
57
+      url: `/onlineSelling/pages/raiseProfile/houseResource?raiseRecordId=${id}`
58 58
     })
59 59
   }
60 60
 

+ 1
- 0
src/onlineSelling/pages/raiseProfile/index.scss Zobrazit soubor

@@ -79,6 +79,7 @@
79 79
 
80 80
   &-item {
81 81
     flex: auto;
82
+    font-size: 22px;
82 83
   }
83 84
 }
84 85
 

+ 16
- 9
src/onlineSelling/pages/records/index.js Zobrazit soubor

@@ -14,7 +14,6 @@ import './index.scss'
14 14
 import * as houseActions from '@/actions/house'
15 15
 import * as noticeType from '@/constants/common.js'
16 16
 
17
-function noop() { }
18 17
 
19 18
 @connect(
20 19
   ({ user, city, house }) => ({ ...user, ...city, house }),
@@ -156,7 +155,15 @@ export default class Records extends Component {
156 155
       url: `/onlineSelling/pages/raiseMoney/index?salesBatchId=${checkHouse.salesBatchId}`
157 156
     })
158 157
   }
159
-
158
+  toHouseDetail(item) {
159
+    if (item.housingStatus == '0' || item.saleBatchStatus == '0') {
160
+      Taro.showToast({ title: '当前销售批次或该房源已被取消发布', icon: 'none', duration: 2000 })
161
+    } else {
162
+      Taro.navigateTo({
163
+        url: `/onlineSelling/pages/detail/index?id=${item.houseId}`
164
+      })
165
+    }
166
+  }
160 167
   renderPreselection() {
161 168
     const { recordList, noRecord, chooseList } = this.state
162 169
 
@@ -169,16 +176,16 @@ export default class Records extends Component {
169 176
                 <View>
170 177
                   {
171 178
                     recordList.map((item) => {
172
-                      const checked = (chooseList || []).filter(x => x == item.houseId)[0]
173
-                      const disabled = item.housingInfo.houseLockingStatus == 'locked'
179
+                      // const checked = (chooseList || []).filter(x => x == item.houseId)[0]
180
+                      // const disabled = item.housingInfo.houseLockingStatus == 'locked'
174 181
 
175 182
                       return (
176 183
                         <Label class="checkbox" >
177
-                          <Checkbox value={item.houseId - 0} checked={checked} disabled={disabled}>
184
+                          {/* <Checkbox value={item.houseId - 0} checked={checked} disabled={disabled}> */}
178 185
                             <View className="carditem" key={item.preselectionRecordId} >
179
-                              <HouseCard summary={item} onClick={noop} />
186
+                              <HouseCard summary={item} onClick={()=>this.toHouseDetail(item)} />
180 187
                             </View>
181
-                          </Checkbox>
188
+                          {/* </Checkbox> */}
182 189
                         </Label>
183 190
                       )
184 191
                     })
@@ -189,7 +196,7 @@ export default class Records extends Component {
189 196
           <Statement />
190 197
         </ScrollView >
191 198
 
192
-        <View className="raise-box"> <View className="raise-btn" onClick={this.handleSubmit}>认筹房源</View></View>
199
+        {/* <View className="raise-box"> <View className="raise-btn" onClick={this.handleSubmit}>认筹房源</View></View> */}
193 200
 
194 201
       </Block>
195 202
     )
@@ -221,7 +228,7 @@ export default class Records extends Component {
221 228
 
222 229
         {
223 230
           noRaiseRecord ? <Blank style="margin:10vh 0 22vh 0" tips="暂无认筹记录" /> :
224
-            <ScrollView scrollY>
231
+            <ScrollView scrollY className="container">
225 232
               {
226 233
                 raiseList.map(item => (
227 234
                   <View key={item.raiseRecordId} >

+ 1
- 1
src/onlineSelling/pages/records/index.scss Zobrazit soubor

@@ -45,7 +45,7 @@
45 45
     margin-bottom: 20px;
46 46
   }
47 47
   .container {
48
-    height: calc(100vh - 254px);
48
+    height: calc(100vh - 100px);
49 49
   }
50 50
   .raise-box{
51 51
     position: fixed;

+ 2
- 1
src/services/getCode.js Zobrazit soubor

@@ -2,7 +2,8 @@ import { fetch } from '@/utils/request'
2 2
 import {
3 3
   API_GET_CODE,
4 4
   API_PUT_REGISTER,
5
-  API_PUT_REGISTERCONSULTANT
5
+  API_PUT_REGISTERCONSULTANT,
6
+  API_CHECK_CODE
6 7
 } from '@/constants/api'
7 8
 
8 9
 /**