xujing hace 5 años
padre
commit
7374c9c97f

+ 1
- 1
src/onlineSelling/pages/raiseMoney/Certification.js Ver fichero

@@ -184,7 +184,7 @@ export default class Certification extends Component {
184 184
               </Block>}
185 185
               {manualErr && <Block>
186 186
                 <View className="tip" style="margin-top:14rpx;color:#F4333B">手动签署失败</View>
187
-                <View className="tip" style="margin-top:14rpx;color:#333">原因:{autoErr}</View>
187
+                <View className="tip" style="margin-top:14rpx;color:#333">原因:{manualErr}</View>
188 188
               </Block>}
189 189
             </Block>
190 190
             }

+ 2
- 2
src/onlineSelling/pages/raiseMoney/index.js Ver fichero

@@ -749,12 +749,12 @@ export default class raiseMoney extends Component {
749 749
       },
750 750
       complete() {
751 751
         if (status == 2) {
752
-          Taro.navigateTo({
752
+          Taro.reLaunch({
753 753
             url: `/onlineSelling/pages/raiseMoney/Certification?id=${raiseRecordId || record.raiseRecordId}&consultantInfo=${encodeURIComponent(consultant)}`
754 754
           })
755 755
         } else {
756 756
           if (signDetail.certifiedAddress) {
757
-            Taro.navigateTo({
757
+            Taro.reLaunch({
758 758
               url: `/pages/project/panorama/index?url=${encodeURIComponent(signDetail.certifiedAddress)}&from=raiseProfile&consultantInfo=${encodeURIComponent(consultant)}`
759 759
             })
760 760
           } else {

+ 13
- 10
src/onlineSelling/pages/raiseMoney/signResult.js Ver fichero

@@ -31,10 +31,10 @@ export default class signResult extends Component {
31 31
       contractCheck(({ raiseRecordId: storageId || raiseRecordId, showToast: false })).then(res => {
32 32
         Taro.hideToast()
33 33
         this.setState({
34
-          result: res
34
+          result: res || {}
35 35
         })
36 36
       })
37
-      queryRaiseDetail( storageId || raiseRecordId ).then(res => {
37
+      queryRaiseDetail(storageId || raiseRecordId).then(res => {
38 38
         this.setState({
39 39
           raiseDetail: res.taRaiseRecord || {},
40 40
 
@@ -115,13 +115,14 @@ export default class signResult extends Component {
115 115
   renderBtn() {
116 116
     const storageId = Taro.getStorageSync('raiseRecordId')
117 117
     const { result = {}, raiseDetail = {} } = this.state
118
-    const status = result ? result.status : ''
118
+    const status = this.$router.params.result_code == 3000 ? '1' : '2'
119 119
     const { id: raiseRecordId } = this.$router.params
120
-
120
+    const viewUrl = this.$router.params.viewpdf_url ? decodeURIComponent(decodeURIComponent(this.$router.params.viewpdf_url)) : ''
121
+    console.log(viewUrl, "viewUrlviewUrlviewUrlviewUrlviewUrlviewUrlviewUrl")
121 122
     return (
122 123
       <View className="bottombar">
123 124
         <View className="bt-nav__left">
124
-          <Button class='bt-nav__item' onClick={() => this.toBuilding(result.buildingId || raiseDetail.buildingId)}>
125
+          <Button class='bt-nav__item' onClick={() => this.toBuilding(raiseDetail.buildingId || result.buildingId)}>
125 126
             <Image src={transferImage(require('@/assets/news/property.png'))} style="width:42rpx;height:42rpx"></Image>
126 127
             <Text className="text">查看项目</Text>
127 128
           </Button>
@@ -133,7 +134,7 @@ export default class signResult extends Component {
133 134
             <Image src={transferImage(require('../../assets/consult.png'))} style="width:36rpx;height:40rpx"></Image>
134 135
             <Text className="text">置业顾问</Text>
135 136
           </Button>}
136
-          {status == 1 && <Button className='bt-nav__item' onClick={() => this.toSeeContract(result.contractViewUrl)} >
137
+          {status == 1 && viewUrl && <Button className='bt-nav__item' onClick={() => this.toSeeContract(viewUrl)} >
137 138
             <Image src={transferImage(require('../../assets/see.png'))} style="width:42rpx;height:40rpx"></Image>
138 139
             <Text className="text" style="color:#E4A938" >查看合同</Text>
139 140
           </Button>}
@@ -143,7 +144,7 @@ export default class signResult extends Component {
143 144
           </Button>} */}
144 145
 
145 146
         </View>
146
-        <Button className="btn" onClick={() => this.toRaiseProfile(result.invoiceTargetId || storageId || raiseRecordId)}>
147
+        <Button className="btn" onClick={() => this.toRaiseProfile(storageId || result.invoiceTargetId || raiseRecordId)}>
147 148
           认筹单
148 149
         </Button>
149 150
       </View>
@@ -151,11 +152,13 @@ export default class signResult extends Component {
151 152
   }
152 153
 
153 154
   render() {
154
-    const { result = {} } = this.state
155
-    const status = result ? result.status : ''
155
+    // const { result = {} } = this.state
156
+    const status = this.$router.params.result_code == 3000 ? '1' : '2'
156 157
     const failInfo = { title: '合同签署失败', desc: '签署失败描述' }
157 158
     const showIcon = status == 1 ? require('../../assets/success2.png') : status == 2 ? require('../../assets/fail2.png') : ''
158 159
     const showTitle = status == 1 ? '恭喜已成功签署合同' : status == 2 ? failInfo.title : ''
160
+    const reason = this.$router.params.result_desc ? decodeURIComponent(decodeURIComponent(this.$router.params.result_desc)) : ''
161
+    console.log(reason, "reasonreasonreasonreasonreason")
159 162
 
160 163
     return (
161 164
       <View className="result">
@@ -165,7 +168,7 @@ export default class signResult extends Component {
165 168
         {
166 169
           status == 2 && (
167 170
             <Block>
168
-              <View className="tip" style="margin-top:10rpx">{result.reason || ''}</View>
171
+              <View className="tip" style="margin-top:10rpx">{reason || ''}</View>
169 172
               <View className="tip" style="margin-top:10rpx">请到认筹单中尝试重新签署合同</View>
170 173
               <View className="tip" style="margin-top:10rpx">或联系您的专属置业顾问</View>
171 174
             </Block>

+ 2
- 2
src/onlineSelling/pages/raiseProfile/index.js Ver fichero

@@ -237,12 +237,12 @@ export default class Raise extends Component {
237 237
       },
238 238
       complete() {
239 239
         if (status == 2) {
240
-          Taro.navigateTo({
240
+          Taro.reLaunch({
241 241
             url: `/onlineSelling/pages/raiseMoney/Certification?id=${raiseRecordId}&consultantName=${encodeURIComponent(name || userName || '')}&consultantId=${consultantPersonId || personId || ''}`
242 242
           })
243 243
         } else {
244 244
           if (signDetail.certifiedAddress) {
245
-            Taro.navigateTo({
245
+            Taro.reLaunch({
246 246
               url: `/pages/project/panorama/index?url=${encodeURIComponent(signDetail.certifiedAddress)}&from=raiseProfile&consultantName=${encodeURIComponent(name || userName || '')}&consultantId=${consultantPersonId || personId || ''}&id=${raiseRecordId}`
247 247
             })
248 248
           } else {

+ 32
- 32
src/pages/project/panorama/index.js Ver fichero

@@ -1,13 +1,13 @@
1 1
 import Taro, { Component } from '@tarojs/taro'
2 2
 import { WebView } from '@tarojs/components'
3
-import { contractUser, contractCheck } from '@/services/project'
3
+// import { contractUser, contractCheck } from '@/services/project'
4 4
 
5 5
 export default class Panorama extends Component {
6 6
   state = {}
7 7
   // tk = undefined
8
-  tk2 = undefined
8
+  // tk2 = undefined
9 9
   componentWillMount() {
10
-    const { from = '', id: raiseRecordId, consultantName, consultantId } = this.$router.params
10
+    // const { from = '', id: raiseRecordId, consultantName, consultantId } = this.$router.params
11 11
     // if (from == 'raiseProfile') {
12 12
     //   console.log('!!!!')
13 13
     //   this.tk = setInterval(() => {
@@ -23,37 +23,37 @@ export default class Panorama extends Component {
23 23
     //     })
24 24
     //   }, 5000)
25 25
     // }
26
-    if (from == 'contractManual') {
27
-      console.log('contractManual!!!!')
28
-      this.tk2 = setInterval(() => {
29
-        contractCheck({ raiseRecordId, showToast: false }).then(res => {
30
-          console.log(res, res.status, 'contractManual每5秒请求一次!!!')
31
-          if (res.status != 0) {
32
-            clearInterval(this.tk2)
33
-            Taro.navigateTo({
34
-              url: `/onlineSelling/pages/raiseMoney/signResult?status=${res.status}&id=${raiseRecordId}&consultantName=${encodeURIComponent(consultantName)}&consultantId=${consultantId}`
35
-            })
36
-          }
37
-        })
38
-      }, 5000)
39
-    }
40
-  }
41
-  componentDidHide() {
42
-    // if (this.tk) {
43
-    //   clearInterval(this.tk)
44
-    // }
45
-    if (this.tk2) {
46
-      clearInterval(this.tk2)
47
-    }
48
-  }
49
-  componentWillUnmount() {
50
-    // if (this.tk) {
51
-    //   clearInterval(this.tk)
26
+    // if (from == 'contractManual') {
27
+    //   console.log('contractManual!!!!')
28
+    //   this.tk2 = setInterval(() => {
29
+    //     contractCheck({ raiseRecordId, showToast: false }).then(res => {
30
+    //       console.log(res, res.status, 'contractManual每5秒请求一次!!!')
31
+    //       if (res.status != 0) {
32
+    //         clearInterval(this.tk2)
33
+    //         Taro.navigateTo({
34
+    //           url: `/onlineSelling/pages/raiseMoney/signResult?status=${res.status}&id=${raiseRecordId}&consultantName=${encodeURIComponent(consultantName)}&consultantId=${consultantId}`
35
+    //         })
36
+    //       }
37
+    //     })
38
+    //   }, 5000)
52 39
     // }
53
-    if (this.tk2) {
54
-      clearInterval(this.tk2)
55
-    }
56 40
   }
41
+  // componentDidHide() {
42
+  //   if (this.tk) {
43
+  //     clearInterval(this.tk)
44
+  //   }
45
+  //   if (this.tk2) {
46
+  //     clearInterval(this.tk2)
47
+  //   }
48
+  // }
49
+  // componentWillUnmount() {
50
+  //   if (this.tk) {
51
+  //     clearInterval(this.tk)
52
+  //   }
53
+  //   if (this.tk2) {
54
+  //     clearInterval(this.tk2)
55
+  //   }
56
+  // }
57 57
 
58 58
   render() {
59 59
     const url = decodeURIComponent(this.$router.params.url)