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
4db55921
Commit
4db55921
authored
Nov 27, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into test
parents
3bdf7452
ebbf177e
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
55 additions
and
44 deletions
+55
-44
btn_turn_on.png
miniprogram/images/btn_turn_on.png
+0
-0
PayTypeChart.js
miniprogram/pages/components/PayTypeChart/PayTypeChart.js
+9
-16
PayTypeChart.ts
miniprogram/pages/components/PayTypeChart/PayTypeChart.ts
+17
-14
home.js
miniprogram/pages/home/home.js
+3
-3
home.ts
miniprogram/pages/home/home.ts
+1
-1
homeAndReport.js
miniprogram/pages/homeAndReport/homeAndReport.js
+3
-3
homeAndReport.ts
miniprogram/pages/homeAndReport/homeAndReport.ts
+1
-1
index.wxml
miniprogram/pages/index/index.wxml
+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/images/btn_turn
on.png
→
miniprogram/images/btn_turn
_
on.png
View file @
4db55921
File moved
miniprogram/pages/components/PayTypeChart/PayTypeChart.js
View file @
4db55921
...
...
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGF5VHlwZUNoYXJ0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiUGF5VHlwZUNoYXJ0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNENBQWtEO0FBR2xELElBQUksWUFBWSxHQUFHLElBQUksQ0FBQztBQUN4QixJQUFJLEtBQUssR0FBRyxFQUFFLENBQUM7QUFDZixJQUFNLFFBQVEsR0FBRztJQUNmLElBQUksRUFBRSxTQUFTO0lBQ2YsSUFBSSxFQUFFLFNBQVM7SUFDZixRQUFRLEVBQUUsU0FBU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zOiB7XG4gICAgZGF0YUxpc3Q6IHtcbiAgICAgIHR5cGU6IEFycmF5LFxuICAgICAgdmFsdWU6IFtdLFxuICAgICAgb2JzZXJ2ZXIobmV3VmFsKSB7XG4gICAgICAgIHBheXR5cGVDaGFydCAmJlxuICAgICAgICAgIHBheXR5cGVDaGFydC5sZWdlbmQoe1xuICAgICAgICAgICAgcG9zaXRpb246ICdyaWdodCcsXG4gICAgICAgICAgICBtYXJrZXI6ICdzcXVhcmUnLFxuICAgICAgICAgICAgaXRlbUZvcm1hdHRlcjogdmFsID0+IHtcbiAgICAgICAgICAgICAgbGV0IGl0ZW0gPSBuZXdWYWwuZmluZChpdGVtID0+IGl0ZW0ua2V5ID09PSB2YWwpO1xuICAgICAgICAgICAgICByZXR1cm4gaXRlbSA/IGl0ZW0ubmFtZSArICcgICAgJyArIGZvcm1hdFByaWNlKGl0ZW0uY291bnQpIDogJyc7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgLy8gY3VzdG9tOiB0cnVlLFxuICAgICAgICAgICAgLy8gaXRlbXM6IG5ld1ZhbC5tYXAoaXRlbSA9PiAoe1xuICAgICAgICAgICAgLy8gICBuYW1lOiBpdGVtLm5hbWUsXG4gICAgICAgICAgICAvLyAgIHZhbHVlOiAnICcgKyBmb3JtYXRQcmljZShpdGVtLmNvdW50KSxcbiAgICAgICAgICAgIC8vICAgbWFya2VyOiB7XG4gICAgICAgICAgICAvLyAgICAgc3ltYm9sOiAnc3F1YXJlJyxcbiAgICAgICAgICAgIC8vICAgICBmaWxsOiBjb2xvck1hcFtpdGVtLmtleV0sXG4gICAgICAgICAgICAvLyAgICAgcmFkaXVzOiA0LFxuICAgICAgICAgICAgLy8gICB9LFxuICAgICAgICAgICAgLy8gfSkpLFxuICAgICAgICAgIH0pO1xuICAgICAgICBwYXl0eXBlQ2hhcnQgJiYgcGF5dHlwZUNoYXJ0LmNoYW5nZURhdGEobmV3VmFsKTtcbiAgICAgIH0sXG4gICAgfSxcbiAgICBtb250aDoge1xuICAgICAgdHlwZTogU3RyaW5nLFxuICAgICAgdmFsdWU6ICcnLFxuICAgICAgb2JzZXJ2ZXIobmV3VmFsKSB7XG4gICAgICAgIG1vbnRoID0gbmV3VmFsO1xuICAgICAgfSxcbiAgICB9LFxuICB9LFxuICBkYXRhOiB7XG4gICAgb3B0czoge1xuICAgICAgb25Jbml0OiBpbml0Q2hhcnQsXG4gICAgfSxcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
miniprogram/pages/components/PayTypeChart/PayTypeChart.ts
View file @
4db55921
...
...
@@ -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/home/home.js
View file @
4db55921
...
...
@@ -96,7 +96,7 @@ Component({
else
if
(
timeType
===
2
)
{
entity
.
year
=
date
.
slice
(
0
,
4
);
}
wx
.
showLoading
({
title
:
''
});
wx
.
showLoading
({
title
:
''
,
mask
:
true
});
var
rechargeDataFetch
=
fetch_1
.
statisticsFetch
({
url
:
'/dcxy/reportInfo/queryRechargeOrderListV2'
,
method
:
'POST'
,
...
...
@@ -165,4 +165,4 @@ Component({
},
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImhvbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBa0Q7QUFDbEQseUNBQThDO0FBRzlDLFNBQVMsQ0FBQztJQUNSLFNBQVMsRUFBRTtRQUNULFFBQVE7WUFDTixPQUFPLENBQUMsR0FBRyxDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1lBQzNDLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxPQUFPLElBQUksSUFBSSxDQUFDLGlCQUFpQixFQUFFLENBQUM7UUFDakQsQ0FBQztLQUNGO0lBSUQsSUFBSSxFQUFFO1FBQ0osUUFBUSxFQUFFLENBQUM7UUFDWCxPQUFPLEVBQUUsS0FBSztRQUNkLFdBQVcsRUFBRSxFQUFFO1FBQ2YsWUFBWSxFQUFFO1lBQ1osS0FBSyxFQUFFLE1BQU07WUFDYixVQUFVLEVBQUUsT0FBTztZQUNuQixLQUFLLEVBQUUsQ0FBQztTQUNUO1FBQ0QsYUFBYSxFQUFFO1lBQ2IsS0FBSyxFQUFFLE9BQU87WUFDZCxVQUFVLEVBQUUsRUFBRTtZQUNkLEtBQUssRUFBRSxDQUFDO1NBQ1Q7UUFDRCxrQkFBa0IsRUFBRTtZQUNsQixLQUFL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oaXMuZmV0Y2hSZWNoYXJnZURhdGEoKTtcbiAgICB9LFxuICB9LFxuICAvKipcbiAgICog6aG16Z2i55qE5Yid5aeL5pWw5o2uXG4gICAqL1xuICBkYXRhOiB7XG4gICAgdGltZVR5cGU6IDAsXG4gICAgZmV0Y2hlZDogZmFsc2UsXG4gICAgc2VydmljZUxpc3Q6IFtdLFxuICAgIHJlY2hhcmdlRGF0YToge1xuICAgICAgdGl0bGU6ICflhYXlgLzmgLvpop0nLFxuICAgICAgbnVtYmVyVHlwZTogJ3ByaWNlJyxcbiAgICAgIGNvdW50OiAwLFxuICAgIH0sXG4gICAgcmVjaGFyZ2VDb3VudDoge1xuICAgICAgdGl0bGU6ICflhYXlgLzmgLvnrJTmlbAnLFxuICAgICAgbnVtYmVyVHlwZTogJycsXG4gICAgICBjb3VudDogMCxcbiAgICB9LFxuICAgIG9ubGluZVJlY2hhcmdlRGF0YToge1xuICAgICAgdGl0bGU6ICfnur/kuIrlhYXlgLwnLFxuICAgICAgbnVtYmVyVHlwZTogJzEnLFxuICAgICAgY291bnQ6IDAsXG4gICAgICBwcmljZTogMCxcbiAgICB9LFxuICAgIG9mZmxpbmVSZWNoYXJnZURhdGE6IHtcbiAgICAgIHRpdGxlOiAn57q/5LiL5YWF5YC8JyxcbiAgICAgIG51bWJlclR5cGU6ICcxJyxcbiAgICAgIGNvdW50OiAwLFxuICAgICAgcHJpY2U6IDAsXG4gICAgfSxcbiAgICBjb21zdW1lckRhdGE6IHtcbiAgICAgIHRpdGxlOiAn5raI6LS55oC76aKdJyxcbiAgICAgIG51bWJlclR5cGU6ICdwcmljZScsXG4gICAgICBjb3VudDogMCxcbiAgICB9LFxuICAgIGNvbXN1bWVyQ291bnQ6IHtcbiAgICAgIHRpdGxlOiAn5raI6LS55oC756yU5pWwJyxcbiAgICAgIG51bWJlclR5cGU6ICcnLFxuICAgICAgY291bnQ6IDAsXG4gICAgfSxcbiAgICByZWZ1bmREYXRhOiB7XG4gICAgICB0aXRsZTog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cgJylbMF07XG4gICAgICBsZXQgZW50aXR5ID0ge1xuICAgICAgICB0aW1lVHlwZSxcbiAgICAgIH07XG4gICAgICBpZiAodGltZVR5cGUgPT09IDApIHtcbiAgICAgICAgZW50aXR5LmRhdGUgPSBkYXRlO1xuICAgICAgfSBlbHNlIGlmICh0aW1lVHlwZSA9PT0gMSkge1xuICAgICAgICBlbnRpdHkubW9udGggPSBkYXRlLnNsaWNlKDAsIDcpO1xuICAgICAgfSBlbHNlIGlmICh0aW1lVHlwZSA9PT0gMikge1xuICAgICAgICBlbnRpdHkueWVhciA9IGRhdGUuc2xpY2UoMCwgNCk7XG4gICAgICB9XG4gICAgICB3eC5zaG93TG9hZGluZyh7IHRpdGxlOiAnJyB9KTtcblxuICAgICAgbGV0IHJlY2hhcmdlRGF0YUZldGNoID0gc3RhdGlzdGljc0ZldGNoKHtcbiAgICAgICAgdXJsOiAnL2RjeHkvcmVwb3J0SW5mby9xdWVyeVJlY2hhcmdlT3JkZXJMaXN0VjInLFxuICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgZGF0YTogZW50aXR5LFxuICAgICAgfSkudGhlbihyZXMgPT4ge1xuICAgICAgICBjb25zdCBkYXRhID0gcmVzLnJlY2hhcmdlT3JkZXJDb3VudFZvO1xuICAgICAgICBpZiAoZGF0YSkge1xuICAgICAgICAgIGNvbnN0IHtcbiAgICAgICAgICAgIHJlY2hhcmdlTWVuLFxuICAgICAgICAgICAgcmVjaGFyZ2VNb25leSxcbiAgICAgICAgICAgIHJlZnVuZENvdW50LFxuICAgICAgICAgICAgcmVmdW5kTW9uZXksXG4gICAgICAgICAgICBvZmZsaW5lUmVjaGFyZ2VNZW4sXG4gICAgICAgICAgICBvZmZsaW5lUmVjaGFyZ2VNb25leSxcbiAgICAgICAgICAgIG9ubGluZVJlY2hhcmdlTWVuLFxuICAgICAgICAgICAgb25saW5lUmVjaGFyZ2VNb25leSxcbiAgICAgICAgICB9ID0gZGF0YTtcbiAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgJ3JlY2hhcmdlRGF0YS5jb3VudCc6IHJlY2hhcmdlTW9uZXksXG4gICAgICAgICAgICAncmVjaGFyZ2VDb3VudC5jb3VudCc6IHJlY2hhcmdlTWVuLFxuICAgICAgICAgICAgJ3JlZnVuZERhdGEuY291bnQnOiByZWZ1bmRNb25leSxcbiAgICAgICAgICAgICdyZWZ1bmRDb3VudC5jb3VudCc6IHJlZnVuZENvdW50LFxuICAgICAgICAgICAgJ29ubGluZVJlY2hhcmdlRGF0YS5wcmljZSc6IG9ubGluZVJlY2hhcmdlTW9uZXksXG4gICAgICAgICAgICAnb25saW5lUmVjaGFyZ2VEYXRhLmNvdW50Jzogb25saW5lUmVjaGFyZ2VNZW4sXG4gICAgICAgICAgICAnb2ZmbGluZVJlY2hhcmdlRGF0YS5wcmljZSc6IG9mZmxpbmVSZWNoYXJnZU1vbmV5LFxuICAgICAgICAgICAgJ29mZmxpbmVSZWNoYXJnZURhdGEuY291bnQnOiBvZmZsaW5lUmVjaGFyZ2VNZW4sXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICdyZWNoYXJnZURhdGEuY291bnQnOiAwLFxuICAgICAgICAgICAgJ3JlY2hhcmdlQ291bnQuY291bnQnOiAwLFxuICAgICAgICAgICAgJ3JlZnVuZERhdGEuY291bnQnOiAwLFxuICAgICAgICAgICAgJ3JlZnVuZENvdW50LmNvdW50JzogMCxcbiAgICAgICAgICAgICdvbmxpbmVSZWNoYXJnZURhdGEucHJpY2UnOiAwLFxuICAgICAgICAgICAgJ29ubGluZVJlY2hhcmdlRGF0YS5jb3VudCc6IDAsXG4gICAgICAgICAgICAnb2ZmbGluZVJlY2hhcmdlRGF0YS5wcmljZSc6IDAsXG4gICAgICAgICAgICAnb2ZmbGluZVJlY2hhcmdlRGF0YS5jb3VudCc6IDAsXG4gICAgICAgIC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IFByb21pc2UuYWxsKFtjb25zdW1lRGF0YUZldGNoLCByZWNoYXJnZURhdGFGZXRjaF0pXG4gICAgICAgIC50aGVuKCgpID0+IHtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICB9KVxuICAgICAgICAuY2F0Y2goKGVycjogd3guR2VuZXJhbENhbGxiYWNrUmVzdWx0KSA9PiB7XG4gICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6IGVyci5lcnJNc2csXG4gICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgfSk7XG4gICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgfSk7XG4gICAgfSxcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImhvbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBa0Q7QUFDbEQseUNBQThDO0FBRzlDLFNBQVMsQ0FBQztJQUNSLFNBQVMsRUFBRTtRQUNULFFBQVE7WUFDTixPQUFPLENBQUMsR0FBRyxDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1lBQzNDLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxPQUFPLElBQUksSUFBSSxDQUFDLGlCQUFpQixFQUFFLENBQUM7UUFDakQsQ0FBQztLQUNGO0lBSUQsSUFBSSxFQUFFO1FBQ0osUUFBUSxFQUFFLENBQUM7UUFDWCxPQUFPLEVBQUUsS0FBSztRQUNkLFdBQVcsRUFBRSxFQUFFO1FBQ2YsWUFBWSxFQUFFO1lBQ1osS0FBSyxFQUFFLE1BQU07WUFDYixVQUFVLEVBQU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6ICfmtojotLnmgLvpop0nLFxuICAgICAgbnVtYmVyVHlwZTogJ3ByaWNlJyxcbiAgICAgIGNvdW50OiAwLFxuICAgIH0sXG4gICAgY29tc3VtZXJDb3VudDoge1xuICAgICAgdGl0bGU6ICfmtojotLnmgLvnrJTmlbAnLFxuICAgICAgbnVtYmVyVHlwZTogJycsXG4gICAgICBjb3VudDogMCxcbiAgICB9LFxuICAgIHJlZnVuZERhdGE6IHtcbiAgICAgIHRpdGxlOiAn6YCA5qy+5oC76aKdJyxcbiAgICAgIG51bWJlclR5cGU6ICdwcmljZScsXG4gICAgICBjb3VudDogMCxcbiAgICB9LFxuICAgIHJlZnVuZENvdW50OiB7XG4gICAgICB0aXRsZTogJ+mAgOasvuaAu+eslOaVsCcsXG4gICAgICBudW1iZXJUeXBlOiAnJyxcbiAgICAgIGNvdW50OiAwLFxuICAgIH0sXG4gICAgdGVzdERhdGE6IHtcbiAgICAgIHRpdGxlOiAn5YWF5YC85oC76aKdJyxcbiAgICAgIG51bWJlclR5cGU6ICdwcmljZScsXG4gICAgICBjb3VudDogMCxcbiAgICB9LFxuICAgIHRlc3REYXRhMjoge1xuICAgICAgdGl0bGU6ICfnur/kuIrlhYXlgLwnLFxuICAgICAgbnVtYmVyVHlwZTogJzEnLFxuICAgICAgY291bnQ6IDAsXG4gICAgICBwcmljZTogMCxcbiAgICB9LFxuICB9LFxuICBtZXRob2RzOiB7XG4gICAgY2hhbmdlVGltZVR5cGUoZSkge1xuICAgICAgY29uc3QgeyB0aW1ldHlwZSB9ID0gZS5jdXJyZW50VGFyZ2V0LmRhdGFzZXQ7XG4gICAgICBpZiAodGltZXR5cGUgPT09IHRoaXMuZGF0YS50aW1lVHlwZSkgcmV0dXJuO1xuICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgdGltZVR5cGU6IHRpbWV0eXBlLFxuICAgICAgfSk7XG4gICAgICB0aGlzLmZldGNoUmVjaGFyZ2VEYXRhKHRpbWV0eXBlKTtcbiAgICAg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sXG4gICAgICAgICAgICByZWNoYXJnZU1vbmV5LFxuICAgICAgICAgICAgcmVmdW5kQ291bnQsXG4gICAgICAgICAgICByZWZ1bmRNb25leSxcbiAgICAgICAgICAgIG9mZmxpbmVSZWNoYXJnZU1lbixcbiAgICAgICAgICAgIG9mZmxpbmVSZWNoYXJnZU1vbmV5LFxuICAgICAgICAgICAgb25saW5lUmVjaGFyZ2VNZW4sXG4gICAgICAgICAgICBvbmxpbmVSZWNoYXJnZU1vbmV5LFxuICAgICAgICAgIH0gPSBkYXRhO1xuICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAncmVjaGFyZ2VEYXRhLmNvdW50JzogcmVjaGFyZ2VNb25leSxcbiAgICAgICAgICAgICdyZWNoYXJnZUNvdW50LmNvdW50JzogcmVjaGFyZ2VNZW4sXG4gICAgICAgICAgICAncmVmdW5kRGF0YS5jb3VudCc6IHJlZnVuZE1vbmV5LFxuICAgICAgICAgICAgJ3JlZnVuZENvdW50LmNvdW50JzogcmVmdW5kQ291bnQsXG4gICAgICAgICAgICAnb25saW5lUmVjaGFyZ2VEYXRhLnByaWNlJzogb25saW5lUmVjaGFyZ2VNb25leSxcbiAgICAgICAgICAgICdvbmxpbmVSZWNoYXJnZURhdGEuY291bnQnOiBvbmxpbmVSZWNoYXJnZU1lbixcbiAgICAgICAgICAgICdvZmZsaW5lUmVjaGFyZ2VEYXRhLnByaWNlJzogb2ZmbGluZVJlY2hhcmdlTW9uZXksXG4gICAgICAgICAgICAnb2ZmbGluZVJlY2hhcmdlRGF0YS5jb3VudCc6IG9mZmxpbmVSZWNoYXJnZU1lbixcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgJ3JlY2hhcmdlRGF0YS5jb3VudCc6IDAsXG4gICAgICAgICAgICAncmVjaGFyZ2VDb3VudC5jb3VudCc6IDAsXG4gICAgICAgICAgICAncmVmdW5kRGF0YS5jb3VudCc6IDAsXG4gICAgICAgICAgICAncmVmdW5kQ291bnQuY291bnQnOiAwLFxuICAgICAgICAgICAgJ29ubGluZVJlY2hhcmdlRGF0YS5wcmljZSc6IDAsXG4gICAgICAgICAgICAnb25saW5lUmVjaGFyZ2VEYXRhLmNvdW50JzogMCxcbiAgICAgICAgICAgICdvZmZsaW5lUmVjaGFyZ2VEYXRhLnByaWNlJzogMCxcbiAgICAgICAgICAgICdvZmZsaW5lUmVjaGFyZ2VEYXRhLmNvdW50JzogMCxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSk7XG4gICAgICBsZXQgY29uc3VtZURhdGFGZXRjaCA9IHN0YXRpc3RpY3NGZXRjaCh7XG4gICAgICAgIHVybDogJy9kY3h5L3JlcG9ydEluZm8vcXVlcnlDb25zdW1lT3JkZXJMaXN0JyxcbiAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgIGRhdGE6IGVudGl0eSxcbiAgICAgIH0pLnRoZW4ocmVzID0+IHtcbiAgICAgICAgY29uc3QgeyBjb25zdW1lQ291bnRWbywgZGF0YSB9ID0gcmVzO1xuICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgIHNlcnZpY2VMaXN0OiBkYXRhLm1hcChpdGVtID0+ICh7XG4gICAgICAgICAgICBzZXJ2aWNlSWQ6IGl0ZW0uc2VydmljZUlkLFxuICAgICAgICAgICAgdGl0bGU6IGl0ZW0uc2VydmljZU5hbWUsXG4gICAgICAgICAgICBudW1iZXJUeXBlOiAnMScsXG4gICAgICAgICAgICBjb3VudDogaXRlbS5wYXlNZW4sXG4gICAgICAgICAgICBwcmljZTogaXRlbS5wYXlhYmxlTW9uZXksXG4gICAgICAgICAgfSkpLFxuICAgICAgICAgICdjb21zdW1lckRhdGEuY291bnQnOlxuICAgICAgICAgICAgY29uc3VtZUNvdW50Vm8gJiYgY29uc3VtZUNvdW50Vm8ucGF5YWJsZU1vbmV5XG4gICAgICAgICAgICAgID8gY29uc3VtZUNvdW50Vm8ucGF5YWJsZU1vbmV5XG4gICAgICAgICAgICAgIDogMCxcbiAgICAgICAgICAnY29tc3VtZXJDb3VudC5jb3VudCc6XG4gICAgICAgICAgICBjb25zdW1lQ291bnRWbyAmJiBjb25zdW1lQ291bnRWby5wYXlNZW4gPyBjb25zdW1lQ291bnRWby5wYXlNZW4gOiAwLFxuICAgICAgICB9KTtcbiAgICAgIH0pO1xuICAgICAgUHJvbWlzZS5hbGwoW2NvbnN1bWVEYXRhRmV0Y2gsIHJlY2hhcmdlRGF0YUZldGNoXSlcbiAgICAgICAgLnRoZW4oKCkgPT4ge1xuICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaCgoZXJyOiB3eC5HZW5lcmFsQ2FsbGJhY2tSZXN1bHQpID0+IHtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICB0aXRsZTogZXJyLmVyck1zZyxcbiAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICB9KTtcbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
miniprogram/pages/home/home.ts
View file @
4db55921
...
...
@@ -94,7 +94,7 @@ Component({
}
else
if
(
timeType
===
2
)
{
entity
.
year
=
date
.
slice
(
0
,
4
);
}
wx
.
showLoading
({
title
:
''
});
wx
.
showLoading
({
title
:
''
,
mask
:
true
});
let
rechargeDataFetch
=
statisticsFetch
({
url
:
'/dcxy/reportInfo/queryRechargeOrderListV2'
,
...
...
miniprogram/pages/homeAndReport/homeAndReport.js
View file @
4db55921
...
...
@@ -13,7 +13,7 @@ Page({
pagePath
:
'/pages/report/report'
,
iconPath
:
'/images/tab_baobiao_n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AgICAgICBwYWdlUGF0aDogJy9wYWdlcy9ob21lL2hvbWUnLFxuICAgICAgICBpY29uUGF0aDogJy9pbWFnZXMvdGFiX3NodWp1X25vckAyeC5wbmcnLFxuICAgICAgICBzZWxlY3RlZEljb25QYXRoOiAnL2ltYWdlcy90YWJfc2h1anVfcHJlQDJ4LnBuZycsXG4gICAgICAgIHRleHQ6ICfmlbDmja7pppbpobUnLFxuICAgICAgfSxcbiAgICAgIHtcbiAgICAgICAgcGFnZVBhdGg6ICcvcGFnZXMvcmVwb3J0L3JlcG9ydCcsXG4gICAgICAgIGljb25QYXRoOiAnL2ltYWdlcy90YWJfYmFvYmlhb19ub3JAMngucG5nJyxcbiAgICAgICAgc2VsZWN0ZWRJY29uUGF0aDogJy9pbWFnZXMvdGFiX2Jhb2JpYW9fcHJlQDJ4LnBuZycsXG4gICAgICAgIHRleHQ6ICfmiqXooajliIbmnpAnLFxuICAgICAgfSxcbiAgICBdLFxuICB9LFxuICBjbGlja0hhbmRsZShlKSB7XG4gICAgY29uc29sZS5sb2coJ2luIGNsaWNrJywgZSk7XG4gICAgbGV0IHsgcGF0aCwgaW5kZXggfSA9IGUuZGV0YWlsO1xuICAgIC8vIGNvbnNvbGUubG9nKHBhdGgsIGluZGV4KTtcbiAgICAvLyB3eC5zd2l0Y2hUYWIoeyB1cmw6IHBhdGggfSk7XG4gICAgdGhpcy5zZXREYXRhKHtcbiAgICAgIHNlbGVjdGVkOiBpbmRleCxcbiAgICB9KTtcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZUFuZFJlcG9ydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImhvbWVBbmRSZXBvcnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQUksQ0FBQztJQUNILElBQUksRUFBRTtRQUNKLFFBQVEsRUFBRSxDQUFDO1FBQ1g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3JAMngucG5nJyxcbiAgICAgICAgc2VsZWN0ZWRJY29uUGF0aDogJy9pbWFnZXMvdGFiX2Jhb2JpYW9fcHJlQDJ4LnBuZycsXG4gICAgICAgIHRleHQ6ICfov5DokKXnrqHnkIYnLFxuICAgICAgfSxcbiAgICBdLFxuICB9LFxuICBjbGlja0hhbmRsZShlKSB7XG4gICAgY29uc29sZS5sb2coJ2luIGNsaWNrJywgZSk7XG4gICAgbGV0IHsgcGF0aCwgaW5kZXggfSA9IGUuZGV0YWlsO1xuICAgIC8vIGNvbnNvbGUubG9nKHBhdGgsIGluZGV4KTtcbiAgICAvLyB3eC5zd2l0Y2hUYWIoeyB1cmw6IHBhdGggfSk7XG4gICAgdGhpcy5zZXREYXRhKHtcbiAgICAgIHNlbGVjdGVkOiBpbmRleCxcbiAgICB9KTtcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
miniprogram/pages/homeAndReport/homeAndReport.ts
View file @
4db55921
...
...
@@ -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/index/index.wxml
View file @
4db55921
...
...
@@ -5,7 +5,7 @@
<input class="login-input" placeholder="请输入账号" bindinput="nameInputHandle" />
<view class="login-input-password">
<input class="login-input" placeholder="请输入密码" password="{{!showPassword}}" bindinput="passwardInoutHandle" />
<image wx:if="{{showPassword}}" catchtap="togglePassword" class="password-eyes" src="../../images/btn_turn
on.png"></image>
<image wx:if="{{showPassword}}" catchtap="togglePassword" class="password-eyes" src="../../images/btn_turn
_
on.png"></image>
<image wx:else catchtap="togglePassword" class="password-eyes" src="../../images/btn_turnoff.png"></image>
</view>
...
...
miniprogram/pages/userGrowth/userGrowth.js
View file @
4db55921
...
...
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlckdyb3d0aC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInVzZXJHcm93dGgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHlDQUE2RDtBQUM3RCx5Q0FBOEM7QUFFOUMsSUFBTSxHQUFHLEdBQUcsTUFBTSxFQUFVLENBQUM7QUFHN0IsSUFBSSxDQUFDO0lBQ0gsTUFBTTtRQUNKLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQztRQUNoQixJQUFJLENBQUMsYUFBYSxFQUFFLENBQUM7SUFDdkIsQ0FBQztJQUlELElBQUksRUFBRTtRQUNKLEtBQUssRUFBRSxFQUFFO1FBQ1QsTUFBTSxFQUFFLEVBQUU7UUFDVixRQUFRLEVBQUUsRUFBRTtRQUNaLFFBQVEsRUFBRSxFQUFFO1FBQ1osVUFBVSxFQUFFLEVBQUU7UUFDZCxhQUFhLEVBQUUsQ0FBQztRQUNoQixXQUFXLEVBQUUsQ0FBQztRQUNkLE9BQU8sRUFBRSxDQUFDO0tBQ1g7SUFDRCxRQUFRO1FBQVIsaUJBeUJDO1FBeEJDLElBQUksSUFBSSxHQUFHLGlCQUFVLENBQUMsSUFBSSxJQUFJ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A8IG9MaXN0Lmxlbmd0aDsgaW5kZXgrKykge1xuICAgICAgICAgICAgY29uc3QgZWxlbWVudCA9IG9MaXN0W2luZGV4XTtcbiAgICAgICAgICAgIGxldCBkYXlzSW5kZXggPSBOdW1iZXIoZWxlbWVudC5kYXlzLnNsaWNlKC0yKSk7XG4gICAgICAgICAgICBkYXlMaXN0W2RheXNJbmRleCAtIDFdID0ge1xuICAgICAgICAgICAgICAuLi5kYXlMaXN0W2RheXNJbmRleCAtIDFdLFxuICAgICAgICAgICAgICBjb3VudDogZWxlbWVudC5jb3VudCxcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGxldCByZWdpc3RlckNvdW50ID0gZGF5Vm9zLnJlZHVjZShcbiAgICAgICAgICAodG90YWwsIGN1cnJlbnQpID0+ICh0b3RhbCArPSBjdXJyZW50LmNvdW50KSxcbiAgICAgICAgICAwLFxuICAgICAgICApO1xuICAgICAgICBjb25zb2xlLmxvZygnZGF5TGlzdDonLCBkYXlMaXN0KTtcbiAgICAgICAgdGhpcy5zZXREYXRhISh7XG4gICAgICAgICAgZ3Jvd3RoTGlzdDogZGF5TGlzdCxcbiAgICAgICAgICByZWdpc3RlckNvdW50OiByZWdpc3RlckNvdW50LFxuICAgICAgICAgIGN1c3RvbWVyQ291bnQ6IGN1c3RvbWVyQ291bnQgPyBjdXN0b21lckNvdW50IDogMCxcbiAgICAgICAgICBhY3RpdmVDb3VudDogYWN0aXZlQ291bnQgPyBhY3RpdmVDb3VudCA6IDAsXG4gICAgICAgIH0pO1xuICAgICAgfSlcbiAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgfSk7XG4gIH0sXG4gIGFyZWFDaGFuZ2VIYW5kbGUodmFsKSB7XG4gICAgY29uc29sZS5sb2coJ2FyZWFDaGFuZ2VIYW5kbGUnLCB2YWwpO1xuICAgIGNvbnN0IHsgaWQsIG5hbWUgfSA9IHZhbDtcbiAgICB0aGlzLnNldERhdGEhKFxuICAgICAge1xuICAgICAgICBhcmVhSWQ6IGlkLFxuICAgICAgICBhcmVhTmFtZTogbmFtZSxcbiAgICAgIH0sXG4gICAgICAoKSA9PiB7XG4gICAgICAgIGlmIChpZCkge1xuICAgICAgICAgIHRoaXMuZmV0Y2hMaXN0KHsgYXJlYUlkOiBpZCB9KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB0aGlzLmZldGNoTGlzdCgpO1xuICAgICAgICB9XG4gICAgICB9LFxuICAgICk7XG4gIH0sXG4gIG1vbnRoQ2hhbmdlSGFuZGxlKHZhbCkge1xuICAgIGNvbnNvbGUubG9nKCdtb250aENoYW5nZUhhbmRsZScsIHZhbCk7XG4gICAgY29uc3QgeyB2YWx1ZSB9ID0gdmFsLmRldGFpbDtcbiAgICB0aGlzLmZldGNoTGlzdCh7IG1vbnRoU3RyaW5nOiB2YWx1ZSB9KTtcbiAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgIG1vbnRoOiB2YWx1ZSxcbiAgICB9KTtcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
miniprogram/pages/userGrowth/userGrowth.ts
View file @
4db55921
...
...
@@ -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 @
4db55921
...
...
@@ -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 @
4db55921
...
...
@@ -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 +43,4 @@ exports.delay = (function () {
timer
=
setTimeout
(
callback
,
ms
);
};
})();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInV0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxvQkFBMkIsSUFBVTtJQUNuQyxJQUFNLElBQUksR0FBRyxJQUFJLENBQUMsV0FBVyxFQUFFLENBQUM7SUFDaEMsSUFBTSxLQUFLLEdBQUcsSUFBSSxDQUFDLFFBQVEsRUFBRSxHQUFHLENBQUMsQ0FBQztJQUNsQyxJQUFNLEdBQUcsR0FBRyxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUM7SUFDM0IsSUFBTSxJQUFJLEdBQUcsSUFBSSxDQUFDLFFBQVEsRUFBRSxDQUFDO0lBQzdCLElBQU0sTUFBTSxHQUFHLElBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQztJQUNqQyxJQUFNLE1BQU0sR0FBRyxJQUFJLENBQUMsVUFBVSxFQUFFLENBQUM7SUFFakMsTUFBTSxDQUFDLENBQ0wsQ0FBQyxJQUFJLEVBQUUsS0FBSyxFQUFFLEdBQUcsQ0FBQyxDQUFDLEdBQUc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AmJiBpbmRleCAhPSAwKSB7XG4gICAgICByZXN1bHQudW5zaGlmdCgnLCcpO1xuICAgIH1cbiAgfVxuICByZXR1cm4gcmVzdWx0LmpvaW4oJycpO1xufTtcbmV4cG9ydCBjb25zdCBkZWxheSA9IChmdW5jdGlvbigpIHtcbiAgbGV0IHRpbWVyID0gMDtcbiAgcmV0dXJuIGZ1bmN0aW9uKGNhbGxiYWNrOiAoKSA9PiB2b2lkLCBtczogbnVtYmVyKSB7XG4gICAgY2xlYXJUaW1lb3V0KHRpbWVyKTtcbiAgICB0aW1lciA9IHNldFRpbWVvdXQoY2FsbGJhY2ssIG1zKTtcbiAgfTtcbn0pKCk7XG4iXX0=
\ No newline at end of file
miniprogram/utils/util.ts
View file @
4db55921
...
...
@@ -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