Browse Source

Merge branch 'v3.5.1' of http://git.ycjcjy.com/zhiyuxing/miniapp-v3 into v3.5.1

# Conflicts:
#	src/pages/agent/recommend/index.js
许静 5 years ago
parent
commit
25df285487
2 changed files with 10 additions and 3 deletions
  1. 4
    2
      src/pages/card/index.js
  2. 6
    1
      src/pages/project/detail/index.js

+ 4
- 2
src/pages/card/index.js View File

@@ -426,6 +426,7 @@ export default class Index extends Component {
426 426
       return
427 427
     }
428 428
 
429
+    this.setState({ grantPhoneVisible: false })
429 430
     this.initPageData()
430 431
   }
431 432
 
@@ -440,10 +441,11 @@ export default class Index extends Component {
440 441
     const isSelf = personId === id
441 442
 
442 443
     const isConsultant = personType === ROLE_CODE['CONSULTANT']
443
-    const hadPhone = (phone || tel) ? true : false
444
+    const hadPhone = (phone || tel) ? true : false  // nb
444 445
     const visibleChatBtn = !isConsultant && !isSelf
445 446
     // const visibleConfirmModal = modalStatus && !isReport && !isSelf && (personType === ROLE_CODE['DRIFT'] || personType === ROLE_CODE['CUSTOMER'])
446 447
     const visibleConfirmModal = modalStatus && !isReport && !isSelf
448
+
447 449
     return (
448 450
       <Block>
449 451
         {/* 生成海报 */}
@@ -453,7 +455,7 @@ export default class Index extends Component {
453 455
           <AchievePhone user={userInfo.person} onSuccess={this.handleAuthPhoneSuccess}></AchievePhone>
454 456
         }
455 457
         {
456
-          visibleConfirmModal && (
458
+          !grantPhoneVisible && visibleConfirmModal && (
457 459
             <View className="modal">
458 460
               <View className="modal-mask" onClick={this.hideModal}></View>
459 461
               <View className="modal-body">

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

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