许静 5 年之前
父節點
當前提交
3f4c4cc347

+ 1
- 1
src/components/star/index.js 查看文件

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 查看文件

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 查看文件

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 查看文件

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>

+ 16
- 2
src/pages/person/customerAnalysis/analysis.js 查看文件

47
           sexInfo: res || []
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
     } else if (value == '1') {
56
     } else if (value == '1') {
51
       querySexInfo('follow').then(res => {
57
       querySexInfo('follow').then(res => {
52
         this.setState({
58
         this.setState({
53
           sexInfo: res || []
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
     } else {
67
     } else {
57
       querySexInfo('visite ').then(res => {
68
       querySexInfo('visite ').then(res => {
58
         this.setState({
69
         this.setState({
59
           sexInfo: res || []
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
     this.setState({
80
     this.setState({
74
       })
90
       })
75
     })
91
     })
76
     getEchartDailyInfo('new').then(res => {
92
     getEchartDailyInfo('new').then(res => {
77
-
78
-
79
       this.setState({
93
       this.setState({
80
         chartInfo: res.map(x => ({ name: `${dayjs(x.day).format('MM月DD日')}`, value: x.customerNum }))
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 查看文件

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
             >

+ 2
- 2
src/pages/project/list/filter/index.js 查看文件

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 查看文件

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 查看文件

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
             >