Parcourir la source

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

张延森 il y a 5 ans
Parent
révision
e5b6144e23

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

@@ -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"',

+ 5
- 4
src/components/charts/Line.js Voir le fichier

@@ -35,9 +35,8 @@ export default class LineChart extends Component {
35 35
 
36 36
   // 禁止 props 变更时渲染
37 37
   shouldComponentUpdate(nextProps) {
38
-    console.log('------------>', this.props, nextProps)
39 38
     if (nextProps.source && nextProps.source.length) {
40
-      this.refreshChart(this.props.source)
39
+      this.refreshChart(nextProps.source)
41 40
     }
42 41
 
43 42
     return false
@@ -78,7 +77,7 @@ export default class LineChart extends Component {
78 77
         left: '10%',
79 78
         right: '8%',
80 79
         bottom: '10%',
81
-        top: '6%',
80
+        top: '10%',
82 81
       },
83 82
       series: [],
84 83
     }
@@ -126,7 +125,7 @@ export default class LineChart extends Component {
126 125
 
127 126
   refreshChart(source) {
128 127
     const options = this.createOptions(source)
129
-    console.log(source,"source")
128
+
130 129
     if (!this.echart) {
131 130
       if (this.ecComponent) {
132 131
         const initFunc = initChart(this.handleChart.bind(this), options)
@@ -140,6 +139,8 @@ export default class LineChart extends Component {
140 139
   }
141 140
 
142 141
   render() {
142
+    // this.refreshChart(this.props.source)
143
+
143 144
     return (
144 145
       <View className="map-container">
145 146
         <ec-canvas ref={this.handleEcComponent} ec={this.state.ec}></ec-canvas>

+ 1
- 1
src/components/star/index.js Voir le fichier

@@ -25,7 +25,7 @@ export default class Star extends Component {
25 25
     }
26 26
     return (
27 27
       <View className="star">
28
-        {classNameArr.map((cls,index) => <Text className={`star__icon iconfont ${cls}`} key={index} ></Text>)}
28
+        {classNameArr.map((cls,index) => <Text className={`star__icon iconfont ${cls}`} key={index+'arr'} ></Text>)}
29 29
         <Text className="star__txt">{_value}</Text>
30 30
       </View>
31 31
     )

+ 1
- 1
src/pages/agent/client/index.js Voir le fichier

@@ -113,7 +113,7 @@ export default class Index extends Component {
113 113
               {
114 114
                 list.map((item, index) => {
115 115
                   return (
116
-                    <View className='client__list' key={index} onClick={this.navigateTo.bind(this, item.customerId)}>
116
+                    <View className='client__list' key={index+'client'} onClick={this.navigateTo.bind(this, item.customerId)}>
117 117
                       <Image className='bg' src={item.verifyStatus == 2 ? require('@assets/person/card1.png') : require('@assets/person/card2.png')}></Image>
118 118
                       <View className='client'>
119 119
                         <View className='client__status2'>

+ 1
- 1
src/pages/agent/progress/index.js Voir le fichier

@@ -161,7 +161,7 @@ export default class Index extends Component {
161 161
               {
162 162
                 this.state.processData.map((item, index) => {
163 163
                   return (
164
-                    <View className='step_tip' key={index}>
164
+                    <View className='step_tip' key={index+'step'}>
165 165
                       <Icon type={item.icon} size="20" color={item.color} />
166 166
                       <Text className={index === 3 ? 'strip hide' : 'strip'}></Text>
167 167
                     </View>

+ 1
- 1
src/pages/im/index.js Voir le fichier

@@ -539,7 +539,7 @@ export default class Chat extends Component {
539 539
                 {/* <View className="prompt__title">常见问题咨询</View> */}
540 540
                 {prompts.map((text, index) => (
541 541
                   <View
542
-                    key={index}
542
+                    key={index+'im'}
543 543
                     className="prompt__item"
544 544
                     onClick={this.handleIssueClick.bind(this, text)}>
545 545
                     <Text>{text}</Text>

+ 20
- 16
src/pages/person/customerAnalysis/analysis.js Voir le fichier

@@ -1,6 +1,7 @@
1 1
 import Taro, { Component } from '@tarojs/taro';
2 2
 import Authorize from '@components/authorize'
3 3
 import { View } from "@tarojs/components";
4
+import dayjs from 'dayjs'
4 5
 import './index.scss'
5 6
 import { AtTabs, AtTabsPane, AtProgress } from 'taro-ui'
6 7
 import "taro-ui/dist/style/components/tabs.scss"
@@ -46,18 +47,34 @@ export default class analysis extends Taro.Component {
46 47
           sexInfo: res || []
47 48
         })
48 49
       })
50
+      getEchartDailyInfo('follow').then(res => {
51
+        this.setState({
52
+          chartInfo: res.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum }))
53
+        })
54
+      })
55
+
49 56
     } else if (value == '1') {
50 57
       querySexInfo('follow').then(res => {
51 58
         this.setState({
52 59
           sexInfo: res || []
53 60
         })
54 61
       })
62
+      getEchartDailyInfo('follow').then(res => {
63
+        this.setState({
64
+          chartInfo: res.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum }))
65
+        })
66
+      })
55 67
     } else {
56 68
       querySexInfo('visite ').then(res => {
57 69
         this.setState({
58 70
           sexInfo: res || []
59 71
         })
60 72
       })
73
+      getEchartDailyInfo('visite').then(res => {
74
+        this.setState({
75
+          chartInfo: res.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum }))
76
+        })
77
+      })
61 78
     }
62 79
 
63 80
     this.setState({
@@ -73,13 +90,8 @@ export default class analysis extends Taro.Component {
73 90
       })
74 91
     })
75 92
     getEchartDailyInfo('new').then(res => {
76
-      let arr = []
77
-      res.map((item, index) => {
78
-        arr.push({ value: item.customerNum, name: item.day })
79
-      })
80
-      console.log(arr, "88888888888888888888888888888888888")
81 93
       this.setState({
82
-        chartInfo: arr || []
94
+        chartInfo: res.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum }))
83 95
       })
84 96
     })
85 97
   }
@@ -88,28 +100,20 @@ export default class analysis extends Taro.Component {
88 100
     const params = current == 0 ? 'new' : current == 1 ? 'follow' : 'visite'
89 101
     if (inx == 0) {
90 102
       getEchartDailyInfo(params).then(res => {
91
-
92
-
93
-        let arr = []
94
-        res.map((item, index) => {
95
-          arr.push({ value: item.customerNum, name: item.day })
96
-        })
97
-        console.log(arr, "88888888888888888888888888888888888")
98 103
         this.setState({
99
-          chartInfo: arr || []
104
+          chartInfo: res.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum }))
100 105
         })
101 106
       })
102 107
     } else {
103 108
       getEchartMonthInfo(params).then(res => {
104
-
105 109
         this.setState({
110
+          chartInfo: res.map(x => ({ name: `${x.month.substr(4)}月`, value: x.customerNum }))
106 111
         })
107 112
       })
108 113
     }
109 114
     this.setState({
110 115
       checkedWhich: inx
111 116
     })
112
-
113 117
   }
114 118
 
115 119
   render() {

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

@@ -46,7 +46,7 @@ export default class SwiperBanner extends Component {
46 46
         >
47 47
           {list.map((item, index) => (
48 48
             <SwiperItem
49
-              key={index}
49
+              key={index+'swiper'}
50 50
               onClick={this.onBannerClick.bind(this, item)}
51 51
               className='home-banner__swiper-item'
52 52
             >

+ 12
- 24
src/pages/project/detail/index.js Voir le fichier

@@ -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 Voir le fichier

@@ -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
 // 户型

+ 2
- 2
src/pages/project/list/filter/index.js Voir le fichier

@@ -218,7 +218,7 @@ export default class Index extends Component {
218 218
         {
219 219
           tabs[tabIndex].list.map((item, index) => (
220 220
             <View
221
-              key={index}
221
+              key={index+'tab'}
222 222
               className={`row ${selectedIndex[tabIndex].includes(index) ? 'active' : ''}`}
223 223
               onClick={this.handleFilterItemClick.bind(this, index)}>
224 224
               {item.name || item.buildingTypeName || item}
@@ -255,7 +255,7 @@ export default class Index extends Component {
255 255
           {
256 256
             list.map((text, index) => (
257 257
               <View
258
-                key={index}
258
+                key={index+'list'}
259 259
                 className={`price-item ${selectedIndex[tabIndex].includes(index) ? 'selected' : ''}`}
260 260
                 onClick={this.handleFilterItemClick.bind(this, index)}>
261 261
                 {text}

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

@@ -39,7 +39,7 @@ export default class SwiperBanner extends Component {
39 39
           {list.map((item, index) => (
40 40
 
41 41
             <SwiperItem
42
-              key={index}
42
+            key={index+'swiper2'}
43 43
               onClick={this.onBannerClick.bind(this, item)}
44 44
               className='home-banner__swiper-item'
45 45
             >

+ 1
- 1
src/pages/shop/banner/index.js Voir le fichier

@@ -29,7 +29,7 @@ export default class SwiperBanner extends Component {
29 29
         >
30 30
           {list.map((item, index) => (
31 31
             <SwiperItem
32
-              key={index}
32
+            key={index+'swiper3'}
33 33
               onClick={this.onBannerClick.bind(this, item)}
34 34
               className='home-banner__swiper-item'
35 35
             >