|
@@ -11,8 +11,9 @@ import { queryRaiseDetail } from '@/services/project'
|
11
|
11
|
import { connect } from '@tarojs/redux'
|
12
|
12
|
import * as noticeType from '@/constants/common.js'
|
13
|
13
|
import './index.scss'
|
|
14
|
+import * as houseActions from '@/actions/house'
|
14
|
15
|
|
15
|
|
-@connect(({ user }) => ({ user }))
|
|
16
|
+@connect(({ user, house }) => ({ user, house }), { ...houseActions })
|
16
|
17
|
|
17
|
18
|
export default class Raise extends Component {
|
18
|
19
|
config = {
|
|
@@ -188,9 +189,14 @@ export default class Raise extends Component {
|
188
|
189
|
num = this.toDecimal2(num)
|
189
|
190
|
return num
|
190
|
191
|
}
|
191
|
|
- toAgreement(agreement, buildingId) {
|
|
192
|
+ toAgreement = () => {
|
|
193
|
+ const { raiseOrder } = this.state;
|
|
194
|
+ const { payProtocol, buildingId } = raiseOrder || {}
|
|
195
|
+
|
|
196
|
+ this.props.dispatchSetOnlineProtocol(payProtocol)
|
|
197
|
+
|
192
|
198
|
Taro.navigateTo({
|
193
|
|
- url: `/onlineSelling/pages/protocol/index?agreement=${agreement}&buildingId=${buildingId}`
|
|
199
|
+ url: `/onlineSelling/pages/protocol/index?buildingId=${buildingId}`
|
194
|
200
|
})
|
195
|
201
|
}
|
196
|
202
|
|
|
@@ -226,8 +232,8 @@ export default class Raise extends Component {
|
226
|
232
|
const otherInfo = [
|
227
|
233
|
{ head: '其他信息', body: '供核对数据使用' },
|
228
|
234
|
{ head: '认筹单编号', body: raiseDeatil.raiseRecordId || '', action: true },
|
229
|
|
- { head: '缴费单编号', body: raiseDeatil.orderId || '', action: true, hide: (raiseDeatil.payStatus != 'refunded' && raiseDeatil.payStatus != 'paid') || raiseDeatil.payType != 'onLine' },
|
230
|
|
- { head: '退费单编号', body: refundOrder.orderId || '', action: true, hide: raiseDeatil.payStatus != 'refunded' },
|
|
235
|
+ { head: '缴费单编号', body: raiseDeatil.tradeNo || '', action: true, hide: (raiseDeatil.payStatus != 'refunded' && raiseDeatil.payStatus != 'paid') || raiseDeatil.payType != 'onLine' },
|
|
236
|
+ { head: '退费单编号', body: refundOrder.refundNo || '', action: true, hide: raiseDeatil.payStatus != 'refunded' },
|
231
|
237
|
]
|
232
|
238
|
|
233
|
239
|
|
|
@@ -240,7 +246,7 @@ export default class Raise extends Component {
|
240
|
246
|
{raiseDeatil.payStatus == 'unpaid' && raiseDeatil.status == 1 && this.renderUnpayNotice()}
|
241
|
247
|
<View className="raise-flex">
|
242
|
248
|
<View className="date">认筹提交时间 {dayjs(raiseDeatil.createDate).format('YYYY/MM/DD HH:mm:ss')}</View>
|
243
|
|
- <View className="agreement" onClick={() => this.toAgreement(raiseOrder.payProtocol, raiseOrder.buildingId)}>线上选房协议<Text className="right-icon"></Text></View>
|
|
249
|
+ <View className="agreement" onClick={this.toAgreement}>在线选房协议<Text className="right-icon"></Text></View>
|
244
|
250
|
</View>
|
245
|
251
|
<View>
|
246
|
252
|
<CellBlock dataset={raiseInfo} />
|