周立森 5 years ago
parent
commit
5b7ab60242
3 changed files with 12 additions and 6 deletions
  1. 4
    4
      config/dev.js
  2. 2
    1
      src/pages/agent/recommend/index.js
  3. 6
    1
      src/pages/project/detail/index.js

+ 4
- 4
config/dev.js View File

5
   defineConstants: {
5
   defineConstants: {
6
     // HOST: '"http://47.101.36.130:8085"',//测试
6
     // HOST: '"http://47.101.36.130:8085"',//测试
7
     // WSS_HOST: '"wss://47.101.36.130:8085"',
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
     // HOST: '"https://lt.pawoma.cn"',
10
     // HOST: '"https://lt.pawoma.cn"',
11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
12
-    HOST: '"http://192.168.0.84:8080"',
13
-    WSS_HOST: '"ws://192.168.0.84:8080"',
12
+    // HOST: '"http://192.168.0.84:8080"',
13
+    // WSS_HOST: '"ws://192.168.0.84:8080"',
14
   },
14
   },
15
   weapp: {},
15
   weapp: {},
16
   h5: {}
16
   h5: {}

+ 2
- 1
src/pages/agent/recommend/index.js View File

483
     const { person: { phone, tel } } = this.props.userInfo
483
     const { person: { phone, tel } } = this.props.userInfo
484
     return (
484
     return (
485
       <View style="width:100%;height:100%">
485
       <View style="width:100%;height:100%">
486
-      {!phone && !tel ? this.renderLogin() : this.renderDetail()}
486
+    {console.log(this.props.userInfo,'this.props.userInfo')}
487
+      {(!phone && !tel) ? this.renderLogin() : this.renderDetail()}
487
     </View>
488
     </View>
488
     );
489
     );
489
   }
490
   }

+ 6
- 1
src/pages/project/detail/index.js View File

946
     // })
946
     // })
947
     videoContext.play()
947
     videoContext.play()
948
   }
948
   }
949
-
949
+  bindended(){
950
+    let videoContext = wx.createVideoContext('myVideo')
951
+    console.log()
952
+    videoContext.seek(1)
953
+  }
950
   // onPlay () {
954
   // onPlay () {
951
   //   console.log()
955
   //   console.log()
952
   //   this.setState({
956
   //   this.setState({
983
           }}
987
           }}
984
           id='myVideo'
988
           id='myVideo'
985
           controls={true}
989
           controls={true}
990
+          bindended={this.bindended}
986
           // autoplay={false}
991
           // autoplay={false}
987
           // initialTime='0'
992
           // initialTime='0'
988
           // loop={true}
993
           // loop={true}