xujing 5 years ago
parent
commit
934ec1d707
3 changed files with 10 additions and 8 deletions
  1. 4
    4
      config/dev.js
  2. 1
    1
      config/prod.js
  3. 5
    3
      src/pages/project/index.js

+ 4
- 4
config/dev.js View File

@@ -5,10 +5,10 @@ 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"',
10
-    // HOST: '"https://lt.pawoma.cn"',
11
-    // WSS_HOST: '"wss://lt.pawoma.cn"',
8
+    // HOST: '"https://dev.jinchengjiaye.com"',//测试
9
+    // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10
+    HOST: '"https://lt.pawoma.cn"',
11
+    WSS_HOST: '"wss://lt.pawoma.cn"',
12 12
     // HOST: '"http://192.168.2.51:8080"',
13 13
     // WSS_HOST: '"ws://192.168.2.51:8080"',
14 14
     Version: 'V3.5.5'

+ 1
- 1
config/prod.js View File

@@ -9,7 +9,7 @@ module.exports = {
9 9
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10 10
     HOST: '"https://lt.pawoma.cn"',
11 11
     WSS_HOST: '"wss://lt.pawoma.cn"',
12
-    Version:'V3.5.5_2019-12-26'
12
+    Version:'V3.5.5_2019-12-27'
13 13
   },
14 14
   weapp: {},
15 15
   h5: {}

+ 5
- 3
src/pages/project/index.js View File

@@ -116,11 +116,13 @@ export default class Index extends Component {
116 116
   }
117 117
   getIndexShareInfo() {
118 118
     getIndexShare().then(res => {
119
+
120
+      const shareInfo = (res || []).filter(item => item.imgType === 'index')[0]
119 121
       this.setState({
120
-        shareImg: (res || {}).imgUrl,
121
-        imgDocument: (res || {}).imgDocument,
122
+        shareImg: (shareInfo || {}).imgUrl,
123
+        imgDocument: (shareInfo || {}).imgDocument,
122 124
       })
123
-      console.log(res, '首页分享信息')
125
+      console.log(shareInfo, '首页分享信息')
124 126
     })
125 127
   }
126 128