|
@@ -16,6 +16,7 @@ export default class Certification extends Component {
|
16
|
16
|
state = {
|
17
|
17
|
signDetail: null,
|
18
|
18
|
autoErr: null,
|
|
19
|
+ manualErr: null,
|
19
|
20
|
userErr: null,
|
20
|
21
|
raiseDetail: {}
|
21
|
22
|
}
|
|
@@ -50,6 +51,10 @@ export default class Certification extends Component {
|
50
|
51
|
icon: 'none'
|
51
|
52
|
})
|
52
|
53
|
}
|
|
54
|
+ }).catch(err => {
|
|
55
|
+ this.setState({
|
|
56
|
+ manualErr: err.message || ''
|
|
57
|
+ })
|
53
|
58
|
})
|
54
|
59
|
// } else {
|
55
|
60
|
// Taro.navigateTo({
|
|
@@ -118,6 +123,10 @@ export default class Certification extends Component {
|
118
|
123
|
icon: 'none'
|
119
|
124
|
})
|
120
|
125
|
}
|
|
126
|
+ }).catch(err => {
|
|
127
|
+ this.setState({
|
|
128
|
+ manualErr: err.message || ''
|
|
129
|
+ })
|
121
|
130
|
})
|
122
|
131
|
// } else {
|
123
|
132
|
// Taro.navigateTo({
|
|
@@ -150,7 +159,7 @@ export default class Certification extends Component {
|
150
|
159
|
|
151
|
160
|
|
152
|
161
|
render() {
|
153
|
|
- const { signDetail, autoErr, userErr } = this.state
|
|
162
|
+ const { signDetail, autoErr, userErr, manualErr } = this.state
|
154
|
163
|
const status = signDetail ? signDetail.status : ''
|
155
|
164
|
const showIcon = status == 2 ? require('../../assets/success2.png') : (status == 0 || status == 1 || status == 4) ? require('../../assets/fail2.png') : require('../../assets/going.png')
|
156
|
165
|
|
|
@@ -168,11 +177,14 @@ export default class Certification extends Component {
|
168
|
177
|
{status == 4 && <View className="tip" style="margin-top:14rpx">不通过原因:{signDetail.reason || 'XXXXXX'}</View>}
|
169
|
178
|
|
170
|
179
|
{status == 2 && <Block>
|
171
|
|
- {!autoErr && <View className="tip" style="margin-top:14rpx">正在准备合同,请不要退出···</View>}
|
|
180
|
+ {!autoErr && !manualErr && < View className="tip" style="margin-top:14rpx">正在准备合同,请不要退出···</View>}
|
172
|
181
|
{autoErr && <Block>
|
173
|
182
|
<View className="tip" style="margin-top:14rpx;color:#F4333B">自动签署失败</View>
|
174
|
183
|
<View className="tip" style="margin-top:14rpx;color:#333">原因:{autoErr}</View>
|
175
|
|
- {/* <ContactConsultant contactClick={() => this.handleChatClick()} text="请联系专属置业顾问" style=" position: absolute;bottom: 9vh;" /> */}
|
|
184
|
+ </Block>}
|
|
185
|
+ {manualErr && <Block>
|
|
186
|
+ <View className="tip" style="margin-top:14rpx;color:#F4333B">手动签署失败</View>
|
|
187
|
+ <View className="tip" style="margin-top:14rpx;color:#333">原因:{autoErr}</View>
|
176
|
188
|
</Block>}
|
177
|
189
|
</Block>
|
178
|
190
|
}
|