许静 5 yıl önce
ebeveyn
işleme
3f4c4cc347

+ 1
- 1
src/components/star/index.js Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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>

+ 16
- 2
src/pages/person/customerAnalysis/analysis.js Dosyayı Görüntüle

@@ -47,18 +47,34 @@ export default class analysis extends Taro.Component {
47 47
           sexInfo: res || []
48 48
         })
49 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
+
50 56
     } else if (value == '1') {
51 57
       querySexInfo('follow').then(res => {
52 58
         this.setState({
53 59
           sexInfo: res || []
54 60
         })
55 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
+      })
56 67
     } else {
57 68
       querySexInfo('visite ').then(res => {
58 69
         this.setState({
59 70
           sexInfo: res || []
60 71
         })
61 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
+      })
62 78
     }
63 79
 
64 80
     this.setState({
@@ -74,8 +90,6 @@ export default class analysis extends Taro.Component {
74 90
       })
75 91
     })
76 92
     getEchartDailyInfo('new').then(res => {
77
-
78
-
79 93
       this.setState({
80 94
         chartInfo: res.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum }))
81 95
       })

+ 1
- 1
src/pages/project/banner/index.js Dosyayı Görüntüle

@@ -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
             >

+ 2
- 2
src/pages/project/list/filter/index.js Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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
             >