xujing 5 년 전
부모
커밋
62141090d9

+ 1
- 1
src/onlineSelling/components/RaiseCard/index.js 파일 보기

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

+ 5
- 10
src/onlineSelling/pages/protocol/index.js 파일 보기

@@ -11,25 +11,20 @@ export default class Protocol extends Component {
11 11
   }
12 12
 
13 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 17
   render() {
24
-    const { content, buildingId } = this.state
18
+
19
+    const { agreement, buildingId } = this.$router.params
25 20
 
26 21
     return (
27 22
       <View className="protocal-box">
28 23
         <View className="content">
29
-          <RichText nodes={content}/>
24
+          <RichText nodes={agreement} />
30 25
         </View>
31 26
         <View className="contact">
32
-          <ContactConsultant text="如有问题,请联系置业顾问" buildingId={buildingId}/>
27
+          <ContactConsultant text="如有问题,请联系置业顾问" buildingId={buildingId} />
33 28
         </View>
34 29
         <Statement />
35 30
       </View>

+ 15
- 6
src/onlineSelling/pages/raiseProfile/index.js 파일 보기

@@ -73,10 +73,9 @@ export default class Raise extends Component {
73 73
               <Text>查看全部({houseList.length})</Text>
74 74
               <Text className='at-icon at-icon-chevron-right'></Text>
75 75
             </View>}
76
-
77 76
           </View>
78 77
         </View>
79
-        <RaiseCard summary={houseList[0]} type="raiseProfile" style="height:280rpx" />
78
+        <RaiseCard summary={houseList[0]} type="raiseProfile" style="height:auto" />
80 79
       </Block>
81 80
     )
82 81
   }
@@ -168,9 +167,15 @@ export default class Raise extends Component {
168 167
     num = num.replace(reg, '$1');
169 168
     num = this.toDecimal2(num)
170 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 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,7 +188,7 @@ export default class Raise extends Component {
183 188
     // 缴费信息
184 189
     const payInfo = [
185 190
       { head: '缴费方式', body: `${raiseDeatil.payType == 'onLine' ? '线上缴费' : '线下缴费'}` },
186
-      { head: '实际支付费用', body: this.regFenToYuan(orderDetail.totalFee)+'元' },
191
+      { head: '实际支付费用', body: this.regFenToYuan(orderDetail.totalFee) + '元' },
187 192
       { head: '缴费成功时间', body: dayjs(orderDetail.payTime).format('YYYY/MM/DD HH:mm:ss') },
188 193
     ]
189 194
 
@@ -192,7 +197,7 @@ export default class Raise extends Component {
192 197
       { head: '退费状态', body: refundOrder.payStatus == 'refunded' ? '退费完成' : '退费中' },
193 198
       { head: '退费结果', body: refundOrder.payStatus == 'refunded' ? '成功' : '失败' },
194 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 201
       { head: '退费到账时间', body: dayjs(refundOrder.payTime).format('YYYY/MM/DD HH:mm:ss') },
197 202
       { head: '退费原因', desc: raiseDeatil.refundReason },
198 203
     ]
@@ -213,6 +218,10 @@ export default class Raise extends Component {
213 218
           <View className="tip">{raiseDeatil.payDescription || ''}</View>
214 219
           {raiseDeatil.status == '0' && this.renderCancelReason()}
215 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 225
           <View>
217 226
             <CellBlock dataset={raiseInfo} />
218 227
             {raiseDeatil.consultantInfo && <ConsultantItem

+ 23
- 0
src/onlineSelling/pages/raiseProfile/index.scss 파일 보기

@@ -128,3 +128,26 @@
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
+}