Pārlūkot izejas kodu

统计-转化率

魏熙美 5 gadus atpakaļ
vecāks
revīzija
0af2e65298

+ 0
- 1
src/pages/indexEcharts/components/IntentionalCustomers.jsx Parādīt failu

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

+ 0
- 1
src/pages/indexEcharts/components/NewUsers.jsx Parādīt failu

@@ -27,7 +27,6 @@ const NewUsers = (props) => {
27 27
       ...apis.indexEcharts.newUser,
28 28
       params,
29 29
     }).then((data) => {
30
-      console.log(data, '3333')
31 30
       setData(data)
32 31
     })
33 32
   }

+ 5
- 9
src/pages/indexEcharts/components/UserConversion.jsx Parādīt failu

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