xujing il y a 5 ans
Parent
révision
9a977e9c39
4 fichiers modifiés avec 12 ajouts et 12 suppressions
  1. 4
    4
      config/dev.js
  2. 4
    4
      config/prod.js
  3. 3
    3
      src/pages/news/detail/index.js
  4. 1
    1
      src/pages/project/h5Page.js

+ 4
- 4
config/dev.js Voir le fichier

@@ -5,12 +5,12 @@ module.exports = {
5 5
   defineConstants: {
6 6
     // HOST: '"http://47.101.36.130:8085"',//测试
7 7
     // WSS_HOST: '"wss://47.101.36.130:8085"',
8
-    // HOST: '"https://dev.jinchengjiaye.com"',//测试
9
-    // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
8
+    HOST: '"https://dev.jinchengjiaye.com"',//测试
9
+    WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10 10
     // HOST: '"https://lt.pawoma.cn"',
11 11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
12
-    HOST: '"http://192.168.2.51:8080"',
13
-    WSS_HOST: '"ws://192.168.2.51:8080"',
12
+    // HOST: '"http://192.168.2.51:8080"',
13
+    // WSS_HOST: '"ws://192.168.2.51:8080"',
14 14
     Version: 'V3.5.5'
15 15
   },
16 16
   weapp: {},

+ 4
- 4
config/prod.js Voir le fichier

@@ -3,10 +3,10 @@ module.exports = {
3 3
     NODE_ENV: '"production"'
4 4
   },
5 5
   defineConstants: {
6
-    HOST: '"http://192.168.2.54:8080"',
7
-    WSS_HOST: '"ws://192.168.2.54:8080"',
8
-    // HOST: '"https://dev.jinchengjiaye.com"',//测试
9
-    // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
6
+    // HOST: '"http://192.168.2.54:8080"',
7
+    // WSS_HOST: '"ws://192.168.2.54:8080"',
8
+    HOST: '"https://dev.jinchengjiaye.com"',//测试
9
+    WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10 10
     // HOST: '"https://lt.pawoma.cn"',
11 11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
12 12
     Version:'V3.5.5_2019-12-24'

+ 3
- 3
src/pages/news/detail/index.js Voir le fichier

@@ -219,7 +219,7 @@ export default class NewsDetail extends Component {
219 219
         }
220 220
       })
221 221
 
222
-      WxParse.wxParse('article', 'html', res.newsDetail, this.$scope, 0)
222
+      // WxParse.wxParse('article', 'html', res.newsDetail, this.$scope, 0)
223 223
       // 埋点
224 224
       savePoint({
225 225
         event: 'detail',
@@ -230,9 +230,9 @@ export default class NewsDetail extends Component {
230 230
         consultantId: consultantId,
231 231
         sharePersonId: recommender,
232 232
         data: '{}'
233
-      }).then(res => {
233
+      }).then(res2 => {
234 234
         this.setState({
235
-          recordId: res.recordId
235
+          recordId: res2.recordId
236 236
         })
237 237
         console.info('资讯详情')
238 238
       })

+ 1
- 1
src/pages/project/h5Page.js Voir le fichier

@@ -46,7 +46,7 @@ export default class Index extends Component {
46 46
     const firstShare = this.$router.params.firstShare || router.query.firstShare || ""
47 47
     const consultant = this.$router.params.consultant || router.query.consultant || ""
48 48
     const sharePersonId = this.$router.params.sharePersonId || router.query.sharePersonId || ""
49
-    const { h5Id } = this.state
49
+    const h5Id = this.state.h5Id || this.$router.params.id || router.query.id
50 50
 
51 51
     savePoint({
52 52
       event: 'detail',