xujing 5 yıl önce
ebeveyn
işleme
3f1a3fc64a

+ 14
- 4
src/onlineSelling/pages/raiseMoney/Certification.js Dosyayı Görüntüle

@@ -16,6 +16,7 @@ export default class Certification extends Component {
16 16
   state = {
17 17
     signDetail: null,
18 18
     autoErr: null,
19
+    userErr: null,
19 20
   }
20 21
 
21 22
   componentWillMount() {
@@ -58,6 +59,10 @@ export default class Certification extends Component {
58 59
             })
59 60
           }
60 61
         })
62
+      }).catch(error => {
63
+        this.setState({
64
+          userErr: error.message || ''
65
+        })
61 66
       })
62 67
 
63 68
     })
@@ -97,7 +102,7 @@ export default class Certification extends Component {
97 102
 
98 103
 
99 104
   render() {
100
-    const { signDetail, autoErr } = this.state
105
+    const { signDetail, autoErr, userErr } = this.state
101 106
     const status = signDetail ? signDetail.status : ''
102 107
     const showIcon = status == 2 ? require('../../assets/success2.png') : (status == 0 || status == 1) ? require('../../assets/fail2.png') : status == 2 ? require('../../assets/fail2.png') : require('../../assets/going.png')
103 108
 
@@ -105,7 +110,7 @@ export default class Certification extends Component {
105 110
     return (
106 111
       <View className="result" style="height:100vh">
107 112
 
108
-        {!signDetail && this.renderLoading()}
113
+        {!signDetail && !userErr && this.renderLoading()}
109 114
         {
110 115
           signDetail &&
111 116
           <Block>
@@ -119,11 +124,16 @@ export default class Certification extends Component {
119 124
               {autoErr && <Block>
120 125
                 <View className="tip" style="margin-top:14rpx;color:#F4333B">自动签署失败</View>
121 126
                 <View className="tip" style="margin-top:14rpx;color:#333">原因:{autoErr}</View>
122
-                <View className="tip" style="margin-top:24rpx">请联系专属置业顾问解决</View>
123
-                <ContactConsultant contactClick={() => this.handleChatClick()} text="请联系专属置业顾问" style=" position: absolute;bottom: 9vh;" />
127
+                {/* <ContactConsultant contactClick={() => this.handleChatClick()} text="请联系专属置业顾问" style=" position: absolute;bottom: 9vh;" /> */}
124 128
               </Block>}
125 129
             </Block>
126 130
             }
131
+            {userErr && <View className="tip" style="margin-top:14rpx;color:#333">原因:{userErr}</View>}
132
+            {(autoErr || userErr) && <Block>
133
+              <View className="tip" style="margin-top:24rpx">请联系专属置业顾问解决</View>
134
+              <ContactConsultant contactClick={() => this.handleChatClick()} text="请联系专属置业顾问" style=" position: absolute;bottom: 9vh;" />
135
+            </Block>
136
+            }
127 137
 
128 138
             {(status == 0 || status == 1 || status == 4) && <View className="tip" style="margin-top:14rpx">请返回重新发起认证</View>}
129 139
 

+ 2
- 2
src/onlineSelling/pages/raiseProfile/index.js Dosyayı Görüntüle

@@ -27,7 +27,7 @@ export default class Raise extends Component {
27 27
     orderDetail: {},
28 28
     refundOrder: {},
29 29
     payDisable: true,
30
-    signDetail: {},
30
+    signDetail: null,
31 31
     contractDetail: null,
32 32
   }
33 33
 
@@ -47,7 +47,7 @@ export default class Raise extends Component {
47 47
         if (showContract == 1) {
48 48
           contractUser({ raiseRecordId, }).then(res => {
49 49
             this.setState({
50
-              signDetail: res || {}
50
+              signDetail: res || null
51 51
             })
52 52
           })
53 53
         }