Browse Source

统计-转化率

魏熙美 5 years ago
parent
commit
0af2e65298

+ 0
- 1
src/pages/indexEcharts/components/IntentionalCustomers.jsx View File

19
       params: { pageSize: 9999, ...params }
19
       params: { pageSize: 9999, ...params }
20
     }).then((data) => {
20
     }).then((data) => {
21
       setData(data)
21
       setData(data)
22
-      console.log(data || {}, '2134')
23
     })
22
     })
24
   }
23
   }
25
 
24
 

+ 0
- 1
src/pages/indexEcharts/components/NewUsers.jsx View File

27
       ...apis.indexEcharts.newUser,
27
       ...apis.indexEcharts.newUser,
28
       params,
28
       params,
29
     }).then((data) => {
29
     }).then((data) => {
30
-      console.log(data, '3333')
31
       setData(data)
30
       setData(data)
32
     })
31
     })
33
   }
32
   }

+ 5
- 9
src/pages/indexEcharts/components/UserConversion.jsx View File

15
   const [theCurrent, setTheCurrent] = useState({ records: [] })
15
   const [theCurrent, setTheCurrent] = useState({ records: [] })
16
 
16
 
17
   useEffect(() => {
17
   useEffect(() => {
18
-    UserConversionRate({conversion: 'authorization_phone'})
18
+    UserConversionRate({ conversion: 'authorization_phone' })
19
   }, [])
19
   }, [])
20
 
20
 
21
  function UserConversionRate(params) {
21
  function UserConversionRate(params) {
28
       })
28
       })
29
   }
29
   }
30
 
30
 
31
-
32
  function setDataset(data, theStatis) {
31
  function setDataset(data, theStatis) {
33
     const { pvNum, ...other } = data.data_count
32
     const { pvNum, ...other } = data.data_count
34
 
33
 
75
       data: theCurrent,
74
       data: theCurrent,
76
       // data:[ { name: '授权手机', value: 6 },
75
       // data:[ { name: '授权手机', value: 6 },
77
       // { name: '其余', value: 5 },]
76
       // { name: '其余', value: 5 },]
78
-    }
77
+    },
79
   }
78
   }
80
-  
81
-  function onChange (e) {
79
+
80
+  function onChange(e) {
82
     UserConversionRate({ conversion: e })
81
     UserConversionRate({ conversion: e })
83
   }
82
   }
84
-
85
   const piestyles = {
83
   const piestyles = {
86
     width: '100%',
84
     width: '100%',
87
     height: '400px',
85
     height: '400px',
88
-
89
   }
86
   }
90
 
87
 
91
-
92
   return (
88
   return (
93
     <>
89
     <>
94
       <div>
90
       <div>
116
 
112
 
117
     </>
113
     </>
118
   )
114
   )
119
-}
115
+ }
120
 
116
 
121
 export default UserSource
117
 export default UserSource