xujing 5 年前
父节点
当前提交
7374c9c97f

+ 1
- 1
src/onlineSelling/pages/raiseMoney/Certification.js 查看文件

184
               </Block>}
184
               </Block>}
185
               {manualErr && <Block>
185
               {manualErr && <Block>
186
                 <View className="tip" style="margin-top:14rpx;color:#F4333B">手动签署失败</View>
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
               </Block>}
188
               </Block>}
189
             </Block>
189
             </Block>
190
             }
190
             }

+ 2
- 2
src/onlineSelling/pages/raiseMoney/index.js 查看文件

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

+ 13
- 10
src/onlineSelling/pages/raiseMoney/signResult.js 查看文件

31
       contractCheck(({ raiseRecordId: storageId || raiseRecordId, showToast: false })).then(res => {
31
       contractCheck(({ raiseRecordId: storageId || raiseRecordId, showToast: false })).then(res => {
32
         Taro.hideToast()
32
         Taro.hideToast()
33
         this.setState({
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
         this.setState({
38
         this.setState({
39
           raiseDetail: res.taRaiseRecord || {},
39
           raiseDetail: res.taRaiseRecord || {},
40
 
40
 
115
   renderBtn() {
115
   renderBtn() {
116
     const storageId = Taro.getStorageSync('raiseRecordId')
116
     const storageId = Taro.getStorageSync('raiseRecordId')
117
     const { result = {}, raiseDetail = {} } = this.state
117
     const { result = {}, raiseDetail = {} } = this.state
118
-    const status = result ? result.status : ''
118
+    const status = this.$router.params.result_code == 3000 ? '1' : '2'
119
     const { id: raiseRecordId } = this.$router.params
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
     return (
122
     return (
122
       <View className="bottombar">
123
       <View className="bottombar">
123
         <View className="bt-nav__left">
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
             <Image src={transferImage(require('@/assets/news/property.png'))} style="width:42rpx;height:42rpx"></Image>
126
             <Image src={transferImage(require('@/assets/news/property.png'))} style="width:42rpx;height:42rpx"></Image>
126
             <Text className="text">查看项目</Text>
127
             <Text className="text">查看项目</Text>
127
           </Button>
128
           </Button>
133
             <Image src={transferImage(require('../../assets/consult.png'))} style="width:36rpx;height:40rpx"></Image>
134
             <Image src={transferImage(require('../../assets/consult.png'))} style="width:36rpx;height:40rpx"></Image>
134
             <Text className="text">置业顾问</Text>
135
             <Text className="text">置业顾问</Text>
135
           </Button>}
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
             <Image src={transferImage(require('../../assets/see.png'))} style="width:42rpx;height:40rpx"></Image>
138
             <Image src={transferImage(require('../../assets/see.png'))} style="width:42rpx;height:40rpx"></Image>
138
             <Text className="text" style="color:#E4A938" >查看合同</Text>
139
             <Text className="text" style="color:#E4A938" >查看合同</Text>
139
           </Button>}
140
           </Button>}
143
           </Button>} */}
144
           </Button>} */}
144
 
145
 
145
         </View>
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
         </Button>
149
         </Button>
149
       </View>
150
       </View>
151
   }
152
   }
152
 
153
 
153
   render() {
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
     const failInfo = { title: '合同签署失败', desc: '签署失败描述' }
157
     const failInfo = { title: '合同签署失败', desc: '签署失败描述' }
157
     const showIcon = status == 1 ? require('../../assets/success2.png') : status == 2 ? require('../../assets/fail2.png') : ''
158
     const showIcon = status == 1 ? require('../../assets/success2.png') : status == 2 ? require('../../assets/fail2.png') : ''
158
     const showTitle = status == 1 ? '恭喜已成功签署合同' : status == 2 ? failInfo.title : ''
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
     return (
163
     return (
161
       <View className="result">
164
       <View className="result">
165
         {
168
         {
166
           status == 2 && (
169
           status == 2 && (
167
             <Block>
170
             <Block>
168
-              <View className="tip" style="margin-top:10rpx">{result.reason || ''}</View>
171
+              <View className="tip" style="margin-top:10rpx">{reason || ''}</View>
169
               <View className="tip" style="margin-top:10rpx">请到认筹单中尝试重新签署合同</View>
172
               <View className="tip" style="margin-top:10rpx">请到认筹单中尝试重新签署合同</View>
170
               <View className="tip" style="margin-top:10rpx">或联系您的专属置业顾问</View>
173
               <View className="tip" style="margin-top:10rpx">或联系您的专属置业顾问</View>
171
             </Block>
174
             </Block>

+ 2
- 2
src/onlineSelling/pages/raiseProfile/index.js 查看文件

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

+ 32
- 32
src/pages/project/panorama/index.js 查看文件

1
 import Taro, { Component } from '@tarojs/taro'
1
 import Taro, { Component } from '@tarojs/taro'
2
 import { WebView } from '@tarojs/components'
2
 import { WebView } from '@tarojs/components'
3
-import { contractUser, contractCheck } from '@/services/project'
3
+// import { contractUser, contractCheck } from '@/services/project'
4
 
4
 
5
 export default class Panorama extends Component {
5
 export default class Panorama extends Component {
6
   state = {}
6
   state = {}
7
   // tk = undefined
7
   // tk = undefined
8
-  tk2 = undefined
8
+  // tk2 = undefined
9
   componentWillMount() {
9
   componentWillMount() {
10
-    const { from = '', id: raiseRecordId, consultantName, consultantId } = this.$router.params
10
+    // const { from = '', id: raiseRecordId, consultantName, consultantId } = this.$router.params
11
     // if (from == 'raiseProfile') {
11
     // if (from == 'raiseProfile') {
12
     //   console.log('!!!!')
12
     //   console.log('!!!!')
13
     //   this.tk = setInterval(() => {
13
     //   this.tk = setInterval(() => {
23
     //     })
23
     //     })
24
     //   }, 5000)
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
   render() {
58
   render() {
59
     const url = decodeURIComponent(this.$router.params.url)
59
     const url = decodeURIComponent(this.$router.params.url)