Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-boss
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
wx-boss
Commits
ebbf177e
Commit
ebbf177e
authored
Nov 27, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改部分数据问题
parent
46ac34af
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
50 additions
and
39 deletions
+50
-39
PayTypeChart.js
miniprogram/pages/components/PayTypeChart/PayTypeChart.js
+9
-16
PayTypeChart.ts
miniprogram/pages/components/PayTypeChart/PayTypeChart.ts
+17
-14
homeAndReport.js
miniprogram/pages/homeAndReport/homeAndReport.js
+3
-3
homeAndReport.ts
miniprogram/pages/homeAndReport/homeAndReport.ts
+1
-1
userGrowth.js
miniprogram/pages/userGrowth/userGrowth.js
+5
-2
userGrowth.ts
miniprogram/pages/userGrowth/userGrowth.ts
+6
-0
userGrowth.wxml
miniprogram/pages/userGrowth/userGrowth.wxml
+1
-1
util.js
miniprogram/utils/util.js
+5
-2
util.ts
miniprogram/utils/util.ts
+3
-0
No files found.
miniprogram/pages/components/PayTypeChart/PayTypeChart.js
View file @
ebbf177e
...
...
@@ -39,7 +39,8 @@ function initChart(canvas, width, height, F2) {
});
paytypeChart
.
coord
(
'polar'
,
{
transposed
:
true
,
innerRadius
:
0.7
,
innerRadius
:
0.5
,
radius
:
0.9
,
});
paytypeChart
.
legend
({
position
:
'right'
,
...
...
@@ -49,9 +50,7 @@ function initChart(canvas, width, height, F2) {
paytypeChart
.
interval
()
.
position
(
'a*count'
)
.
color
(
'key'
,
function
(
val
)
{
return
colorMap
[
val
];
})
.
color
(
'key'
,
[
'#EB7E59'
,
'#13C2C2'
,
'#FACC14'
,
'#1890FF'
])
.
adjust
(
'stack'
);
paytypeChart
.
axis
(
false
);
paytypeChart
.
render
();
...
...
@@ -67,16 +66,10 @@ Component({
paytypeChart
.
legend
({
position
:
'right'
,
marker
:
'square'
,
custom
:
true
,
items
:
newVal
.
map
(
function
(
item
)
{
return
({
name
:
item
.
name
,
value
:
' '
+
util_1
.
formatPrice
(
item
.
count
),
marker
:
{
symbol
:
'square'
,
fill
:
colorMap
[
item
.
key
],
radius
:
4
,
},
});
}),
itemFormatter
:
function
(
val
)
{
var
item
=
newVal
.
find
(
function
(
item
)
{
return
item
.
key
===
val
;
});
return
item
?
item
.
name
+
' '
+
util_1
.
formatPrice
(
item
.
count
)
:
''
;
},
});
paytypeChart
&&
paytypeChart
.
changeData
(
newVal
);
},
...
...
@@ -95,4 +88,4 @@ Component({
},
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGF5VHlwZUNoYXJ0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiUGF5VHlwZUNoYXJ0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNENBQWtEO0FBR2xELElBQUksWUFBWSxHQUFHLElBQUksQ0FBQztBQUN4QixJQUFJLEtBQUssR0FBRyxFQUFFLENBQUM7QUFDZixJQUFNLFFBQVEsR0FBRztJQUNmLElBQUksRUFBRSxTQUFTO0lBQ2YsSUFBSSxFQUFFLFNBQVM7SUFDZixRQUFRLEVBQUUsU0FBUztJQUNuQixNQUFNLEVBQUUsU0FBUztDQUNsQixDQUFDO0FBRUYsbUJBQW1CLE1BQU0sRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLEVBQUU7SUFDMUMsSUFBTSxJQUFJLEdBQUcsRUFBRSxDQUFDO0lBQ2hCLFlBQVksR0FBRyxJQ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WdlbmQoe1xuICAgICAgICAgICAgcG9zaXRpb246ICdyaWdodCcsXG4gICAgICAgICAgICBtYXJrZXI6ICdzcXVhcmUnLFxuICAgICAgICAgICAgaXRlbUZvcm1hdHRlcjogdmFsID0+IHtcbiAgICAgICAgICAgICAgbGV0IGl0ZW0gPSBuZXdWYWwuZmluZChpdGVtID0+IGl0ZW0ua2V5ID09PSB2YWwpO1xuICAgICAgICAgICAgICByZXR1cm4gaXRlbSA/IGl0ZW0ubmFtZSArICcgICAgJyArIGZvcm1hdFByaWNlKGl0ZW0uY291bnQpIDogJyc7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgLy8gY3VzdG9tOiB0cnVlLFxuICAgICAgICAgICAgLy8gaXRlbXM6IG5ld1ZhbC5tYXAoaXRlbSA9PiAoe1xuICAgICAgICAgICAgLy8gICBuYW1lOiBpdGVtLm5hbWUsXG4gICAgICAgICAgICAvLyAgIHZhbHVlOiAnICcgKyBmb3JtYXRQcmljZShpdGVtLmNvdW50KSxcbiAgICAgICAgICAgIC8vICAgbWFya2VyOiB7XG4gICAgICAgICAgICAvLyAgICAgc3ltYm9sOiAnc3F1YXJlJyxcbiAgICAgICAgICAgIC8vICAgICBmaWxsOiBjb2xvck1hcFtpdGVtLmtleV0sXG4gICAgICAgICAgICAvLyAgICAgcmFkaXVzOiA0LFxuICAgICAgICAgICAgLy8gICB9LFxuICAgICAgICAgICAgLy8gfSkpLFxuICAgICAgICAgIH0pO1xuICAgICAgICBwYXl0eXBlQ2hhcnQgJiYgcGF5dHlwZUNoYXJ0LmNoYW5nZURhdGEobmV3VmFsKTtcbiAgICAgIH0sXG4gICAgfSxcbiAgICBtb250aDoge1xuICAgICAgdHlwZTogU3RyaW5nLFxuICAgICAgdmFsdWU6ICcnLFxuICAgICAgb2JzZXJ2ZXIobmV3VmFsKSB7XG4gICAgICAgIG1vbnRoID0gbmV3VmFsO1xuICAgICAgfSxcbiAgICB9LFxuICB9LFxuICBkYXRhOiB7XG4gICAgb3B0czoge1xuICAgICAgb25Jbml0OiBpbml0Q2hhcnQsXG4gICAgfSxcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
miniprogram/pages/components/PayTypeChart/PayTypeChart.ts
View file @
ebbf177e
...
...
@@ -41,7 +41,8 @@ function initChart(canvas, width, height, F2) {
});
paytypeChart
.
coord
(
'polar'
,
{
transposed
:
true
,
innerRadius
:
0.7
,
innerRadius
:
0.5
,
radius
:
0.9
,
});
paytypeChart
.
legend
({
position
:
'right'
,
...
...
@@ -51,9 +52,7 @@ function initChart(canvas, width, height, F2) {
paytypeChart
.
interval
()
.
position
(
'a*count'
)
.
color
(
'key'
,
val
=>
{
return
colorMap
[
val
];
})
.
color
(
'key'
,
[
'#EB7E59'
,
'#13C2C2'
,
'#FACC14'
,
'#1890FF'
])
.
adjust
(
'stack'
);
paytypeChart
.
axis
(
false
);
paytypeChart
.
render
();
...
...
@@ -70,16 +69,20 @@ Component({
paytypeChart
.
legend
({
position
:
'right'
,
marker
:
'square'
,
custom
:
true
,
items
:
newVal
.
map
(
item
=>
({
name
:
item
.
name
,
value
:
' '
+
formatPrice
(
item
.
count
),
marker
:
{
symbol
:
'square'
,
fill
:
colorMap
[
item
.
key
],
radius
:
4
,
},
})),
itemFormatter
:
val
=>
{
let
item
=
newVal
.
find
(
item
=>
item
.
key
===
val
);
return
item
?
item
.
name
+
' '
+
formatPrice
(
item
.
count
)
:
''
;
},
// custom: true,
// items: newVal.map(item => ({
// name: item.name,
// value: ' ' + formatPrice(item.count),
// marker: {
// symbol: 'square',
// fill: colorMap[item.key],
// radius: 4,
// },
// })),
});
paytypeChart
&&
paytypeChart
.
changeData
(
newVal
);
},
...
...
miniprogram/pages/homeAndReport/homeAndReport.js
View file @
ebbf177e
...
...
@@ -13,7 +13,7 @@ Page({
pagePath
:
'/pages/report/report'
,
iconPath
:
'/images/tab_baobiao_nor@2x.png'
,
selectedIconPath
:
'/images/tab_baobiao_pre@2x.png'
,
text
:
'
报表分析
'
,
text
:
'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DogJy9pbWFnZXMvdGFiX3NodWp1X25vckAyeC5wbmcnLFxuICAgICAgICBzZWxlY3RlZEljb25QYXRoOiAnL2ltYWdlcy90YWJfc2h1anVfcHJlQDJ4LnBuZycsXG4gICAgICAgIHRleHQ6ICfmlbDmja7pppbpobUnLFxuICAgICAgfSxcbiAgICAgIHtcbiAgICAgICAgcGFnZVBhdGg6ICcvcGFnZXMvcmVwb3J0L3JlcG9ydCcsXG4gICAgICAgIGljb25QYXRoOiAnL2ltYWdlcy90YWJfYmFvYmlhb19ub3JAMngucG5nJyxcbiAgICAgICAgc2VsZWN0ZWRJY29uUGF0aDogJy9pbWFnZXMvdGFiX2Jhb2JpYW9fcHJlQDJ4LnBuZycsXG4gICAgICAgIHRleHQ6ICfmiqXooajliIbmnpAnLFxuICAgICAgfSxcbiAgICBdLFxuICB9LFxuICBjbGlja0hhbmRsZShlKSB7XG4gICAgY29uc29sZS5sb2coJ2luIGNsaWNrJywgZSk7XG4gICAgbGV0IHsgcGF0aCwgaW5kZXggfSA9IGUuZGV0YWlsO1xuICAgIC8vIGNvbnNvbGUubG9nKHBhdGgsIGluZGV4KTtcbiAgICAvLyB3eC5zd2l0Y2hUYWIoeyB1cmw6IHBhdGggfSk7XG4gICAgdGhpcy5zZXREYXRhKHtcbiAgICAgIHNlbGVjdGVkOiBpbmRleCxcbiAgICB9KTtcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZUFuZFJlcG9ydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImhvbWVBbmRSZXBvcnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQUksQ0FBQztJQUNILElBQUksRUFBRTtRQUNKLFFBQVEsRUFBRSxDQUFDO1FBQ1gsSUFBSSxFQUFFO1lBQ0o7Z0JBQ0UsUUFBUSxFQUFFLGtCQUFrQjtnQkFDNUI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2Jhb2JpYW9fcHJlQDJ4LnBuZycsXG4gICAgICAgIHRleHQ6ICfov5DokKXnrqHnkIYnLFxuICAgICAgfSxcbiAgICBdLFxuICB9LFxuICBjbGlja0hhbmRsZShlKSB7XG4gICAgY29uc29sZS5sb2coJ2luIGNsaWNrJywgZSk7XG4gICAgbGV0IHsgcGF0aCwgaW5kZXggfSA9IGUuZGV0YWlsO1xuICAgIC8vIGNvbnNvbGUubG9nKHBhdGgsIGluZGV4KTtcbiAgICAvLyB3eC5zd2l0Y2hUYWIoeyB1cmw6IHBhdGggfSk7XG4gICAgdGhpcy5zZXREYXRhKHtcbiAgICAgIHNlbGVjdGVkOiBpbmRleCxcbiAgICB9KTtcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
miniprogram/pages/homeAndReport/homeAndReport.ts
View file @
ebbf177e
...
...
@@ -12,7 +12,7 @@ Page({
pagePath
:
'/pages/report/report'
,
iconPath
:
'/images/tab_baobiao_nor@2x.png'
,
selectedIconPath
:
'/images/tab_baobiao_pre@2x.png'
,
text
:
'
报表分析
'
,
text
:
'
运营管理
'
,
},
],
},
...
...
miniprogram/pages/userGrowth/userGrowth.js
View file @
ebbf177e
...
...
@@ -22,6 +22,7 @@ Page({
areaName
:
''
,
areaList
:
[],
growthList
:
[],
registerCount
:
0
,
customerCount
:
0
,
activeCount
:
0
,
isAdmin
:
0
,
...
...
@@ -102,9 +103,11 @@ Page({
dayList
[
daysIndex
-
1
]
=
__assign
({},
dayList
[
daysIndex
-
1
],
{
count
:
element
.
count
});
}
}
var
registerCount
=
dayVos
.
reduce
(
function
(
total
,
current
)
{
return
(
total
+=
current
.
count
);
},
0
);
console
.
log
(
'dayList:'
,
dayList
);
_this
.
setData
({
growthList
:
dayList
,
registerCount
:
registerCount
,
customerCount
:
customerCount
?
customerCount
:
0
,
activeCount
:
activeCount
?
activeCount
:
0
,
});
...
...
@@ -138,4 +141,4 @@ Page({
});
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW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ydExpc3QnLFxuICAgICAgZGF0YTogcmVxQm9keSxcbiAgICB9KVxuICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgY29uc3QgeyBjdXN0b21lckNvdW50LCBkYXlWb3MsIGFjdGl2ZUNvdW50IH0gPSByZXMuZGF0YTtcbiAgICAgICAgbGV0IGRheUxpc3QgPSBuZXcgQXJyYXkoMzEpXG4gICAgICAgICAgLmZpbGwoe1xuICAgICAgICAgICAgY291bnQ6IDAsXG4gICAgICAgICAgfSlcbiAgICAgICAgICAubWFwKCh2LCBpZHgpID0+ICh7IC4uLnYsIGRheXM6IGlkeCArIDEgfSkpO1xuXG4gICAgICAgIGlmIChkYXlWb3MgJiYgZGF5Vm9zLmxlbmd0aCkge1xuICAgICAgICAgIGxldCBvTGlzdCA9IGRheVZvcztcbiAgICAgICAgICBmb3IgKGxldCBpbmRleCA9IDA7IGluZGV4IDwgb0xpc3QubGVuZ3RoOyBpbmRleCsrKSB7XG4gICAgICAgICAgICBjb25zdCBlbGVtZW50ID0gb0xpc3RbaW5kZXhdO1xuICAgICAgICAgICAgbGV0IGRheXNJbmRleCA9IE51bWJlcihlbGVtZW50LmRheXMuc2xpY2UoLTIpKTtcbiAgICAgICAgICAgIGRheUxpc3RbZGF5c0luZGV4IC0gMV0gPSB7XG4gICAgICAgICAgICAgIC4uLmRheUxpc3RbZGF5c0luZGV4IC0gMV0sXG4gICAgICAgICAgICAgIGNvdW50OiBlbGVtZW50LmNvdW50LFxuICAgICAgICAgICAgfTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgY29uc29sZS5sb2coJ2RheUxpc3Q6JywgZGF5TGlzdCk7XG4gICAgICAgIHRoaXMuc2V0RGF0YSEoe1xuICAgICAgICAgIGdyb3d0aExpc3Q6IGRheUxpc3QsXG4gICAgICAgICAgY3VzdG9tZXJDb3VudDogY3VzdG9tZXJDb3VudCA/IGN1c3RvbWVyQ291bnQgOiAwLFxuICAgICAgICAgIGFjdGl2ZUNvdW50OiBhY3RpdmVDb3VudCA/IGFjdGl2ZUNvdW50IDogMCxcbiAgICAgICAgfSk7XG4gICAgICB9KVxuICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICB9KTtcbiAgfSxcbiAgYXJlYUNoYW5nZUhhbmRsZSh2YWwpIHtcbiAgICBjb25zb2xlLmxvZygnYXJlYUNoYW5nZUhhbmRsZScsIHZhbCk7XG4gICAgY29uc3QgeyBpZCwgbmFtZSB9ID0gdmFsO1xuICAgIHRoaXMuc2V0RGF0YSEoXG4gICAgICB7XG4gICAgICAgIGFyZWFJZDogaWQsXG4gICAgICAgIGFyZWFOYW1lOiBuYW1lLFxuICAgICAgfSxcbiAgICAgICgpID0+IHtcbiAgICAgICAgaWYgKGlkKSB7XG4gICAgICAgICAgdGhpcy5mZXRjaExpc3QoeyBhcmVhSWQ6IGlkIH0pO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIHRoaXMuZmV0Y2hMaXN0KCk7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgKTtcbiAgfSxcbiAgbW9udGhDaGFuZ2VIYW5kbGUodmFsKSB7XG4gICAgY29uc29sZS5sb2coJ21vbnRoQ2hhbmdlSGFuZGxlJywgdmFsKTtcbiAgICBjb25zdCB7IHZhbHVlIH0gPSB2YWwuZGV0YWlsO1xuICAgIHRoaXMuZmV0Y2hMaXN0KHsgbW9udGhTdHJpbmc6IHZhbHVlIH0pO1xuICAgIHRoaXMuc2V0RGF0YSEoe1xuICAgICAgbW9udGg6IHZhbHVlLFxuICAgIH0pO1xuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlckdyb3d0aC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInVzZXJHcm93dGgudHMiXSwibmFt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tb250aCxcbiAgICAgIGlzQWRtaW46IHRoaXMuZGF0YS5pc0FkbWluLFxuICAgICAgLi4uZW50aXR5LFxuICAgIH07XG4gICAgc3RhdGlzdGljc0ZldGNoKHtcbiAgICAgIHVybDogJy9kY3h5L3JlcG9ydEluZm8vcXVlcnlSZXBvcnRMaXN0JyxcbiAgICAgIGRhdGE6IHJlcUJvZHksXG4gICAgfSlcbiAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgIGNvbnN0IHsgY3VzdG9tZXJDb3VudCwgZGF5Vm9zLCBhY3RpdmVDb3VudCB9ID0gcmVzLmRhdGE7XG4gICAgICAgIGxldCBkYXlMaXN0ID0gbmV3IEFycmF5KDMxKVxuICAgICAgICAgIC5maWxsKHtcbiAgICAgICAgICAgIGNvdW50OiAwLFxuICAgICAgICAgIH0pXG4gICAgICAgICAgLm1hcCgodiwgaWR4KSA9PiAoeyAuLi52LCBkYXlzOiBpZHggKyAxIH0pKTtcblxuICAgICAgICBpZiAoZGF5Vm9zICYmIGRheVZvcy5sZW5ndGgpIHtcbiAgICAgICAgICBsZXQgb0xpc3QgPSBkYXlWb3M7XG4gICAgICAgICAgZm9yIChsZXQgaW5kZXggPSAwOyBpbmRleCA8IG9MaXN0Lmxlbmd0aDsgaW5kZXgrKykge1xuICAgICAgICAgICAgY29uc3QgZWxlbWVudCA9IG9MaXN0W2luZGV4XTtcbiAgICAgICAgICAgIGxldCBkYXlzSW5kZXggPSBOdW1iZXIoZWxlbWVudC5kYXlzLnNsaWNlKC0yKSk7XG4gICAgICAgICAgICBkYXlMaXN0W2RheXNJbmRleCAtIDFdID0ge1xuICAgICAgICAgICAgICAuLi5kYXlMaXN0W2RheXNJbmRleCAtIDFdLFxuICAgICAgICAgICAgICBjb3VudDogZWxlbWVudC5jb3VudCxcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGxldCByZWdpc3RlckNvdW50ID0gZGF5Vm9zLnJlZHVjZShcbiAgICAgICAgICAodG90YWwsIGN1cnJlbnQpID0+ICh0b3RhbCArPSBjdXJyZW50LmNvdW50KSxcbiAgICAgICAgICAwLFxuICAgICAgICApO1xuICAgICAgICBjb25zb2xlLmxvZygnZGF5TGlzdDonLCBkYXlMaXN0KTtcbiAgICAgICAgdGhpcy5zZXREYXRhISh7XG4gICAgICAgICAgZ3Jvd3RoTGlzdDogZGF5TGlzdCxcbiAgICAgICAgICByZWdpc3RlckNvdW50OiByZWdpc3RlckNvdW50LFxuICAgICAgICAgIGN1c3RvbWVyQ291bnQ6IGN1c3RvbWVyQ291bnQgPyBjdXN0b21lckNvdW50IDogMCxcbiAgICAgICAgICBhY3RpdmVDb3VudDogYWN0aXZlQ291bnQgPyBhY3RpdmVDb3VudCA6IDAsXG4gICAgICAgIH0pO1xuICAgICAgfSlcbiAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgfSk7XG4gIH0sXG4gIGFyZWFDaGFuZ2VIYW5kbGUodmFsKSB7XG4gICAgY29uc29sZS5sb2coJ2FyZWFDaGFuZ2VIYW5kbGUnLCB2YWwpO1xuICAgIGNvbnN0IHsgaWQsIG5hbWUgfSA9IHZhbDtcbiAgICB0aGlzLnNldERhdGEhKFxuICAgICAge1xuICAgICAgICBhcmVhSWQ6IGlkLFxuICAgICAgICBhcmVhTmFtZTogbmFtZSxcbiAgICAgIH0sXG4gICAgICAoKSA9PiB7XG4gICAgICAgIGlmIChpZCkge1xuICAgICAgICAgIHRoaXMuZmV0Y2hMaXN0KHsgYXJlYUlkOiBpZCB9KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB0aGlzLmZldGNoTGlzdCgpO1xuICAgICAgICB9XG4gICAgICB9LFxuICAgICk7XG4gIH0sXG4gIG1vbnRoQ2hhbmdlSGFuZGxlKHZhbCkge1xuICAgIGNvbnNvbGUubG9nKCdtb250aENoYW5nZUhhbmRsZScsIHZhbCk7XG4gICAgY29uc3QgeyB2YWx1ZSB9ID0gdmFsLmRldGFpbDtcbiAgICB0aGlzLmZldGNoTGlzdCh7IG1vbnRoU3RyaW5nOiB2YWx1ZSB9KTtcbiAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgIG1vbnRoOiB2YWx1ZSxcbiAgICB9KTtcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
miniprogram/pages/userGrowth/userGrowth.ts
View file @
ebbf177e
...
...
@@ -18,6 +18,7 @@ Page({
areaName
:
''
,
areaList
:
[],
growthList
:
[],
registerCount
:
0
,
customerCount
:
0
,
activeCount
:
0
,
isAdmin
:
0
,
...
...
@@ -108,9 +109,14 @@ Page({
};
}
}
let
registerCount
=
dayVos
.
reduce
(
(
total
,
current
)
=>
(
total
+=
current
.
count
),
0
,
);
console
.
log
(
'dayList:'
,
dayList
);
this
.
setData
!
({
growthList
:
dayList
,
registerCount
:
registerCount
,
customerCount
:
customerCount
?
customerCount
:
0
,
activeCount
:
activeCount
?
activeCount
:
0
,
});
...
...
miniprogram/pages/userGrowth/userGrowth.wxml
View file @
ebbf177e
...
...
@@ -3,7 +3,7 @@
<view class="userGrowth-topBox">
<view class="userGrowth-titleItem">
<view class="userGrowth-titleName">注册人数</view>
<view class="userGrowth-titleValue">
123412
</view>
<view class="userGrowth-titleValue">
{{registerCount}}
</view>
</view>
<view class="userGrowth-titleItem">
<view class="userGrowth-titleName">活跃人数</view>
...
...
miniprogram/utils/util.js
View file @
ebbf177e
...
...
@@ -25,6 +25,9 @@ var joinComma = function (num) {
var
result
=
[],
counter
=
0
;
for
(
var
index
=
num
.
length
-
1
;
index
>=
0
;
index
--
)
{
counter
++
;
if
(
index
==
0
&&
isNaN
(
Number
(
num
[
index
]))
&&
result
[
0
]
===
','
)
{
result
.
shift
();
}
var
element
=
num
[
index
];
result
.
unshift
(
element
);
if
(
!
(
counter
%
3
)
&&
index
!=
0
)
{
...
...
@@ -40,4 +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cgKyBzdHI7XG59O1xuXG5leHBvcnQgY29uc3QgZm9ybWF0UHJpY2UgPSAobjogbnVtYmVyKSA9PiB7XG4gIGNvbnN0IHN0ciA9IG4udG9GaXhlZCgyKTtcbiAgbGV0IHN0ckFyciA9IHN0ci5zcGxpdCgnLicpO1xuICByZXR1cm4gam9pbkNvbW1hKHN0ckFyclswXSkgKyAnLicgKyBzdHJBcnJbMV07XG59O1xuXG5jb25zdCBqb2luQ29tbWEgPSAobnVtOiBzdHJpbmcpID0+IHtcbiAgdmFyIHJlc3VsdCA9IFtdLFxuICAgIGNvdW50ZXIgPSAwO1xuICBmb3IgKGxldCBpbmRleCA9IG51bS5sZW5ndGggLSAxOyBpbmRleCA+PSAwOyBpbmRleC0tKSB7XG4gICAgY291bnRlcisrO1xuICAgIGNvbnN0IGVsZW1lbnQgPSBudW1baW5kZXhdO1xuICAgIHJlc3VsdC51bnNoaWZ0KGVsZW1lbnQpO1xuICAgIGlmICghKGNvdW50ZXIgJSAzKSAmJiBpbmRleCAhPSAwKSB7XG4gICAgICByZXN1bHQudW5zaGlmdCgnLCcpO1xuICAgIH1cbiAgfVxuICByZXR1cm4gcmVzdWx0LmpvaW4oJycpO1xufTtcbmV4cG9ydCBjb25zdCBkZWxheSA9IChmdW5jdGlvbigpIHtcbiAgbGV0IHRpbWVyID0gMDtcbiAgcmV0dXJuIGZ1bmN0aW9uKGNhbGxiYWNrOiAoKSA9PiB2b2lkLCBtczogbnVtYmVyKSB7XG4gICAgY2xlYXJUaW1lb3V0KHRpbWVyKTtcbiAgICB0aW1lciA9IHNldFRpbWVvdXQoY2FsbGJhY2ssIG1zKTtcbiAgfTtcbn0pKCk7XG4iXX0=
\ No newline at end of file
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInV0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQS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No newline at end of file
miniprogram/utils/util.ts
View file @
ebbf177e
...
...
@@ -29,6 +29,9 @@ const joinComma = (num: string) => {
counter
=
0
;
for
(
let
index
=
num
.
length
-
1
;
index
>=
0
;
index
--
)
{
counter
++
;
if
(
index
==
0
&&
isNaN
(
Number
(
num
[
index
]))
&&
result
[
0
]
===
','
)
{
result
.
shift
();
}
const
element
=
num
[
index
];
result
.
unshift
(
element
);
if
(
!
(
counter
%
3
)
&&
index
!=
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment