diff --git a/src/pages/CustomerView.vue b/src/pages/CustomerView.vue
index ee33804..e74c66d 100644
--- a/src/pages/CustomerView.vue
+++ b/src/pages/CustomerView.vue
@@ -24,26 +24,40 @@
-
+
-
-
- 新增好友
{{customerViewVO.newCustomer}}
-
-
- 新增好友(去重)
{{customerViewVO.newValidCustomer}}
-
-
- 好友总数
{{customerViewVO.allCustomer}}
-
-
- 好友总数(去重)
{{customerViewVO.allValidCustomer}}
+
+
+
+
+ {{customerViewVO.allCustomer}}
好友总数
+
+
+
+
+ {{customerViewVO.allValidCustomer}}
好友总数(去重)
+
+
-
- 删除拉黑数(累计去重)
{{customerViewVO.validDeleteCustomer}}
+
+
+
+ {{customerViewVO.newCustomer}}
新增好友
+
+
+
+
+ {{customerViewVO.newValidCustomer}}
新增好友(去重)
+
+
+
+
+ {{customerViewVO.validDeleteCustomer}}
删除拉黑数(累计去重)
+
+
@@ -225,6 +239,7 @@
},
mounted: function () {
this.dateBtnClick('今日');
+ this.timingRefresh();
},
methods: {
//页面重绘
@@ -346,10 +361,14 @@
let tmpStartTime = that.startTime;
while(that.$moment(tmpStartTime).format("YYYY-MM-DD") <= that.$moment(that.endTime).format("YYYY-MM-DD")){
let date = that.$moment(tmpStartTime).format("M-DD");
+ let customerDO = that.customerViewVO.customerList.filter(customer => date === that.$moment(customer.registerTime).format("M-DD"));
+ let validCustomerDO = that.customerViewVO.validCustomerList.filter(customer => date === that.$moment(customer.registerTime).format("M-DD"));
+ let customerSize = customerDO.length === 0 ? 0 : customerDO[0].customerSize;
+ let validCustomerSize = validCustomerDO.length === 0 ? 0 : validCustomerDO[0].customerSize;
let obj = {
date:date,
- "新增好友": that.customerViewVO.customerList.filter(customer => date === that.$moment(customer.registerTime).format("M-DD")).length,
- "新增好友(去重)": that.customerViewVO.validCustomerList.filter(vip => date === that.$moment(vip.registerTime).format("M-DD")).length,
+ "新增好友": customerSize,
+ "新增好友(去重)": validCustomerSize,
};
that.chartData.rows.push(obj);
tmpStartTime = that.$moment(tmpStartTime).add(1,"days").format("YYYY-MM-DD HH:mm:ss");
@@ -373,6 +392,13 @@
endDate : that.selectEndTime,
}
});
+ },
+ //定时刷新
+ timingRefresh: function () {
+ let that = this;
+ setInterval(function () {
+ that.getMainList();
+ }, 1000 * 60);
}
}
@@ -402,15 +428,25 @@
margin-left: 10px;
}
/*5大块客户数*/
+ .huge-blank-font{
+ color: #EC6A2F;
+ font-size: 40px;
+ font-weight: 700;
+ font-family: 'Microsoft YaHei';
+ }
.big-blank{
height: 100px;
border-radius: 4px;
}
.big-blank-font{
+ color: #2D8CF0;
font-size: 28px;
font-weight: 700;
font-family: 'Microsoft YaHei';
}
+ .weight-700{
+ font-weight: 700;
+ }
/*蓝色logo*/
.blue-logo{
background: #1A80D2;
@@ -435,6 +471,9 @@
.left-25{
margin-left: 25px;
}
+ .top-5{
+ margin-top: 5px;
+ }
.top-10{
margin-top: 10px;
}
diff --git a/static/img/bsd-logo.png b/static/img/bsd-logo.png
new file mode 100644
index 0000000..3ffcd7e
Binary files /dev/null and b/static/img/bsd-logo.png differ