张延森 5 years ago
parent
commit
f9d651c959
1 changed files with 10 additions and 3 deletions
  1. 10
    3
      src/onlineSelling/pages/raiseMoney/signResult.js

+ 10
- 3
src/onlineSelling/pages/raiseMoney/signResult.js View File

90
       url: `/onlineSelling/pages/houseList/index?id=${id}`
90
       url: `/onlineSelling/pages/houseList/index?id=${id}`
91
     })
91
     })
92
   }
92
   }
93
-  toSeeContract(url) {
93
+
94
+  toSeeContract = (url) => {
95
+    const { userInfo: { miniApp: { fddServerHost } } } = this.props
96
+
97
+    // 替换 location.origin 部分
98
+    const redirect = fddServerHost ? url.replace(/^http[^/]+\/\/[^/]+\//, fddServerHost) : url
99
+
94
     Taro.navigateTo({
100
     Taro.navigateTo({
95
-      url: `/pages/project/panorama/index?url=${encodeURIComponent(url)}`
101
+      url: `/pages/project/panorama/index?url=${encodeURIComponent(redirect)}`
96
     })
102
     })
97
   }
103
   }
104
+
98
   toDownloadContract(url) {
105
   toDownloadContract(url) {
99
     Taro.downloadFile({
106
     Taro.downloadFile({
100
       url,
107
       url,
118
     const status = this.$router.params.result_code == 3000 ? '1' : '2'
125
     const status = this.$router.params.result_code == 3000 ? '1' : '2'
119
     const { id: raiseRecordId } = this.$router.params
126
     const { id: raiseRecordId } = this.$router.params
120
     const viewUrl = this.$router.params.viewpdf_url ? decodeURIComponent(decodeURIComponent(this.$router.params.viewpdf_url)) : ''
127
     const viewUrl = this.$router.params.viewpdf_url ? decodeURIComponent(decodeURIComponent(this.$router.params.viewpdf_url)) : ''
121
-    console.log(viewUrl, "viewUrlviewUrlviewUrlviewUrlviewUrlviewUrlviewUrl")
128
+
122
     return (
129
     return (
123
       <View className="bottombar">
130
       <View className="bottombar">
124
         <View className="bt-nav__left">
131
         <View className="bt-nav__left">