xujing 5 år sedan
förälder
incheckning
62141090d9

+ 1
- 1
src/onlineSelling/components/RaiseCard/index.js Visa fil

56
         <View onClick={props.handleCard}>
56
         <View onClick={props.handleCard}>
57
           {!props.type && <View className={payStatus == 'paid' ? 'raised badge' : payStatus == 'unpaid' ? 'unraise badge' : 'badge'}>{payStatus == 'paid' ? '已缴费' : payStatus == 'unpaid' ? '未缴费' : '已退费'}</View>}
57
           {!props.type && <View className={payStatus == 'paid' ? 'raised badge' : payStatus == 'unpaid' ? 'unraise badge' : 'badge'}>{payStatus == 'paid' ? '已缴费' : payStatus == 'unpaid' ? '未缴费' : '已退费'}</View>}
58
           {(props.type == 'raiseProfile' || props.type == 'houseResource') && <View style="color:#FF3C3C" className='badge'>{mineLocked ? '已锁给我' : ' '}</View>}
58
           {(props.type == 'raiseProfile' || props.type == 'houseResource') && <View style="color:#FF3C3C" className='badge'>{mineLocked ? '已锁给我' : ' '}</View>}
59
-          {(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>}
59
+          {(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>}
60
           {props.type == 'raiseMoney' && <View className="red-price">现价{Number(price) + 0}万</View>}
60
           {props.type == 'raiseMoney' && <View className="red-price">现价{Number(price) + 0}万</View>}
61
           {props.type == 'houseResource' && <View style="color:#BB9C79;font-size:28rpx;margin:-40rpx 0 12rpx 0">{houseLockingStatus == 'locked' ? '已锁定' : '未锁定'}</View>}
61
           {props.type == 'houseResource' && <View style="color:#BB9C79;font-size:28rpx;margin:-40rpx 0 12rpx 0">{houseLockingStatus == 'locked' ? '已锁定' : '未锁定'}</View>}
62
           <View className="title">{title}</View>
62
           <View className="title">{title}</View>

+ 5
- 10
src/onlineSelling/pages/protocol/index.js Visa fil

11
   }
11
   }
12
 
12
 
13
   state = {
13
   state = {
14
-    content: `
15
-      <p>New Year in china is an important festival. Nearly everyone thinks highly of it. No matter where people go and no matter how far they go, they will try their best to go home enjoying family time. And no matter what difficulty or trouble they are experiencing, they will put aside for the period of time. In every house, the main atmosphere is happiness. What do people usually do during the New Year time? They will prepare a big meal together on New Year’s Eve. In the following days, they will visit their relatives. their relatives also will pay a return visit.</p>
16
-      <p>One of the most important things that they will not forget to do is to worship their ancestors. This is Chinese New Year New Year in china is an important festival. Nearly everyone thinks highly of it.</p>
17
-      <p>No matter where people go and no matter how far they go, they will try their best to go home enjoying family time. And no matter what difficulty or trouble they are experiencing, they will put aside for the period of time. In every house, the main atmosphere is happiness. </p>
18
-      <p>What do people usually do during the New Year time? They will prepare a big meal together on New Year’s Eve. In the following days, they will visit their relatives. their relatives also will pay a return visit. One of the most important things that they will not forget to do is to worship their ancestors.</p>
19
-    `,
20
-    buildingId: '9f021a59b2a714822894c23ccca8c2db', // must change this
14
+
21
   }
15
   }
22
 
16
 
23
   render() {
17
   render() {
24
-    const { content, buildingId } = this.state
18
+
19
+    const { agreement, buildingId } = this.$router.params
25
 
20
 
26
     return (
21
     return (
27
       <View className="protocal-box">
22
       <View className="protocal-box">
28
         <View className="content">
23
         <View className="content">
29
-          <RichText nodes={content}/>
24
+          <RichText nodes={agreement} />
30
         </View>
25
         </View>
31
         <View className="contact">
26
         <View className="contact">
32
-          <ContactConsultant text="如有问题,请联系置业顾问" buildingId={buildingId}/>
27
+          <ContactConsultant text="如有问题,请联系置业顾问" buildingId={buildingId} />
33
         </View>
28
         </View>
34
         <Statement />
29
         <Statement />
35
       </View>
30
       </View>

+ 15
- 6
src/onlineSelling/pages/raiseProfile/index.js Visa fil

73
               <Text>查看全部({houseList.length})</Text>
73
               <Text>查看全部({houseList.length})</Text>
74
               <Text className='at-icon at-icon-chevron-right'></Text>
74
               <Text className='at-icon at-icon-chevron-right'></Text>
75
             </View>}
75
             </View>}
76
-
77
           </View>
76
           </View>
78
         </View>
77
         </View>
79
-        <RaiseCard summary={houseList[0]} type="raiseProfile" style="height:280rpx" />
78
+        <RaiseCard summary={houseList[0]} type="raiseProfile" style="height:auto" />
80
       </Block>
79
       </Block>
81
     )
80
     )
82
   }
81
   }
168
     num = num.replace(reg, '$1');
167
     num = num.replace(reg, '$1');
169
     num = this.toDecimal2(num)
168
     num = this.toDecimal2(num)
170
     return num
169
     return num
171
-  };
170
+  }
171
+  toAgreement(agreement, buildingId) {
172
+    Taro.navigateTo({
173
+      url: `/onlineSelling/pages/protocol/index?agreement=${agreement}&buildingId=${buildingId}`
174
+    })
175
+  }
176
+
172
   render() {
177
   render() {
173
-    const { buildingId, raiseDeatil, orderDetail, refundOrder } = this.state;
178
+    const { buildingId, raiseDeatil, orderDetail, refundOrder, raiseOrder } = this.state;
174
 
179
 
175
 
180
 
176
     // 认筹信息
181
     // 认筹信息
183
     // 缴费信息
188
     // 缴费信息
184
     const payInfo = [
189
     const payInfo = [
185
       { head: '缴费方式', body: `${raiseDeatil.payType == 'onLine' ? '线上缴费' : '线下缴费'}` },
190
       { head: '缴费方式', body: `${raiseDeatil.payType == 'onLine' ? '线上缴费' : '线下缴费'}` },
186
-      { head: '实际支付费用', body: this.regFenToYuan(orderDetail.totalFee)+'元' },
191
+      { head: '实际支付费用', body: this.regFenToYuan(orderDetail.totalFee) + '元' },
187
       { head: '缴费成功时间', body: dayjs(orderDetail.payTime).format('YYYY/MM/DD HH:mm:ss') },
192
       { head: '缴费成功时间', body: dayjs(orderDetail.payTime).format('YYYY/MM/DD HH:mm:ss') },
188
     ]
193
     ]
189
 
194
 
192
       { head: '退费状态', body: refundOrder.payStatus == 'refunded' ? '退费完成' : '退费中' },
197
       { head: '退费状态', body: refundOrder.payStatus == 'refunded' ? '退费完成' : '退费中' },
193
       { head: '退费结果', body: refundOrder.payStatus == 'refunded' ? '成功' : '失败' },
198
       { head: '退费结果', body: refundOrder.payStatus == 'refunded' ? '成功' : '失败' },
194
       { head: '退费发起时间', body: dayjs(refundOrder.createDate).format('YYYY/MM/DD HH:mm:ss') },
199
       { head: '退费发起时间', body: dayjs(refundOrder.createDate).format('YYYY/MM/DD HH:mm:ss') },
195
-      { head: '实退费用', body: this.regFenToYuan(refundOrder.totalFee)+'元' },
200
+      { head: '实退费用', body: this.regFenToYuan(refundOrder.totalFee) + '元' },
196
       { head: '退费到账时间', body: dayjs(refundOrder.payTime).format('YYYY/MM/DD HH:mm:ss') },
201
       { head: '退费到账时间', body: dayjs(refundOrder.payTime).format('YYYY/MM/DD HH:mm:ss') },
197
       { head: '退费原因', desc: raiseDeatil.refundReason },
202
       { head: '退费原因', desc: raiseDeatil.refundReason },
198
     ]
203
     ]
213
           <View className="tip">{raiseDeatil.payDescription || ''}</View>
218
           <View className="tip">{raiseDeatil.payDescription || ''}</View>
214
           {raiseDeatil.status == '0' && this.renderCancelReason()}
219
           {raiseDeatil.status == '0' && this.renderCancelReason()}
215
           {raiseDeatil.payStatus == 'unpaid' && this.renderUnpayNotice()}
220
           {raiseDeatil.payStatus == 'unpaid' && this.renderUnpayNotice()}
221
+          <View className="raise-flex">
222
+            <View className="date">认筹提交时间 </View>
223
+            <View className="agreement" onClick={() => this.toAgreement(raiseOrder.payProtocol, raiseOrder.buildingId)}>线上选房协议<Text className="right-icon"></Text></View>
224
+          </View>
216
           <View>
225
           <View>
217
             <CellBlock dataset={raiseInfo} />
226
             <CellBlock dataset={raiseInfo} />
218
             {raiseDeatil.consultantInfo && <ConsultantItem
227
             {raiseDeatil.consultantInfo && <ConsultantItem

+ 23
- 0
src/onlineSelling/pages/raiseProfile/index.scss Visa fil

128
     }
128
     }
129
   }
129
   }
130
 }
130
 }
131
+.raise-flex{
132
+  display: flex;
133
+  align-items: center;
134
+  justify-content: space-between;
135
+  .date{
136
+    font-size: 28px;
137
+    color: #666;
138
+  }
139
+  .agreement{
140
+    color: #BB9C79;
141
+    font-size: 32px;
142
+    display: flex;
143
+    align-items: center;
144
+     .right-icon{
145
+      width:20px;
146
+      height:20px;
147
+      border-top: 2px solid #999;
148
+      border-right: 2px solid #999;
149
+      transform:rotate(45deg);
150
+      display: inline-block;
151
+    }
152
+  }
153
+}