ソースを参照

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

许静 5 年 前
コミット
ed369b484a
共有3 個のファイルを変更した49 個の追加29 個の削除を含む
  1. 2
    2
      config/prod.js
  2. 12
    24
      src/pages/project/detail/index.js
  3. 35
    3
      src/pages/project/detail/index.scss

+ 2
- 2
config/prod.js ファイルの表示

@@ -3,8 +3,8 @@ module.exports = {
3 3
     NODE_ENV: '"production"'
4 4
   },
5 5
   defineConstants: {
6
-    HOST: '"http://192.168.0.72:8080"',
7
-    WSS_HOST: '"ws://192.168.0.72:8080"',
6
+    HOST: '"http://192.168.0.218:8080"',
7
+    WSS_HOST: '"ws://192.168.0.218:8080"',
8 8
     // HOST:  '"https://dev.jinchengjiaye.com"',
9 9
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10 10
     //   HOST: '"https://lt.pawoma.cn"',

+ 12
- 24
src/pages/project/detail/index.js ファイルの表示

@@ -904,6 +904,7 @@ export default class Index extends Component {
904 904
       </Block>
905 905
     )
906 906
   }
907
+  // 开始播放
907 908
   plagVideo () {
908 909
     let videoContext = wx.createVideoContext('myVideo')
909 910
     console.log()
@@ -914,29 +915,25 @@ export default class Index extends Component {
914 915
   }
915 916
 
916 917
   onPlay () {
917
-    
918
-    console.log()
918
+        console.log()
919 919
     this.setState({
920 920
       videoPlayShow: 'none'
921 921
     })
922
-   
923 922
   }
924 923
 
925 924
   onPause () {
926
-   
927 925
     this.setState({
928 926
       videoPlayShow: 'flex'
929 927
     })
930
-  
931 928
   }
932 929
 
930
+
933 931
   renderVideo () {
934 932
     const {videoPlayShow}  = this.state
935 933
     const { projectDetail } = this.props
936 934
     const { videoImage } = projectDetail
937 935
     const imgSrc = videoImage[0].url
938 936
 
939
-
940 937
     return (
941 938
       <View
942 939
         className="pro__banner"
@@ -954,29 +951,27 @@ export default class Index extends Component {
954 951
           id='myVideo'
955 952
           controls={false}
956 953
           // autoplay={false}
957
-
958 954
           // initialTime='0'
959
-         
960 955
           // loop={false}
961 956
           // muted={false}
957
+          
962 958
           show-mute-btn='true'
963 959
           onPlay={this.onPlay}
964 960
           show-center-play-btn='false'
965 961
           onPause= {this.onPause}
966
-          // show-center-play-btn= 'f'
962
+       
967 963
         ></Video>
968 964
         <Button className='pro__banner-btn' onClick={this.plagVideo} style={{ display: videoPlayShow  }}>
969 965
           <Image src={require('@assets/play.png')} mode='scaleToFill' className='pro__banner-btn-img'></Image>
970 966
         </Button>
971 967
 
972
-        {/* <Button className='pro__banner-btn' onClick={this.plagVideo} style={{ display: videoPlayShow }}>
973
-          <Image src={require('@assets/play.png')} mode='scaleToFill' className='pro__banner-btn-img'></Image>style={{ display: posterShow }}
974
-        </Button>
975
-
976
-        <Button className='pro__banner-btn' onClick={this.plagVideo} style={{ display: videoPlayShow }}>
977
-          <Image src={require('@assets/play.png')} mode='scaleToFill' className='pro__banner-btn-img'></Image>
978
-        </Button> */}
979
-
968
+        {/* <View className='pro__banner-voice' onClick={this.plagVideo} >
969
+          <Image src={require('@assets/voice.png')} mode='scaleToFill	' className='pro__banner-voice-img'></Image>
970
+        </View> */}
971
+{/* 
972
+        <View className='pro__banner-extend' onClick={this.fullScreen} >
973
+          <Image src={require('@assets/extend.png')} mode='scaleToFill	' className='pro__banner-extend-img'></Image>
974
+        </View> */}
980 975
       
981 976
       </View>
982 977
     )
@@ -988,8 +983,6 @@ export default class Index extends Component {
988 983
     })
989 984
   }
990 985
 
991
-
992
-
993 986
   render() {
994 987
     const { posterStatus, posterData, loaded, btnstate } = this.state
995 988
     const { projectDetail } = this.props
@@ -1023,7 +1016,6 @@ export default class Index extends Component {
1023 1016
 
1024 1017
               {btnstate === 1 && projectDetail.videoUrl != null && this.renderVideo()}
1025 1018
 
1026
-
1027 1019
               {btnstate === 1 && projectDetail.videoUrl != null && (<View className='media-btn'>
1028 1020
                 <View className='video-btn' style={{ background: ' rgba(187, 156, 121, 1)', color: 'rgba(255, 255, 255, 1)' }} >视频</View>
1029 1021
                 <View className='img-btn' onClick={() => this.setState({ btnstate: 0 })}>图片</View>
@@ -1034,13 +1026,11 @@ export default class Index extends Component {
1034 1026
                 <View className='img-btn' style={{ background: ' rgba(187, 156, 121, 1)', color: 'rgba(255, 255, 255, 1)' }}>图片</View>
1035 1027
               </View>)}
1036 1028
 
1037
-
1038 1029
               <ScrollView
1039 1030
                 enableBackToTop
1040 1031
                 className="wrap"
1041 1032
                 scrollY>
1042 1033
                 <View className='detail__main'>
1043
-
1044 1034
                   {/* 详情 */}
1045 1035
                   <View className='base-info'>
1046 1036
                     <View className='project__infor'>
@@ -1098,12 +1088,10 @@ export default class Index extends Component {
1098 1088
                           <Text className="label">物业费:</Text>{projectDetail.serviceFee || '暂无'}</View>
1099 1089
                       </View>
1100 1090
 
1101
-
1102 1091
                       {/* <View className='row'>
1103 1092
                         <Text className="label">装修标准:</Text>{projectDetail.decoration || '暂无'}
1104 1093
                       </View> */}
1105 1094
 
1106
-
1107 1095
                       {/* 围观人数 */}
1108 1096
                       <View className='watch__people__num'>
1109 1097
                         <View className='top__txt'>{total}人围观</View>

+ 35
- 3
src/pages/project/detail/index.scss ファイルの表示

@@ -19,7 +19,7 @@
19 19
     height: 64px;
20 20
     background: rgba(255, 255, 255, 1);
21 21
     border-radius: 12px;
22
-    top: 420px;
22
+    top: 440px;
23 23
     left: 284px;
24 24
     font-size: 30px;
25 25
     font-family: PingFangSC-Regular, PingFang SC;
@@ -48,7 +48,7 @@
48 48
 
49 49
 
50 50
   .wrap {
51
-    padding-top: 580px;
51
+    padding-top: 576px;
52 52
     background: transparent;
53 53
   }
54 54
 
@@ -802,12 +802,44 @@
802 802
     left: 320px;
803 803
     padding: 0;
804 804
     background: none;
805
-    &-img{
805
+
806
+    &-img {
806 807
       width: 110px;
807 808
       height: 78px;
808 809
     }
809 810
   }
810 811
 
812
+  &-voice {
813
+    width: 48px;
814
+    height: 48px;
815
+    position: absolute;
816
+    top: 440px;
817
+    right: 94px;
818
+    padding: 0;
819
+    background: none;
820
+
821
+    &-img {
822
+      width: 48px;
823
+    height: 48px;
824
+    
825
+    }
826
+  }
827
+  &-extend {
828
+    width: 48px;
829
+    height: 48px;
830
+    position: absolute;
831
+    top: 440px;
832
+    right: 30px;
833
+    padding: 0;
834
+    background: none;
835
+
836
+    &-img {
837
+      width: 48px;
838
+      height: 48px;
839
+     
840
+    }
841
+  }
842
+
811 843
 }
812 844
 
813 845
 // 户型