Browse Source

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

张延森 5 years ago
parent
commit
e5b6144e23

+ 2
- 2
config/prod.js View File

3
     NODE_ENV: '"production"'
3
     NODE_ENV: '"production"'
4
   },
4
   },
5
   defineConstants: {
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
     // HOST:  '"https://dev.jinchengjiaye.com"',
8
     // HOST:  '"https://dev.jinchengjiaye.com"',
9
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
9
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10
     //   HOST: '"https://lt.pawoma.cn"',
10
     //   HOST: '"https://lt.pawoma.cn"',

+ 5
- 4
src/components/charts/Line.js View File

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

+ 1
- 1
src/components/star/index.js View File

25
     }
25
     }
26
     return (
26
     return (
27
       <View className="star">
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
         <Text className="star__txt">{_value}</Text>
29
         <Text className="star__txt">{_value}</Text>
30
       </View>
30
       </View>
31
     )
31
     )

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

113
               {
113
               {
114
                 list.map((item, index) => {
114
                 list.map((item, index) => {
115
                   return (
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
                       <Image className='bg' src={item.verifyStatus == 2 ? require('@assets/person/card1.png') : require('@assets/person/card2.png')}></Image>
117
                       <Image className='bg' src={item.verifyStatus == 2 ? require('@assets/person/card1.png') : require('@assets/person/card2.png')}></Image>
118
                       <View className='client'>
118
                       <View className='client'>
119
                         <View className='client__status2'>
119
                         <View className='client__status2'>

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

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

+ 1
- 1
src/pages/im/index.js View File

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

+ 20
- 16
src/pages/person/customerAnalysis/analysis.js View File

1
 import Taro, { Component } from '@tarojs/taro';
1
 import Taro, { Component } from '@tarojs/taro';
2
 import Authorize from '@components/authorize'
2
 import Authorize from '@components/authorize'
3
 import { View } from "@tarojs/components";
3
 import { View } from "@tarojs/components";
4
+import dayjs from 'dayjs'
4
 import './index.scss'
5
 import './index.scss'
5
 import { AtTabs, AtTabsPane, AtProgress } from 'taro-ui'
6
 import { AtTabs, AtTabsPane, AtProgress } from 'taro-ui'
6
 import "taro-ui/dist/style/components/tabs.scss"
7
 import "taro-ui/dist/style/components/tabs.scss"
46
           sexInfo: res || []
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
     } else if (value == '1') {
56
     } else if (value == '1') {
50
       querySexInfo('follow').then(res => {
57
       querySexInfo('follow').then(res => {
51
         this.setState({
58
         this.setState({
52
           sexInfo: res || []
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
     } else {
67
     } else {
56
       querySexInfo('visite ').then(res => {
68
       querySexInfo('visite ').then(res => {
57
         this.setState({
69
         this.setState({
58
           sexInfo: res || []
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
     this.setState({
80
     this.setState({
73
       })
90
       })
74
     })
91
     })
75
     getEchartDailyInfo('new').then(res => {
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
       this.setState({
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
     const params = current == 0 ? 'new' : current == 1 ? 'follow' : 'visite'
100
     const params = current == 0 ? 'new' : current == 1 ? 'follow' : 'visite'
89
     if (inx == 0) {
101
     if (inx == 0) {
90
       getEchartDailyInfo(params).then(res => {
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
         this.setState({
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
     } else {
107
     } else {
103
       getEchartMonthInfo(params).then(res => {
108
       getEchartMonthInfo(params).then(res => {
104
-
105
         this.setState({
109
         this.setState({
110
+          chartInfo: res.map(x => ({ name: `${x.month.substr(4)}月`, value: x.customerNum }))
106
         })
111
         })
107
       })
112
       })
108
     }
113
     }
109
     this.setState({
114
     this.setState({
110
       checkedWhich: inx
115
       checkedWhich: inx
111
     })
116
     })
112
-
113
   }
117
   }
114
 
118
 
115
   render() {
119
   render() {

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

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

+ 12
- 24
src/pages/project/detail/index.js View File

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

+ 35
- 3
src/pages/project/detail/index.scss View File

19
     height: 64px;
19
     height: 64px;
20
     background: rgba(255, 255, 255, 1);
20
     background: rgba(255, 255, 255, 1);
21
     border-radius: 12px;
21
     border-radius: 12px;
22
-    top: 420px;
22
+    top: 440px;
23
     left: 284px;
23
     left: 284px;
24
     font-size: 30px;
24
     font-size: 30px;
25
     font-family: PingFangSC-Regular, PingFang SC;
25
     font-family: PingFangSC-Regular, PingFang SC;
48
 
48
 
49
 
49
 
50
   .wrap {
50
   .wrap {
51
-    padding-top: 580px;
51
+    padding-top: 576px;
52
     background: transparent;
52
     background: transparent;
53
   }
53
   }
54
 
54
 
802
     left: 320px;
802
     left: 320px;
803
     padding: 0;
803
     padding: 0;
804
     background: none;
804
     background: none;
805
-    &-img{
805
+
806
+    &-img {
806
       width: 110px;
807
       width: 110px;
807
       height: 78px;
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 View File

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

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

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

+ 1
- 1
src/pages/shop/banner/index.js View File

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