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
8296f540
Commit
8296f540
authored
Dec 31, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into test
parents
a186d644
8a6b4fdb
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
109 additions
and
30 deletions
+109
-30
PlatformFeeChart.js
...ram/pages/components/PlatformFeeChart/PlatformFeeChart.js
+30
-7
PlatformFeeChart.ts
...ram/pages/components/PlatformFeeChart/PlatformFeeChart.ts
+28
-6
PlatformFeeDialog.js
...m/pages/components/PlatformFeeDialog/PlatformFeeDialog.js
+3
-3
PlatformFeeDialog.ts
...m/pages/components/PlatformFeeDialog/PlatformFeeDialog.ts
+1
-1
platformFee.js
miniprogram/pages/platformFee/platformFee.js
+25
-6
platformFee.ts
miniprogram/pages/platformFee/platformFee.ts
+20
-5
platformFee.wxml
miniprogram/pages/platformFee/platformFee.wxml
+2
-2
No files found.
miniprogram/pages/components/PlatformFeeChart/PlatformFeeChart.js
View file @
8296f540
...
@@ -9,7 +9,7 @@ function initChart(canvas, width, height, F2) {
...
@@ -9,7 +9,7 @@ function initChart(canvas, width, height, F2) {
height
:
height
,
height
:
height
,
});
});
platforFeeChart
.
source
(
data
,
{
platforFeeChart
.
source
(
data
,
{
days
:
{
month
:
{
min
:
1
,
min
:
1
,
max
:
12
,
max
:
12
,
},
},
...
@@ -24,7 +24,7 @@ function initChart(canvas, width, height, F2) {
...
@@ -24,7 +24,7 @@ function initChart(canvas, width, height, F2) {
onShow
:
function
(
ev
)
{
onShow
:
function
(
ev
)
{
var
items
=
ev
.
items
;
var
items
=
ev
.
items
;
items
[
0
].
name
=
''
;
items
[
0
].
name
=
''
;
items
[
0
].
value
=
month
+
'-'
+
items
[
0
].
title
;
items
[
0
].
value
=
items
[
0
].
title
+
'月'
;
items
[
1
].
name
=
''
;
items
[
1
].
name
=
''
;
items
[
1
].
value
=
items
[
1
].
value
+
'元'
;
items
[
1
].
value
=
items
[
1
].
value
+
'元'
;
},
},
...
@@ -59,18 +59,36 @@ function findMaxIndex(list, key) {
...
@@ -59,18 +59,36 @@ function findMaxIndex(list, key) {
return
maxIndex
;
return
maxIndex
;
}
}
Component
({
Component
({
lifetimes
:
{
attached
:
function
()
{
var
_this
=
this
;
var
query
=
wx
.
createSelectorQuery
().
in
(
this
);
query
.
select
(
'#PlatformFeeChart'
)
.
boundingClientRect
(
function
(
res
)
{
console
.
log
(
res
);
_this
.
setData
({
x
:
res
.
left
,
y
:
res
.
top
,
});
})
.
exec
();
},
},
properties
:
{
properties
:
{
dataList
:
{
dataList
:
{
type
:
Array
,
type
:
Array
,
value
:
[],
value
:
[],
observer
:
function
(
newVal
)
{
observer
:
function
(
newVal
)
{
platforFeeChart
&&
platforFeeChart
.
changeData
(
newVal
);
platforFeeChart
&&
platforFeeChart
.
changeData
(
newVal
);
if
(
platforFeeChart
)
{
var
index
=
findMaxIndex
(
newVal
,
'totalMoney'
);
var
index
=
findMaxIndex
(
newVal
,
'totalMoney'
);
if
(
index
!==
-
1
)
{
if
(
index
!==
-
1
)
{
var
item
=
newVal
[
index
];
var
item
=
newVal
[
index
];
var
point
=
platforFeeChart
.
getPosition
(
item
);
var
point
=
platforFeeChart
.
getPosition
(
item
);
platforFeeChart
.
showTooltip
(
point
);
platforFeeChart
.
showTooltip
(
point
);
}
}
}
},
},
},
},
month
:
{
month
:
{
...
@@ -85,13 +103,18 @@ Component({
...
@@ -85,13 +103,18 @@ Component({
opts
:
{
opts
:
{
onInit
:
initChart
,
onInit
:
initChart
,
},
},
x
:
0
,
y
:
0
,
},
},
methods
:
{
methods
:
{
clickHandle
:
function
(
e
)
{
clickHandle
:
function
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
.
detail
);
var
obj
=
platforFeeChart
.
getRecord
(
e
.
detail
);
var
x
=
e
.
detail
.
x
-
this
.
data
.
x
;
this
.
triggerEvent
(
'selectedData'
,
obj
);
var
y
=
e
.
detail
.
y
-
this
.
data
.
y
;
var
objArr
=
platforFeeChart
.
getSnapRecords
({
x
:
x
,
y
:
y
});
if
(
objArr
.
length
)
this
.
triggerEvent
(
'selectedData'
,
objArr
[
0
].
_origin
);
},
},
},
},
});
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGxhdGZvcm1GZWVDaGFydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlBsYXRmb3JtRmVlQ2hhcnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLElBQUksZUFBZSxHQUFHLElBQUksQ0FBQztBQUMzQixJQUFJLEtBQUssR0FBRyxFQUFFLENBQUM7QUFFZixtQkFBbUIsTUFBTSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsRUFBRTtJQUMxQyxJQUFNLElBQUksR0FBRyxFQUFFLENBQUM7SUFDaEIsZUFBZSxHQUFHLElBQUksRUFBRSxDQUFDLEtBQUssQ0FBQztRQUM3QixFQUFFLEVBQUUsTUFBTTtRQUNWLEtBQUssT0FBQTtRQUNMLE1BQU0sUUFBQTtLQUNQLENBQUMsQ0FBQztJQUVILGVBQWUsQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFO1FBQzNCLElBQUksRUFBRTtZQUNKLEdBQUcsRUFBRSxDQUFDO1lBQ04sR0FBRyxFQUFFLEVBQUU7U0FDUjtLQUNGLENBQUMsQ0FBQztJQUNILGVBQWUsQ0FBQyxPQUFPLENBQUM7U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RhaWwueSAtIHRoaXMuZGF0YS55O1xuICAgICAgY29uc3Qgb2JqQXJyID0gcGxhdGZvckZlZUNoYXJ0LmdldFNuYXBSZWNvcmRzKHsgeCwgeSB9KTtcbiAgICAgIGlmIChvYmpBcnIubGVuZ3RoKSB0aGlzLnRyaWdnZXJFdmVudCgnc2VsZWN0ZWREYXRhJywgb2JqQXJyWzBdLl9vcmlnaW4pO1xuICAgIH0sXG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file
\ No newline at end of file
miniprogram/pages/components/PlatformFeeChart/PlatformFeeChart.ts
View file @
8296f540
...
@@ -11,7 +11,7 @@ function initChart(canvas, width, height, F2) {
...
@@ -11,7 +11,7 @@ function initChart(canvas, width, height, F2) {
});
});
platforFeeChart
.
source
(
data
,
{
platforFeeChart
.
source
(
data
,
{
days
:
{
month
:
{
min
:
1
,
min
:
1
,
max
:
12
,
max
:
12
,
},
},
...
@@ -26,7 +26,7 @@ function initChart(canvas, width, height, F2) {
...
@@ -26,7 +26,7 @@ function initChart(canvas, width, height, F2) {
onShow
(
ev
)
{
onShow
(
ev
)
{
const
{
items
}
=
ev
;
const
{
items
}
=
ev
;
items
[
0
].
name
=
''
;
items
[
0
].
name
=
''
;
items
[
0
].
value
=
month
+
'-'
+
items
[
0
].
title
;
items
[
0
].
value
=
items
[
0
].
title
+
'月'
;
items
[
1
].
name
=
''
;
items
[
1
].
name
=
''
;
items
[
1
].
value
=
items
[
1
].
value
+
'元'
;
items
[
1
].
value
=
items
[
1
].
value
+
'元'
;
},
},
...
@@ -62,18 +62,37 @@ function findMaxIndex(list, key) {
...
@@ -62,18 +62,37 @@ function findMaxIndex(list, key) {
}
}
Component
({
Component
({
lifetimes
:
{
attached
()
{
const
query
=
wx
.
createSelectorQuery
().
in
(
this
);
query
.
select
(
'#PlatformFeeChart'
)
.
boundingClientRect
(
res
=>
{
// res.top; // 这个组件内 #the-id 节点的上边界坐标
console
.
log
(
res
);
this
.
setData
({
x
:
res
.
left
,
y
:
res
.
top
,
});
})
.
exec
();
},
},
properties
:
{
properties
:
{
dataList
:
{
dataList
:
{
type
:
Array
,
type
:
Array
,
value
:
[],
value
:
[],
observer
(
newVal
)
{
observer
(
newVal
)
{
platforFeeChart
&&
platforFeeChart
.
changeData
(
newVal
);
platforFeeChart
&&
platforFeeChart
.
changeData
(
newVal
);
if
(
platforFeeChart
)
{
let
index
=
findMaxIndex
(
newVal
,
'totalMoney'
);
let
index
=
findMaxIndex
(
newVal
,
'totalMoney'
);
if
(
index
!==
-
1
)
{
if
(
index
!==
-
1
)
{
let
item
=
newVal
[
index
];
let
item
=
newVal
[
index
];
const
point
=
platforFeeChart
.
getPosition
(
item
);
const
point
=
platforFeeChart
.
getPosition
(
item
);
platforFeeChart
.
showTooltip
(
point
);
platforFeeChart
.
showTooltip
(
point
);
}
}
}
},
},
},
},
month
:
{
month
:
{
...
@@ -88,13 +107,16 @@ Component({
...
@@ -88,13 +107,16 @@ Component({
opts
:
{
opts
:
{
onInit
:
initChart
,
onInit
:
initChart
,
},
},
x
:
0
,
y
:
0
,
},
},
methods
:
{
methods
:
{
clickHandle
(
e
)
{
clickHandle
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
.
detail
);
// let
let
x
=
e
.
detail
.
x
-
this
.
data
.
x
;
const
obj
=
platforFeeChart
.
getRecord
(
e
.
detail
);
let
y
=
e
.
detail
.
y
-
this
.
data
.
y
;
this
.
triggerEvent
(
'selectedData'
,
obj
);
const
objArr
=
platforFeeChart
.
getSnapRecords
({
x
,
y
});
if
(
objArr
.
length
)
this
.
triggerEvent
(
'selectedData'
,
objArr
[
0
].
_origin
);
},
},
},
},
});
});
miniprogram/pages/components/PlatformFeeDialog/PlatformFeeDialog.js
View file @
8296f540
...
@@ -198,7 +198,7 @@ Component({
...
@@ -198,7 +198,7 @@ Component({
type
:
2
,
type
:
2
,
};
};
fetch_1
.
operatorFetch
({
fetch_1
.
operatorFetch
({
url
:
'/operateBalance/rechage/order'
,
url
:
'/operateBalance/rechage/order
/forcodeimg
'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
entity
,
data
:
entity
,
})
})
...
@@ -257,4 +257,4 @@ Component({
...
@@ -257,4 +257,4 @@ Component({
},
},
},
},
});
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGxhdGZvcm1GZWVEaWFsb2cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQbGF0Zm9ybUZlZURpYWxvZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDRDQUFtRDtBQUduRCxJQUFNLEdBQUcsR0FBRyxNQUFNLEVBQVUsQ0FBQztBQUM3QixJQUFJLEtBQUssR0FBRyxJQUFJLENBQUM7QUFDakIsSUFBSSxlQUFlLEdBQUcsS0FBSyxDQUFDO0FBRTVCLFNBQVMsQ0FBQztJQUNSLFNBQVMsRUFBRTtRQUNULFFBQVE7WUFDTixPQUFPLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxVQUFVLENBQUMsUUFBUSxDQUFDLENBQUM7WUFDckMsSUFBSSxDQUFDLE9BQVEsQ0FBQztnQkFDWixRQUFRLEVBQUUsR0FBRyxDQUFDLFVBQVUsQ0FBQyxRQUFRO2FBQ2xDLENBQUMsQ0FBQztZQUNILElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxLQUFLLE1BQU07Z0JBQzVCLENBQUMsZUFBZTtnQkFDaEIsSUFBSSxDQUFDLGdCQUFnQixFQUFFLENBQUM7UUFDNUIsQ0FBQztLQUNGO0lBSUQsVUFBVSxFQUFFO1FBQ1YsU0FBUyxFQUFFLEVBQUUsSUFBSSxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFO0tBQzNDO0lBS0QsSUFBSSxFQUFFO1FBQ0osUUFBUSxFQUFFLEdBQUcsQ0FBQyxVQUFVLENBQUMsUUFBUTtRQUNqQyxVQUFVLEVBQUUsS0FBSztRQUNqQix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RlTmFtZTogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVOYW1lLFxuICAgICAgICAgIHBvc2l0aW9uOiAzLFxuICAgICAgICAgIHR5cGU6IDIsXG4gICAgICAgIH0sXG4gICAgICB9KVxuICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgIGNvbnN0IHsgaXNTa2lwLCByZWNoYXJnZUJhbGFuY2UsIHBheVRpbWVMaW1pdCB9ID0gcmVzO1xuICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICBpc1NraXAsXG4gICAgICAgICAgICByZWNoYXJnZUJhbGFuY2UsXG4gICAgICAgICAgICBwYXlUaW1lTGltaXQsXG4gICAgICAgICAgICBzaG93RGlhbG9nOiByZWNoYXJnZUJhbGFuY2UgPiAwID8gdHJ1ZSA6IGZhbHNlLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIGZldGNoZWRQbGF0Zm9ybSA9IHRydWU7XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIH0pO1xuICAgIH0sXG4gICAgY2FuY2VsU2hvdygpIHtcbiAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgIHNob3dEaWFsb2c6IGZhbHNlLFxuICAgICAgfSk7XG4gICAgfSxcbiAgICBmZXRjaFJlY2hhcmdlSW5mbygpIHtcbiAgICAgIGNvbnNvbGUubG9nKCdpbiBmZXRjaFJlY2hhcmdlSW5mbycpO1xuICAgICAgd3guc2hvd0xvYWRpbmcoe1xuICAgICAgICB0aXRsZTogJycsXG4gICAgICB9KTtcbiAgICAgIHd4LmxvZ2luKHtcbiAgICAgICAgc3VjY2VzczogcmVzID0+IHtcbiAgICAgICAgICBpZiAocmVzLmNvZGUpIHtcbiAgICAgICAgICAgIGNvbnN0IGVudGl0eSA9IHtcbiAgICAgICAgICAgICAgYmlsbFR5cGU6IHRoaXMuZGF0YS5iaWxsVHlwZSxcbiAgICAgICAgICAgICAgaXNBZ3JlZTogMSxcbiAgICAgICAgICAgICAganNDb2RlOiByZXMuY29kZSxcbiAgICAgICAgICAgICAgb3BlcmF0ZUlkOiB0aGlzLmRhdGEudXNlckluZm8ub3BlcmF0ZUlkLFxuICAgICAgICAgICAgICBvcGVyYXRlTmFtZTogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVOYW1lLFxuICAgICAgICAgICAgICByZWNoYXJnZVR5cGU6ICcyJyxcbiAgICAgICAgICAgICAgdHlwZTogMixcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICBvcGVyYXRvckZldGNoKHtcbiAgICAgICAgICAgICAgdXJsOiAnL29wZXJhdGVCYWxhbmNlL3JlY2hhZ2Uvb3JkZXIvZm9ybWluaScsXG4gICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgICBkYXRhOiBlbnRpdHksXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgY29uc3QgeyBwYXlJbmZvIH0gPSByZXM7XG4gICAgICAgICAgICAgICAgd3gucmVxdWVzdFBheW1lbnQoe1xuICAgICAgICAgICAgICAgICAgdGltZVN0YW1wOiBwYXlJbmZvLnRpbWVTdGFtcC50b1N0cmluZygpLFxuICAgICAgICAgICAgICAgICAgbm9uY2VTdHI6IHBheUluZm8ubm9uY2VTdHIsXG4gICAgICAgICAgICAgICAgICBwYWNrYWdlOiBwYXlJbmZvLnBhY2thZ2UsXG4gICAgICAgICAgICAgICAgICBzaWduVHlwZTogcGF5SW5mby5zaWduVHlwZSxcbiAgICAgICAgICAgICAgICAgIHBheVNpZ246IHBheUluZm8ucGF5U2lnbixcbiAgICAgICAgICAgICAgICAgIHN1Y2Nlc3M6IHJlcyA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICAgICAgdGl0bGU6ICfmlK/ku5jmiJDlip/vvIEnLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgICAgICAgICBzaG93RGlhbG9nOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgZmFpbChyZXMpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogJ+aUr+S7mOWksei0pe+8gScsXG4gICAgICAgICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgICAgdGl0bGU6IGVyci5tc2cgfHwgJ+ivt+axguWksei0pScsXG4gICAgICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgdGl0bGU6IHJlcy5lcnJNc2cgfHwgJ+ivt+axguWksei0pScsXG4gICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgZmFpbChyZXMpIHtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICB0aXRsZTogcmVzLmVyck1zZyB8fCAn6K+35rGC5aSx6LSlJyxcbiAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSxcbiAgICAgIH0pO1xuICAgIH0sXG4gICAgZ29SZWNvcmRzUGFnZSgpIHtcbiAgICAgIHd4Lm5hdmlnYXRlVG8oe1xuICAgICAgICB1cmw6ICcvcGFnZXMvcGxhdGZvcm1GZWUvcGxhdGZvcm1GZWUnLFxuICAgICAgfSk7XG4gICAgfSxcbiAgICB0b2dnbGVUeXBlKCkge1xuICAgICAgbGV0IHR5cGUgPSB0aGlzLmRhdGEudHlwZTtcbiAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgIHR5cGU6IHR5cGUgPT09IDEgPyAyIDogMSxcbiAgICAgIH0pO1xuICAgICAgaWYgKHR5cGUgPT09IDEpIHtcbiAgICAgICAgdGhpcy5mZXRjaFJlY2hhcmdlT3JkZXJRUmNvZGUoKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHRpbWVyICYmIGNsZWFySW50ZXJ2YWwodGltZXIpO1xuICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgIGNvdW50RG93bjogNjAwLFxuICAgICAgICAgIGNvdW50RG93blN0cmluZzogJycsXG4gICAgICAgIH0pO1xuICAgICAgfVxuICAgIH0sXG4gICAgY2hlY2tCaWxsVHlwZShlKSB7XG4gICAgICBjb25zb2xlLmxvZyhlKTtcbiAgICAgIGNvbnN0IHsgdmFsdWUgfSA9IGUuY3VycmVudFRhcmdldC5kYXRhc2V0O1xuICAgICA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5cGU6IDIsXG4gICAgICAgICAgICB9O1xuICAgICAgICAgICAgb3BlcmF0b3JGZXRjaCh7XG4gICAgICAgICAgICAgIHVybDogJy9vcGVyYXRlQmFsYW5jZS9yZWNoYWdlL29yZGVyJyxcbiAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgICAgICAgIGRhdGE6IGVudGl0eSxcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgICBjb25zdCB7IHBheVFyVXJsIH0gPSByZXM7XG4gICAgICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgICAgIHBheVFyVXJsLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIHRpbWVyID0gc2V0SW50ZXJ2YWwoKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgbGV0IGNvdW50ID0gdGhpcy5kYXRhLmNvdW50RG93bjtcbiAgICAgICAgICAgICAgICAgIGlmIChjb3VudCA9PT0gMCkge1xuICAgICAgICAgICAgICAgICAgICBjbGVhckludGVydmFsKHRpbWVyKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgICAgICAgICBwYXlRclVybDogJycsXG4gICAgICAgICAgICAgICAgICAgICAgY291bnREb3duOiA2MDAsXG4gICAgICAgICAgICAgICAgICAgICAgY291bnREb3duU3RyaW5nOiAnMOenkicsXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgbGV0IG5ld0NvdW50ID0gY291bnQgLSAxO1xuICAgICAgICAgICAgICAgICAgICBsZXQgY291bnRTdHJpbmcgPVxuICAgICAgICAgICAgICAgICAgICAgIE1hdGguZmxvb3IobmV3Q291bnQgLyA2MCkgKyAn5YiGJyArIChuZXdDb3VudCAlIDYwKSArICfnp5InO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgICAgICAgICAgIGNvdW50RG93bjogbmV3Q291bnQsXG4gICAgICAgICAgICAgICAgICAgICAgY291bnREb3duU3RyaW5nOiBjb3VudFN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSwgMTAwMCk7XG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIubXNnIHx8ICfor7fmsYLlpLHotKUnLFxuICAgICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgdGl0bGU6IHJlcy5lcnJNc2cgfHwgJ+ivt+axguWksei0pScsXG4gICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgZmFpbChyZXMpIHtcbiAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgIHRpdGxlOiByZXMuZXJyTXNnIHx8ICfor7fmsYLlpLHotKUnLFxuICAgICAgICAgICAgaWNvbjogJ25vbmUnL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VOYW1lLFxuICAgICAgICAgIHBvc2l0aW9uOiAzLFxuICAgICAgICAgIHR5cGU6IDIsXG4gICAgICAgIH0sXG4gICAgICB9KVxuICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgIGNvbnN0IHsgaXNTa2lwLCByZWNoYXJnZUJhbGFuY2UsIHBheVRpbWVMaW1pdCB9ID0gcmVzO1xuICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICBpc1NraXAsXG4gICAgICAgICAgICByZWNoYXJnZUJhbGFuY2UsXG4gICAgICAgICAgICBwYXlUaW1lTGltaXQsXG4gICAgICAgICAgICBzaG93RGlhbG9nOiByZWNoYXJnZUJhbGFuY2UgPiAwID8gdHJ1ZSA6IGZhbHNlLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIGZldGNoZWRQbGF0Zm9ybSA9IHRydWU7XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIH0pO1xuICAgIH0sXG4gICAgY2FuY2VsU2hvdygpIHtcbiAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgIHNob3dEaWFsb2c6IGZhbHNlLFxuICAgICAgfSk7XG4gICAgfSxcbiAgICBmZXRjaFJlY2hhcmdlSW5mbygpIHtcbiAgICAgIGNvbnNvbGUubG9nKCdpbiBmZXRjaFJlY2hhcmdlSW5mbycpO1xuICAgICAgd3guc2hvd0xvYWRpbmcoe1xuICAgICAgICB0aXRsZTogJycsXG4gICAgICB9KTtcbiAgICAgIHd4LmxvZ2luKHtcbiAgICAgICAgc3VjY2VzczogcmVzID0+IHtcbiAgICAgICAgICBpZiAocmVzLmNvZGUpIHtcbiAgICAgICAgICAgIGNvbnN0IGVudGl0eSA9IHtcbiAgICAgICAgICAgICAgYmlsbFR5cGU6IHRoaXMuZGF0YS5iaWxsVHlwZSxcbiAgICAgICAgICAgICAgaXNBZ3JlZTogMSxcbiAgICAgICAgICAgICAganNDb2RlOiByZXMuY29kZSxcbiAgICAgICAgICAgICAgb3BlcmF0ZUlkOiB0aGlzLmRhdGEudXNlckluZm8ub3BlcmF0ZUlkLFxuICAgICAgICAgICAgICBvcGVyYXRlTmFtZTogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVOYW1lLFxuICAgICAgICAgICAgICByZWNoYXJnZVR5cGU6ICcyJyxcbiAgICAgICAgICAgICAgdHlwZTogMixcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICBvcGVyYXRvckZldGNoKHtcbiAgICAgICAgICAgICAgdXJsOiAnL29wZXJhdGVCYWxhbmNlL3JlY2hhZ2Uvb3JkZXIvZm9ybWluaScsXG4gICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgICBkYXRhOiBlbnRpdHksXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgY29uc3QgeyBwYXlJbmZvIH0gPSByZXM7XG4gICAgICAgICAgICAgICAgd3gucmVxdWVzdFBheW1lbnQoe1xuICAgICAgICAgICAgICAgICAgdGltZVN0YW1wOiBwYXlJbmZvLnRpbWVTdGFtcC50b1N0cmluZygpLFxuICAgICAgICAgICAgICAgICAgbm9uY2VTdHI6IHBheUluZm8ubm9uY2VTdHIsXG4gICAgICAgICAgICAgICAgICBwYWNrYWdlOiBwYXlJbmZvLnBhY2thZ2UsXG4gICAgICAgICAgICAgICAgICBzaWduVHlwZTogcGF5SW5mby5zaWduVHlwZSxcbiAgICAgICAgICAgICAgICAgIHBheVNpZ246IHBheUluZm8ucGF5U2lnbixcbiAgICAgICAgICAgICAgICAgIHN1Y2Nlc3M6IHJlcyA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICAgICAgdGl0bGU6ICfmlK/ku5jmiJDlip/vvIEnLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgICAgICAgICBzaG93RGlhbG9nOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgZmFpbChyZXMpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogJ+aUr+S7mOWksei0pe+8gScsXG4gICAgICAgICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgICAgdGl0bGU6IGVyci5tc2cgfHwgJ+ivt+axguWksei0pScsXG4gICAgICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgdGl0bGU6IHJlcy5lcnJNc2cgfHwgJ+ivt+axguWksei0pScsXG4gICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgZmFpbChyZXMpIHtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICB0aXRsZTogcmVzLmVyck1zZyB8fCAn6K+35rGC5aSx6LSlJyxcbiAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSxcbiAgICAgIH0pO1xuICAgIH0sXG4gICAgZ29SZWNvcmRzUGFnZSgpIHtcbiAgICAgIHd4Lm5hdmlnYXRlVG8oe1xuICAgICAgICB1cmw6ICcvcGFnZXMvcGxhdGZvcm1GZWUvcGxhdGZvcm1GZWUnLFxuICAgICAgfSk7XG4gICAgfSxcbiAgICB0b2dnbGVUeXBlKCkge1xuICAgICAgbGV0IHR5cGUgPSB0aGlzLmRhdGEudHlwZTtcbiAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgIHR5cGU6IHR5cGUgPT09IDEgPyAyIDogMSxcbiAgICAgIH0pO1xuICAgICAgaWYgKHR5cGUgPT09IDEpIHtcbiAgICAgICAgdGhpcy5mZXRjaFJlY2hhcmdlT3JkZXJRUmNvZGUoKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHRpbWVyICYmIGNsZWFySW50ZXJ2YWwodGltZXIpO1xuICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgIGNvdW50RG93bjogNjAwLFxuICAgICAgICAgIGNvdW50RG93blN0cmluZzogJycsXG4gICAgICAgIH0pO1xuICAgICAgfVxuICAgIH0sXG4gICAgY2hlY2tCaWxsVHlwZShlKSB7XG4gICAgICBjb25zb2xlLmxvZyhlKTtcbiAgICAgIGNvbnN0IHsgdmFsdWUgfSA9IGUuY3VycmVudFRhcmdldC5kYXRhc2V0O1xuICAgICAgaWYgKHZhbHVlID09PSB0aGlzLmRhdGEuYmlsbFR5cGUpIHJldHVybjtcbiAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgIGJpbGxUeXBlOiB2YWx1ZSxcbiAgICAgIH0pO1xuICAgICAgaWYgKHRoaXMuZGF0YS50eXBlID09PSAyKSB7XG4gICAgICAgIHRoaXMuZmV0Y2hSZWNoYXJnZU9yZGVyUVJjb2RlKCk7XG4gICAgICB9XG4gICAgfSxcbiAgICBmZXRjaFJlY2hhcmdlT3JkZXJRUmNvZGUoKSB7XG4gICAgICB3eC5zaG93TG9hZGluZyh7XG4gICAgICAgIHRpdGxlOiAnJyxcbiAgICAgIH0pO1xuICAgICAgaWYgKHRpbWVyKSB7XG4gICAgICAgIGNsZWFySW50ZXJ2YWwodGltZXIpO1xuICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgIHBheVFyVXJsOiAnJyxcbiAgICAgICAgICBjb3VudERvd246IDYwMCxcbiAgICAgICAgICBjb3VudERvd25TdHJpbmc6ICcw56eSJyxcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgICB3eC5sb2dpbih7XG4gICAgICAgIHN1Y2Nlc3M6IHJlcyA9PiB7XG4gICAgICAgICAgaWYgKHJlcy5jb2RlKSB7XG4gICAgICAgICAgICBjb25zdCBlbnRpdHkgPSB7XG4gICAgICAgICAgICAgIGJpbGxUeXBlOiB0aGlzLmRhdGEuYmlsbFR5cGUsXG4gICAgICAgICAgICAgIGlzQWdyZWU6IDEsXG4gICAgICAgICAgICAgIGpzQ29kZTogcmVzLmNvZGUsXG4gICAgICAgICAgICAgIG9wZXJhdGVJZDogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVJZCxcbiAgICAgICAgICAgICAgb3BlcmF0ZU5hbWU6IHRoaXMuZGF0YS51c2VySW5mby5vcGVyYXRlTmFtZSxcbiAgICAgICAgICAgICAgcmVjaGFyZ2VUeXBlOiAnMicsXG4gICAgICAgICAgICAgIHR5cGU6IDIsXG4gICAgICAgICAgICB9O1xuICAgICAgICAgICAgb3BlcmF0b3JGZXRjaCh7XG4gICAgICAgICAgICAgIHVybDogJy9vcGVyYXRlQmFsYW5jZS9yZWNoYWdlL29yZGVyL2ZvcmNvZGVpbWcnLFxuICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgICAgICAgZGF0YTogZW50aXR5LFxuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHsgcGF5UXJVcmwgfSA9IHJlcztcbiAgICAgICAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgICAgICAgcGF5UXJVcmwsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgdGltZXIgPSBzZXRJbnRlcnZhbCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgICBsZXQgY291bnQgPSB0aGlzLmRhdGEuY291bnREb3duO1xuICAgICAgICAgICAgICAgICAgaWYgKGNvdW50ID09PSAwKSB7XG4gICAgICAgICAgICAgICAgICAgIGNsZWFySW50ZXJ2YWwodGltZXIpO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgICAgICAgICAgIHBheVFyVXJsOiAnJyxcbiAgICAgICAgICAgICAgICAgICAgICBjb3VudERvd246IDYwMCxcbiAgICAgICAgICAgICAgICAgICAgICBjb3VudERvd25TdHJpbmc6ICcw56eSJyxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBsZXQgbmV3Q291bnQgPSBjb3VudCAtIDE7XG4gICAgICAgICAgICAgICAgICAgIGxldCBjb3VudFN0cmluZyA9XG4gICAgICAgICAgICAgICAgICAgICAgTWF0aC5mbG9vcihuZXdDb3VudCAvIDYwKSArICfliIYnICsgKG5ld0NvdW50ICUgNjApICsgJ+enkic7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAgICAgICAgICAgY291bnREb3duOiBuZXdDb3VudCxcbiAgICAgICAgICAgICAgICAgICAgICBjb3VudERvd25TdHJpbmc6IGNvdW50U3RyaW5nLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LCAxMDAwKTtcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgICAgdGl0bGU6IGVyci5tc2cgfHwgJ+ivt+axguWksei0pScsXG4gICAgICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICB0aXRsZTogcmVzLmVyck1zZyB8fCAn6K+35rGC5aSx6LSlJyxcbiAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBmYWlsKHJlcykge1xuICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6IHJlcy5lcnJNc2cgfHwgJ+ivt+axguWksei0pScsXG4gICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
\ No newline at end of file
miniprogram/pages/components/PlatformFeeDialog/PlatformFeeDialog.ts
View file @
8296f540
...
@@ -204,7 +204,7 @@ Component({
...
@@ -204,7 +204,7 @@ Component({
type
:
2
,
type
:
2
,
};
};
operatorFetch
({
operatorFetch
({
url
:
'/operateBalance/rechage/order'
,
url
:
'/operateBalance/rechage/order
/forcodeimg
'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
entity
,
data
:
entity
,
})
})
...
...
miniprogram/pages/platformFee/platformFee.js
View file @
8296f540
"use strict"
;
"use strict"
;
var
__assign
=
(
this
&&
this
.
__assign
)
||
Object
.
assign
||
function
(
t
)
{
for
(
var
s
,
i
=
1
,
n
=
arguments
.
length
;
i
<
n
;
i
++
)
{
s
=
arguments
[
i
];
for
(
var
p
in
s
)
if
(
Object
.
prototype
.
hasOwnProperty
.
call
(
s
,
p
))
t
[
p
]
=
s
[
p
];
}
return
t
;
};
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
var
fetch_1
=
require
(
"../../api/fetch"
);
var
fetch_1
=
require
(
"../../api/fetch"
);
function
findMaxIndex
(
list
,
key
)
{
function
findMaxIndex
(
list
,
key
)
{
...
@@ -43,13 +51,23 @@ Page({
...
@@ -43,13 +51,23 @@ Page({
})
})
.
then
(
function
(
res
)
{
.
then
(
function
(
res
)
{
var
areaCount
=
res
.
areaCount
,
platformFees
=
res
.
platformFees
;
var
areaCount
=
res
.
areaCount
,
platformFees
=
res
.
platformFees
;
var
datalist
=
new
Array
(
12
)
.
fill
({
totalMoney
:
0
,
})
.
map
(
function
(
v
,
idx
)
{
return
(
__assign
({},
v
,
{
month
:
idx
+
1
}));
});
for
(
var
index
=
0
;
index
<
platformFees
.
length
;
index
++
)
{
var
element
=
platformFees
[
index
];
var
dataIndex
=
element
.
month
-
1
;
datalist
[
dataIndex
]
=
__assign
({},
datalist
[
dataIndex
],
element
);
}
_this
.
setData
({
_this
.
setData
({
areaCount
:
areaCount
,
areaCount
:
areaCount
,
dataList
:
platformFees
,
dataList
:
datalist
,
});
});
if
(
platformFees
&&
platformFees
.
length
)
{
if
(
datalist
&&
datalist
.
length
)
{
var
index
=
findMaxIndex
(
platformFees
,
'totalMoney'
);
var
index
=
findMaxIndex
(
datalist
,
'totalMoney'
);
var
item
=
platformFees
[
index
];
var
item
=
datalist
[
index
];
_this
.
setData
({
_this
.
setData
({
selected
:
item
,
selected
:
item
,
});
});
...
@@ -72,10 +90,11 @@ Page({
...
@@ -72,10 +90,11 @@ Page({
});
});
},
},
selectedData
:
function
(
e
)
{
selectedData
:
function
(
e
)
{
console
.
log
(
e
);
var
data
=
e
.
detail
;
var
data
=
e
.
detail
;
this
.
setData
({
this
.
setData
({
selected
:
data
,
selected
:
data
,
});
});
},
},
});
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhdGZvcm1GZWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJwbGF0Zm9ybUZlZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlDQUFrRDtBQUVsRCxzQkFBc0IsSUFBSSxFQUFFLEdBQUc7SUFDN0IsRUFBRSxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDO1FBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQzVCLElBQUksR0FBRyxHQUFHLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUN2QixJQUFJLFFBQVEsR0FBRyxDQUFDLENBQUM7SUFDakIsR0FBRyxDQUFDLENBQUMsSUFBSSxLQUFLLEdBQUcsQ0FBQyxFQUFFLEtBQUssR0FBRyxJQUFJLENBQUMsTUFBTSxFQUFFLEtBQUssRUFBRSxFQUF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iAgfSxcbiAgZ29SZWNvcmRQYWdlKCkge1xuICAgIHd4Lm5hdmlnYXRlVG8oe1xuICAgICAgdXJsOiAnL3BhZ2VzL3BsYXRmb3JtRmVlUmVjb3JkL3BsYXRmb3JtRmVlUmVjb3JkJyxcbiAgICB9KTtcbiAgfSxcbiAgc2VsZWN0ZWREYXRhKGUpIHtcbiAgICBjb25zb2xlLmxvZyhlKVxuICAgIGNvbnN0IGRhdGEgPSBlLmRldGFpbDtcbiAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgIHNlbGVjdGVkOiBkYXRhLFxuICAgIH0pO1xuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
\ No newline at end of file
miniprogram/pages/platformFee/platformFee.ts
View file @
8296f540
...
@@ -48,13 +48,27 @@ Page({
...
@@ -48,13 +48,27 @@ Page({
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
const
{
areaCount
,
platformFees
}
=
res
;
const
{
areaCount
,
platformFees
}
=
res
;
let
datalist
=
new
Array
(
12
)
.
fill
({
totalMoney
:
0
,
})
.
map
((
v
,
idx
)
=>
({
...
v
,
month
:
idx
+
1
}));
for
(
let
index
=
0
;
index
<
platformFees
.
length
;
index
++
)
{
const
element
=
platformFees
[
index
];
let
dataIndex
=
element
.
month
-
1
;
datalist
[
dataIndex
]
=
{
...
datalist
[
dataIndex
],
...
element
,
};
}
this
.
setData
!
({
this
.
setData
!
({
areaCount
,
areaCount
,
dataList
:
platformFees
,
dataList
:
datalist
,
});
});
if
(
platformFees
&&
platformFees
.
length
)
{
if
(
datalist
&&
datalist
.
length
)
{
let
index
=
findMaxIndex
(
platformFees
,
'totalMoney'
);
let
index
=
findMaxIndex
(
datalist
,
'totalMoney'
);
let
item
=
platformFees
[
index
];
let
item
=
datalist
[
index
];
this
.
setData
!
({
this
.
setData
!
({
selected
:
item
,
selected
:
item
,
});
});
...
@@ -77,8 +91,9 @@ Page({
...
@@ -77,8 +91,9 @@ Page({
});
});
},
},
selectedData
(
e
)
{
selectedData
(
e
)
{
console
.
log
(
e
)
const
data
=
e
.
detail
;
const
data
=
e
.
detail
;
this
.
setData
({
this
.
setData
!
({
selected
:
data
,
selected
:
data
,
});
});
},
},
...
...
miniprogram/pages/platformFee/platformFee.wxml
View file @
8296f540
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<platform-fee-chart dataList="{{dataList}}" bind:selectedData="selectedData" />
<platform-fee-chart dataList="{{dataList}}" bind:selectedData="selectedData" />
</view>
</view>
</view>
</view>
<view class="platformFee-block" wx:if="{{selected.
areaId
}}">
<view class="platformFee-block" wx:if="{{selected.
month
}}">
<view class="platformFee-title">
<view class="platformFee-title">
<view class="platformFee-title-color user"></view>
<view class="platformFee-title-color user"></view>
<view class="platformFee-title-text">各校区服务费({{selected.month}}月)</view>
<view class="platformFee-title-text">各校区服务费({{selected.month}}月)</view>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</view>
</view>
<view class="platformFee-areaList">
<view class="platformFee-areaList">
<view class="platformFee-areaItem" wx:for="{{selected.areaPlatformFees}}">
<view class="platformFee-areaItem" wx:for="{{selected.areaPlatformFees}}">
<view class="platformFee-areaItem-index">{{index}}</view>
<view class="platformFee-areaItem-index">{{index
+ 1
}}</view>
<view class="platformFee-areaItem-name">{{item.areaName}}</view>
<view class="platformFee-areaItem-name">{{item.areaName}}</view>
<view class="platformFee-areaItem-price">{{item.totalMoney}}</view>
<view class="platformFee-areaItem-price">{{item.totalMoney}}</view>
</view>
</view>
...
...
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