Commit 67b51d3b by qiyeqing

feat:新版首页

1 parent 01253d33
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
ENV = 'development' ENV = 'development'
# 仟微管理系统/开发环境 # 仟微管理系统/开发环境
VUE_APP_BASE_API = 'http://119.45.28.29:8090' VUE_APP_BASE_API = 'http://demo.linkwechat.cn/api'
# VUE_APP_BASE_API = 'http://n3rpzt.natappfree.cc' # VUE_APP_BASE_API = 'http://n3rpzt.natappfree.cc'
# 开发环境IP # 开发环境IP
......
...@@ -60,7 +60,7 @@ export function yearMouthDay(data) { ...@@ -60,7 +60,7 @@ export function yearMouthDay(data) {
var date = time.getDate(); var date = time.getDate();
console.log(year+'-'+add0(month)+'-'+add0(date)) console.log(year+'-'+add0(month)+'-'+add0(date))
return year+'-'+add0(month)+'-'+add0(date) return year+'-'+add0(month)+'-'+add0(date)
} }
function add0(m){return m<10?'0'+m:m } function add0(m){return m<10?'0'+m:m }
...@@ -185,7 +185,7 @@ export function dataURLtoFile (dataURL) { ...@@ -185,7 +185,7 @@ export function dataURLtoFile (dataURL) {
/** /**
* 整理echat 数据 * 整理echat 数据
* @param {*} arrData 数据 * @param {*} arrData 数据
*/ */
export function arrData (data) { export function arrData (data) {
let obj={ let obj={
...@@ -199,17 +199,10 @@ export function arrData (data) { ...@@ -199,17 +199,10 @@ export function arrData (data) {
data.forEach((a,b)=>{ data.forEach((a,b)=>{
obj.arr1.push(a.newApplyCnt) obj.arr1.push(a.newApplyCnt)
obj.btm1.push(a.xtime) obj.btm1.push(a.xtime)
if(!!a.newMemberCnt){ obj.arr3.push(a.newMemberCnt)
obj.arr3.push(a.newMemberCnt)
}else{
obj.arr3=[]
}
obj.arr2.push(a.newContactCnt) obj.arr2.push(a.newContactCnt)
obj.arr4.push(a.negativeFeedbackCnt) obj.arr4.push(a.negativeFeedbackCnt)
}) })
//newApplyCnt =>arr1
//newContactCnt =>arr2
//negativeFeedbackCnt =>arr4
console.log(obj) console.log(obj)
return obj return obj
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!