xujing vor 5 Jahren
Ursprung
Commit
c08b35295a
1 geänderte Dateien mit 13 neuen und 14 gelöschten Zeilen
  1. 13
    14
      src/onlineSelling/pages/raiseMoney/index.js

+ 13
- 14
src/onlineSelling/pages/raiseMoney/index.js Datei anzeigen

@@ -731,10 +731,9 @@ export default class raiseMoney extends Component {
731 731
       url: `/onlineSelling/pages/houseList/index?id=${id}`
732 732
     })
733 733
   }
734
-  toSign = () => {
734
+  toSign() {
735 735
 
736 736
     const { signDetail, record = {} } = this.state
737
-    console.log('签署合同!!!!')
738 737
     const status = signDetail ? signDetail.status : ''
739 738
     const consultant = this.getConsultant()
740 739
     const { id: raiseRecordId } = this.$router.params
@@ -750,16 +749,16 @@ export default class raiseMoney extends Component {
750 749
       },
751 750
       complete() {
752 751
         // if (status == 0 || status == 1) {
753
-          if (signDetail.certifiedAddress) {
754
-            Taro.navigateTo({
755
-              url: `/pages/project/panorama/index?url=${encodeURIComponent(signDetail.certifiedAddress)}&from=raiseProfile&consultantInfo=${encodeURIComponent(consultant)}`
756
-            })
757
-          } else {
758
-            Taro.showToast({
759
-              title: '无可跳转的认证地址',
760
-              icon: 'none'
761
-            })
762
-          }
752
+        if (signDetail.certifiedAddress) {
753
+          Taro.navigateTo({
754
+            url: `/pages/project/panorama/index?url=${encodeURIComponent(signDetail.certifiedAddress)}&from=raiseProfile&consultantInfo=${encodeURIComponent(consultant)}`
755
+          })
756
+        } else {
757
+          Taro.showToast({
758
+            title: '无可跳转的认证地址',
759
+            icon: 'none'
760
+          })
761
+        }
763 762
         // } else {
764 763
         //   Taro.navigateTo({
765 764
         //     url: `/onlineSelling/pages/raiseMoney/Certification?id=${raiseRecordId || record.raiseRecordId}&consultantInfo=${encodeURIComponent(consultant)}`
@@ -788,9 +787,9 @@ export default class raiseMoney extends Component {
788 787
           </Button>
789 788
           {
790 789
             raiseDeatil.showContract == 1 && signDetail &&
791
-            <Button className='bt-nav__item' >
790
+            <Button className='bt-nav__item' onClick={() => this.toSign()}>
792 791
               <Image src={transferImage(require('../../assets/sign.png'))} style="width:42rpx;height:40rpx"></Image>
793
-              <Text className="text" style="color:#E4A938" onClick={this.toSign}>签署合同</Text>
792
+              <Text className="text" style="color:#E4A938" >签署合同</Text>
794 793
             </Button>
795 794
           }
796 795