Browse Source

feat: 企微数据 - 首页 - 新增"付费用户客单价"模块&折线图&表头

zhengxy 2 years ago
parent
commit
dd79cd54ef
1 changed files with 13 additions and 1 deletions
  1. 13 1
      project/src/components/HomeData.vue

+ 13 - 1
project/src/components/HomeData.vue

@@ -87,6 +87,7 @@ export default {
87 87
         { name: '公众号关注', key: 'official_account_uc', color: '#EFAF47', selectFlag: true },
88 88
         { name: '付费客户数', key: 'cust_pay_uc', color: '#7366FF', selectFlag: true },
89 89
         { name: '付费金额', key: 'cust_pay_amount', color: '#F28544', selectFlag: true },
90
+        { name: '付费用户客单价', key: 'charge_user_cost', color: '#E360C8', selectFlag: true },
90 91
       ],
91 92
       data_loading: false,
92 93
       custTotal: [
@@ -168,7 +169,17 @@ export default {
168 169
           bg_color: '#FEF7EF',
169 170
           color: '#EFAF47',
170 171
           img: require('@/assets/img/icon/公众号关注@2x.png'),
171
-        }
172
+        },
173
+        {
174
+          name: '付费用户客单价',
175
+          wordBreakName: 'charge_user_cost',
176
+          wordBreakNameCompare: 'charge_user_cost_compare',
177
+          wordBreakNameValue: '',
178
+          wordBreakNameCompareValue: '',
179
+          bg_color: '#F4EFFE',
180
+          color: '#7366FF',
181
+          img: require('@/assets/img/icon/付费客户数@2x.png'),
182
+        },
172 183
       ],
173 184
       default_time: [this.$getDay(-8, false), this.$getDay(-1, false)],
174 185
       time: [],
@@ -190,6 +201,7 @@ export default {
190 201
         { prop: "cust_pay_uc_total", label: "总付费客户" },
191 202
         { prop: "cust_pay_amount", label: "今日付费金额" },
192 203
         { prop: "cust_pay_amount_total", label: "总付费金额" },
204
+        { prop: "charge_user_cost", label: "付费用户客单价" },
193 205
       ],
194 206
       height: 0,
195 207
       custDataListLoading: false