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
bf331da5
Commit
bf331da5
authored
Dec 30, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改支付
parent
6f537cca
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
380 additions
and
29 deletions
+380
-29
PlatformFeeChart.js
...ram/pages/components/PlatformFeeChart/PlatformFeeChart.js
+27
-2
PlatformFeeChart.ts
...ram/pages/components/PlatformFeeChart/PlatformFeeChart.ts
+25
-0
PlatformFeeChart.wxml
...m/pages/components/PlatformFeeChart/PlatformFeeChart.wxml
+2
-2
PlatformFeeDialog.js
...m/pages/components/PlatformFeeDialog/PlatformFeeDialog.js
+109
-6
PlatformFeeDialog.ts
...m/pages/components/PlatformFeeDialog/PlatformFeeDialog.ts
+101
-1
home.js
miniprogram/pages/home/home.js
+17
-2
home.ts
miniprogram/pages/home/home.ts
+15
-0
home.wxml
miniprogram/pages/home/home.wxml
+1
-2
platformFee.js
miniprogram/pages/platformFee/platformFee.js
+33
-2
platformFee.ts
miniprogram/pages/platformFee/platformFee.ts
+30
-0
platformFee.wxml
miniprogram/pages/platformFee/platformFee.wxml
+11
-10
platformFeeRecord.wxml
miniprogram/pages/platformFeeRecord/platformFeeRecord.wxml
+2
-1
platformFeeRecord.wxss
miniprogram/pages/platformFeeRecord/platformFeeRecord.wxss
+5
-0
report.wxml
miniprogram/pages/report/report.wxml
+2
-1
No files found.
miniprogram/pages/components/PlatformFeeChart/PlatformFeeChart.js
View file @
bf331da5
...
@@ -46,6 +46,18 @@ function initChart(canvas, width, height, F2) {
...
@@ -46,6 +46,18 @@ function initChart(canvas, width, height, F2) {
platforFeeChart
.
render
();
platforFeeChart
.
render
();
return
platforFeeChart
;
return
platforFeeChart
;
}
}
function
findMaxIndex
(
list
,
key
)
{
if
(
!
list
.
length
)
return
-
1
;
var
max
=
list
[
0
][
key
];
var
maxIndex
=
0
;
for
(
var
index
=
0
;
index
<
list
.
length
;
index
++
)
{
var
element
=
list
[
index
];
if
(
element
>=
max
)
maxIndex
=
index
;
}
return
maxIndex
;
}
Component
({
Component
({
properties
:
{
properties
:
{
dataList
:
{
dataList
:
{
...
@@ -53,6 +65,12 @@ Component({
...
@@ -53,6 +65,12 @@ Component({
value
:
[],
value
:
[],
observer
:
function
(
newVal
)
{
observer
:
function
(
newVal
)
{
platforFeeChart
&&
platforFeeChart
.
changeData
(
newVal
);
platforFeeChart
&&
platforFeeChart
.
changeData
(
newVal
);
var
index
=
findMaxIndex
(
newVal
,
'totalMoney'
);
if
(
index
!==
-
1
)
{
var
item
=
newVal
[
index
];
var
point
=
platforFeeChart
.
getPosition
(
item
);
platforFeeChart
.
showTooltip
(
point
);
}
},
},
},
},
month
:
{
month
:
{
...
@@ -68,5 +86,12 @@ Component({
...
@@ -68,5 +86,12 @@ Component({
onInit
:
initChart
,
onInit
:
initChart
,
},
},
},
},
methods
:
{
clickHandle
:
function
(
e
)
{
console
.
log
(
e
);
var
obj
=
platforFeeChart
.
getRecord
(
e
.
detail
);
this
.
triggerEvent
(
'selectedData'
,
obj
);
},
},
});
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGxhdGZvcm1GZWVDaGFydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlBsYXRmb3JtRmVlQ2hhcnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLElBQUksZUFBZSxHQUFHLEl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biAgcHJvcGVydGllczoge1xuICAgIGRhdGFMaXN0OiB7XG4gICAgICB0eXBlOiBBcnJheSxcbiAgICAgIHZhbHVlOiBbXSxcbiAgICAgIG9ic2VydmVyKG5ld1ZhbCkge1xuICAgICAgICBwbGF0Zm9yRmVlQ2hhcnQgJiYgcGxhdGZvckZlZUNoYXJ0LmNoYW5nZURhdGEobmV3VmFsKTtcbiAgICAgICAgbGV0IGluZGV4ID0gZmluZE1heEluZGV4KG5ld1ZhbCwgJ3RvdGFsTW9uZXknKTtcbiAgICAgICAgaWYgKGluZGV4ICE9PSAtMSkge1xuICAgICAgICAgIGxldCBpdGVtID0gbmV3VmFsW2luZGV4XTtcbiAgICAgICAgICBjb25zdCBwb2ludCA9IHBsYXRmb3JGZWVDaGFydC5nZXRQb3NpdGlvbihpdGVtKTtcbiAgICAgICAgICBwbGF0Zm9yRmVlQ2hhcnQuc2hvd1Rvb2x0aXAocG9pbnQpO1xuICAgICAgICB9XG4gICAgICB9LFxuICAgIH0sXG4gICAgbW9udGg6IHtcbiAgICAgIHR5cGU6IFN0cmluZyxcbiAgICAgIHZhbHVlOiAnJyxcbiAgICAgIG9ic2VydmVyKG5ld1ZhbCkge1xuICAgICAgICBtb250aCA9IG5ld1ZhbDtcbiAgICAgIH0sXG4gICAgfSxcbiAgfSxcbiAgZGF0YToge1xuICAgIG9wdHM6IHtcbiAgICAgIG9uSW5pdDogaW5pdENoYXJ0LFxuICAgIH0sXG4gIH0sXG4gIG1ldGhvZHM6IHtcbiAgICBjbGlja0hhbmRsZShlKSB7XG4gICAgICBjb25zb2xlLmxvZyhlKTtcbiAgICAgIC8vIGxldFxuICAgICAgY29uc3Qgb2JqID0gcGxhdGZvckZlZUNoYXJ0LmdldFJlY29yZChlLmRldGFpbCk7XG4gICAgICB0aGlzLnRyaWdnZXJFdmVudCgnc2VsZWN0ZWREYXRhJywgb2JqKTtcbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
\ No newline at end of file
miniprogram/pages/components/PlatformFeeChart/PlatformFeeChart.ts
View file @
bf331da5
...
@@ -50,6 +50,17 @@ function initChart(canvas, width, height, F2) {
...
@@ -50,6 +50,17 @@ function initChart(canvas, width, height, F2) {
return
platforFeeChart
;
return
platforFeeChart
;
}
}
function
findMaxIndex
(
list
,
key
)
{
if
(
!
list
.
length
)
return
-
1
;
let
max
=
list
[
0
][
key
];
let
maxIndex
=
0
;
for
(
let
index
=
0
;
index
<
list
.
length
;
index
++
)
{
const
element
=
list
[
index
];
if
(
element
>=
max
)
maxIndex
=
index
;
}
return
maxIndex
;
}
Component
({
Component
({
properties
:
{
properties
:
{
dataList
:
{
dataList
:
{
...
@@ -57,6 +68,12 @@ Component({
...
@@ -57,6 +68,12 @@ Component({
value
:
[],
value
:
[],
observer
(
newVal
)
{
observer
(
newVal
)
{
platforFeeChart
&&
platforFeeChart
.
changeData
(
newVal
);
platforFeeChart
&&
platforFeeChart
.
changeData
(
newVal
);
let
index
=
findMaxIndex
(
newVal
,
'totalMoney'
);
if
(
index
!==
-
1
)
{
let
item
=
newVal
[
index
];
const
point
=
platforFeeChart
.
getPosition
(
item
);
platforFeeChart
.
showTooltip
(
point
);
}
},
},
},
},
month
:
{
month
:
{
...
@@ -72,4 +89,12 @@ Component({
...
@@ -72,4 +89,12 @@ Component({
onInit
:
initChart
,
onInit
:
initChart
,
},
},
},
},
methods
:
{
clickHandle
(
e
)
{
console
.
log
(
e
);
// let
const
obj
=
platforFeeChart
.
getRecord
(
e
.
detail
);
this
.
triggerEvent
(
'selectedData'
,
obj
);
},
},
});
});
miniprogram/pages/components/PlatformFeeChart/PlatformFeeChart.wxml
View file @
bf331da5
<!-- pages/components/PlatformFeeChart/PlatformFeeChart.wxml -->
<!-- pages/components/PlatformFeeChart/PlatformFeeChart.wxml -->
<ff-canvas id="PlatformFeeChart" canvas-id="PlatformFeeChart" opts="{{ opts }}" />
<ff-canvas id="PlatformFeeChart" canvas-id="PlatformFeeChart" opts="{{ opts }}" bind:tap="clickHandle" />
\ No newline at end of file
\ No newline at end of file
miniprogram/pages/components/PlatformFeeDialog/PlatformFeeDialog.js
View file @
bf331da5
...
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
...
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
var
fetch_1
=
require
(
"../../../api/fetch"
);
var
fetch_1
=
require
(
"../../../api/fetch"
);
var
app
=
getApp
();
var
app
=
getApp
();
var
timer
=
null
;
var
timer
=
null
;
var
fetchedPlatform
=
false
;
Component
({
Component
({
lifetimes
:
{
lifetimes
:
{
attached
:
function
()
{
attached
:
function
()
{
...
@@ -10,7 +11,9 @@ Component({
...
@@ -10,7 +11,9 @@ Component({
this
.
setData
({
this
.
setData
({
userInfo
:
app
.
globalData
.
userInfo
,
userInfo
:
app
.
globalData
.
userInfo
,
});
});
this
.
data
.
eventType
===
'slef'
&&
this
.
fetchPlatformFee
();
this
.
data
.
eventType
===
'slef'
&&
!
fetchedPlatform
&&
this
.
fetchPlatformFee
();
},
},
},
},
properties
:
{
properties
:
{
...
@@ -49,6 +52,7 @@ Component({
...
@@ -49,6 +52,7 @@ Component({
payTimeLimit
:
payTimeLimit
,
payTimeLimit
:
payTimeLimit
,
showDialog
:
rechargeBalance
>
0
?
true
:
false
,
showDialog
:
rechargeBalance
>
0
?
true
:
false
,
});
});
fetchedPlatform
=
true
;
})
})
.
catch
(
function
(
err
)
{
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
...
@@ -60,7 +64,80 @@ Component({
...
@@ -60,7 +64,80 @@ Component({
});
});
},
},
fetchRechargeInfo
:
function
()
{
fetchRechargeInfo
:
function
()
{
var
_this
=
this
;
console
.
log
(
'in fetchRechargeInfo'
);
console
.
log
(
'in fetchRechargeInfo'
);
wx
.
showLoading
({
title
:
''
,
});
wx
.
login
({
success
:
function
(
res
)
{
if
(
res
.
code
)
{
var
entity
=
{
billType
:
_this
.
data
.
billType
,
isAgree
:
1
,
jsCode
:
res
.
code
,
operateId
:
_this
.
data
.
userInfo
.
operateId
,
operateName
:
_this
.
data
.
userInfo
.
operateName
,
rechargeType
:
'2'
,
type
:
2
,
};
fetch_1
.
operatorFetch
({
url
:
'/operateBalance/rechage/order/formini'
,
method
:
'POST'
,
data
:
entity
,
})
.
then
(
function
(
res
)
{
console
.
log
(
res
);
var
payInfo
=
res
.
payInfo
;
wx
.
requestPayment
({
timeStamp
:
payInfo
.
timeStamp
,
nonceStr
:
payInfo
.
nonceStr
,
package
:
payInfo
.
package
,
signType
:
payInfo
.
signType
,
paySign
:
payInfo
.
paySign
,
success
:
function
(
res
)
{
console
.
log
(
res
);
wx
.
showToast
({
title
:
'支付成功!'
,
});
_this
.
setData
({
showDialog
:
false
,
});
},
fail
:
function
(
res
)
{
console
.
log
(
res
);
wx
.
showToast
({
title
:
'支付失败!'
,
icon
:
'none'
,
});
},
});
})
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
wx
.
hideLoading
();
wx
.
showToast
({
title
:
err
.
msg
||
'请求失败'
,
icon
:
'none'
,
});
});
}
else
{
wx
.
hideLoading
();
wx
.
showToast
({
title
:
res
.
errMsg
||
'请求失败'
,
icon
:
'none'
,
});
}
},
fail
:
function
(
res
)
{
wx
.
hideLoading
();
wx
.
showToast
({
title
:
res
.
errMsg
||
'请求失败'
,
icon
:
'none'
,
});
},
});
},
},
goRecordsPage
:
function
()
{
goRecordsPage
:
function
()
{
wx
.
navigateTo
({
wx
.
navigateTo
({
...
@@ -95,12 +172,15 @@ Component({
...
@@ -95,12 +172,15 @@ Component({
wx
.
showLoading
({
wx
.
showLoading
({
title
:
''
,
title
:
''
,
});
});
wx
.
login
({
success
:
function
(
res
)
{
if
(
res
.
code
)
{
var
entity
=
{
var
entity
=
{
billType
:
this
.
data
.
billType
,
billType
:
_
this
.
data
.
billType
,
isAgree
:
1
,
isAgree
:
1
,
jsCode
:
'string'
,
jsCode
:
'string'
,
operateId
:
this
.
data
.
userInfo
.
operateId
,
operateId
:
_
this
.
data
.
userInfo
.
operateId
,
operateName
:
this
.
data
.
userInfo
.
operateName
,
operateName
:
_
this
.
data
.
userInfo
.
operateName
,
rechargeType
:
'2'
,
rechargeType
:
'2'
,
type
:
2
,
type
:
2
,
};
};
...
@@ -119,6 +199,11 @@ Component({
...
@@ -119,6 +199,11 @@ Component({
var
count
=
_this
.
data
.
countDown
;
var
count
=
_this
.
data
.
countDown
;
if
(
count
===
0
)
{
if
(
count
===
0
)
{
clearInterval
(
timer
);
clearInterval
(
timer
);
_this
.
setData
({
payQrUrl
:
''
,
countDown
:
600
,
countDownString
:
'0秒'
,
});
}
}
else
{
else
{
var
newCount
=
count
-
1
;
var
newCount
=
count
-
1
;
...
@@ -138,7 +223,25 @@ Component({
...
@@ -138,7 +223,25 @@ Component({
});
});
console
.
log
(
err
);
console
.
log
(
err
);
});
});
}
else
{
wx
.
hideLoading
();
wx
.
showToast
({
title
:
res
.
errMsg
||
'请求失败'
,
icon
:
'none'
,
});
}
},
fail
:
function
(
res
)
{
console
.
log
(
res
);
wx
.
hideLoading
();
wx
.
showToast
({
title
:
res
.
errMsg
||
'请求失败'
,
icon
:
'none'
,
});
},
});
},
},
},
},
});
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGxhdGZvcm1GZWVEaWFsb2cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQbGF0Zm9ybUZlZURpYWxvZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDRDQUFtRDtBQUduRCxJQUFNLEdBQUcsR0FBRyxNQUFNLEVBQVUsQ0FBQztBQUM3QixJQUFJLEtBQUssR0FBRyxJQUFJLENBQUM7QUFFakIsU0FBUyxDQUFDO0lBQ1IsU0FBUyxFQUFFO1FBQ1QsUUFBUTtZQUNOLE9BQU8sQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLFVBQVUsQ0FBQyxRQUFRLENBQUMsQ0FBQ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wcC5nbG9iYWxEYXRhLnVzZXJJbmZvLFxuICAgIHNob3dEaWFsb2c6IGZhbHNlLFxuICAgIHR5cGU6IDEsIC8vIDEg5pSv5LuYIDIg5omr56CBXG4gICAgaXNTa2lwOiAwLFxuICAgIHJlY2hhcmdlQmFsYW5jZTogMCxcbiAgICBwYXlUaW1lTGltaXQ6IDAsXG4gICAgYmlsbFR5cGU6ICcwJyxcbiAgICBwYXlRclVybDogJycsXG4gICAgY291bnREb3duOiA2MDAsXG4gICAgY291bnREb3duU3RyaW5nOiAnMTDliIYwMOenkicsXG4gIH0sXG5cbiAgLyoqXG4gICAqIOe7hOS7tueahOaWueazleWIl+ihqFxuICAgKi9cbiAgbWV0aG9kczoge1xuICAgIGZldGNoUGxhdGZvcm1GZWUoKSB7XG4gICAgICBvcGVyYXRvckZldGNoKHtcbiAgICAgICAgdXJsOiAnL29wZXJhdGVCYWxhbmNlL3JlY2hhZ2UvaW5pdGRhdGEnLFxuICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgZGF0YToge1xuICAgICAgICAgIG9wZXJhdGVJZDogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVJZCxcbiAgICAgICAgICBvcGVyYXRlTmFtZTogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVOYW1lLFxuICAgICAgICAgIHBvc2l0aW9uOiAzLFxuICAgICAgICAgIHR5cGU6IDIsXG4gICAgICAgIH0sXG4gICAgICB9KVxuICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgIGNvbnN0IHsgaXNTa2lwLCByZWNoYXJnZUJhbGFuY2UsIHBheVRpbWVMaW1pdCB9ID0gcmVzO1xuICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICBpc1NraXAsXG4gICAgICAgICAgICByZWNoYXJnZUJhbGFuY2UsXG4gICAgICAgICAgICBwYXlUaW1lTGltaXQsXG4gICAgICAgICAgICBzaG93RGlhbG9nOiByZWNoYXJ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B7IHZhbHVlIH0gPSBlLmN1cnJlbnRUYXJnZXQuZGF0YXNldDtcbiAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgIGJpbGxUeXBlOiB2YWx1ZSxcbiAgICAgIH0pO1xuICAgIH0sXG4gICAgZmV0Y2hSZWNoYXJnZU9yZGVyUVJjb2RlKCkge1xuICAgICAgd3guc2hvd0xvYWRpbmcoe1xuICAgICAgICB0aXRsZTogJycsXG4gICAgICB9KTtcbiAgICAgIGNvbnN0IGVudGl0eSA9IHtcbiAgICAgICAgYmlsbFR5cGU6IHRoaXMuZGF0YS5iaWxsVHlwZSxcbiAgICAgICAgaXNBZ3JlZTogMSxcbiAgICAgICAganNDb2RlOiAnc3RyaW5nJyxcbiAgICAgICAgb3BlcmF0ZUlkOiB0aGlzLmRhdGEudXNlckluZm8ub3BlcmF0ZUlkLFxuICAgICAgICBvcGVyYXRlTmFtZTogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVOYW1lLFxuICAgICAgICByZWNoYXJnZVR5cGU6ICcyJyxcbiAgICAgICAgdHlwZTogMixcbiAgICAgIH07XG4gICAgICBvcGVyYXRvckZldGNoKHtcbiAgICAgICAgdXJsOiAnL29wZXJhdGVCYWxhbmNlL3JlY2hhZ2Uvb3JkZXIvZm9ybWluaScsXG4gICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICBkYXRhOiBlbnRpdHksXG4gICAgICB9KVxuICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgY29uc3QgeyBwYXlRclVybCB9ID0gcmVzO1xuICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICBwYXlRclVybCxcbiAgICAgICAgICB9KTtcbiAgICAgICAgICB0aW1lciA9IHNldEludGVydmFsKCgpID0+IHtcbiAgICAgICAgICAgIGxldCBjb3VudCA9IHRoaXMuZGF0YS5jb3VudERvd247XG4gICAgICAgICAgICBpZiAoY291bnQgPT09IDApIHtcbiAgICAgICAgICAgICAgY2xlYXJJbnRlcnZhbCh0aW1lcik7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICBsZXQgbmV3Q291bnQgPSBjb3VudCAtIDE7XG4gICAgICAgICAgICAgIGxldCBjb3VudFN0cmluZyA9XG4gICAgICAgICAgICAgICAgTWF0aC5mbG9vcihuZXdDb3VudCAvIDYwKSArICfliIYnICsgKG5ld0NvdW50ICUgNjApICsgJ+enkic7XG4gICAgICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAgICAgY291bnREb3duOiBuZXdDb3VudCxcbiAgICAgICAgICAgICAgICBjb3VudERvd25TdHJpbmc6IGNvdW50U3RyaW5nLFxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LCAxMDAwKTtcbiAgICAgICAgfSlcbiAgICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6IGVyci5tc2cgfHwgJ+ivt+axguWksei0pScsXG4gICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgfSk7XG4gICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgfSk7XG4gICAgfSxcbiAgfSxcbn0pO1xuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGxhdGZvcm1GZWVEaWFsb2cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQbGF0Zm9ybUZlZURpYWxvZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDRDQUFtRDtBQUduRCxJQUFNLEdBQUcsR0FBRyxNQUFNLEVBQVUsQ0FBQztBQUM3QixJQUFJLEtBQUssR0FBRyxJQUFJLENBQUM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gICAgICAgZGF0YToge1xuICAgICAgICAgIG9wZXJhdGVJZDogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVJZCxcbiAgICAgICAgICBvcGVyYXRlTmFtZTogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVOYW1lLFxuICAgICAgICAgIHBvc2l0aW9uOiAzLFxuICAgICAgICAgIHR5cGU6IDIsXG4gICAgICAgIH0sXG4gICAgICB9KVxuICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgIGNvbnN0IHsgaXNTa2lwLCByZWNoYXJnZUJhbGFuY2UsIHBheVRpbWVMaW1pdCB9ID0gcmVzO1xuICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICBpc1NraXAsXG4gICAgICAgICAgICByZWNoYXJnZUJhbGFuY2UsXG4gICAgICAgICAgICBwYXlUaW1lTGltaXQsXG4gICAgICAgICAgICBzaG93RGlhbG9nOiByZWNoYXJnZUJhbGFuY2UgPiAwID8gdHJ1ZSA6IGZhbHNlLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIGZldGNoZWRQbGF0Zm9ybSA9IHRydWU7XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIH0pO1xuICAgIH0sXG4gICAgY2FuY2VsU2hvdygpIHtcbiAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgIHNob3dEaWFsb2c6IGZhbHNlLFxuICAgICAgfSk7XG4gICAgfSxcbiAgICBmZXRjaFJlY2hhcmdlSW5mbygpIHtcbiAgICAgIGNvbnNvbGUubG9nKCdpbiBmZXRjaFJlY2hhcmdlSW5mbycpO1xuICAgICAgd3guc2hvd0xvYWRpbmcoe1xuICAgICAgICB0aXRsZTogJycsXG4gICAgICB9KTtcbiAgICAgIHd4LmxvZ2luKHtcbiAgICAgICAgc3VjY2VzczogcmVzID0+IHtcbiAgICAgICAgICBpZiAocmVzLmNvZGUpIHtcbiAgICAgICAgICAgIGNvbnN0IGVudGl0eSA9IHtcbiAgICAgICAgICAgICAgYmlsbFR5cGU6IHRoaXMuZGF0YS5iaWxsVHlwZSxcbiAgICAgICAgICAgICAgaXNBZ3JlZTogMSxcbiAgICAgICAgICAgICAganNDb2RlOiByZXMuY29kZSxcbiAgICAgICAgICAgICAgb3BlcmF0ZUlkOiB0aGlzLmRhdGEudXNlckluZm8ub3BlcmF0ZUlkLFxuICAgICAgICAgICAgICBvcGVyYXRlTmFtZTogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVOYW1lLFxuICAgICAgICAgICAgICByZWNoYXJnZVR5cGU6ICcyJyxcbiAgICAgICAgICAgICAgdHlwZTogMixcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICBvcGVyYXRvckZldGNoKHtcbiAgICAgICAgICAgICAgdXJsOiAnL29wZXJhdGVCYWxhbmNlL3JlY2hhZ2Uvb3JkZXIvZm9ybWluaScsXG4gICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgICBkYXRhOiBlbnRpdHksXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgY29uc3QgeyBwYXlJbmZvIH0gPSByZXM7XG4gICAgICAgICAgICAgICAgd3gucmVxdWVzdFBheW1lbnQoe1xuICAgICAgICAgICAgICAgICAgdGltZVN0YW1wOiBwYXlJbmZvLnRpbWVTdGFtcCxcbiAgICAgICAgICAgICAgICAgIG5vbmNlU3RyOiBwYXlJbmZvLm5vbmNlU3RyLFxuICAgICAgICAgICAgICAgICAgcGFja2FnZTogcGF5SW5mby5wYWNrYWdlLFxuICAgICAgICAgICAgICAgICAgc2lnblR5cGU6IHBheUluZm8uc2lnblR5cGUsXG4gICAgICAgICAgICAgICAgICBwYXlTaWduOiBwYXlJbmZvLnBheVNpZ24sXG4gICAgICAgICAgICAgICAgICBzdWNjZXNzOiByZXMgPT4ge1xuICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiAn5pSv5LuY5oiQ5Yqf77yBJyxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAgICAgICAgICAgc2hvd0RpYWxvZzogZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICAgICAgdGl0bGU6ICfmlK/ku5jlpLHotKXvvIEnLFxuICAgICAgICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIubXNnIHx8ICfor7fmsYLlpLHotKUnLFxuICAgICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgIHRpdGxlOiByZXMuZXJyTXNnIHx8ICfor7fmsYLlpLHotKUnLFxuICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6IHJlcy5lcnJNc2cgfHwgJ+ivt+axguWksei0pScsXG4gICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9LFxuICAgIGdvUmVjb3Jkc1BhZ2UoKSB7XG4gICAgICB3eC5uYXZpZ2F0ZVRvKHtcbiAgICAgICAgdXJsOiAnL3BhZ2VzL3BsYXRmb3JtRmVlUmVjb3JkL3BsYXRmb3JtRmVlUmVjb3JkJyxcbiAgICAgIH0pO1xuICAgIH0sXG4gICAgdG9nZ2xlVHlwZSgpIHtcbiAgICAgIGxldCB0eXBlID0gdGhpcy5kYXRhLnR5cGU7XG4gICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICB0eXBlOiB0eXBlID09PSAxID8gMiA6IDEsXG4gICAgICB9KTtcbiAgICAgIGlmICh0eXBlID09PSAxKSB7XG4gICAgICAgIHRoaXMuZmV0Y2hSZWNoYXJnZU9yZGVyUVJjb2RlKCk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aW1lciAmJiBjbGVhckludGVydmFsKHRpbWVyKTtcbiAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICBjb3VudERvd246IDYwMCxcbiAgICAgICAgICBjb3VudERvd25TdHJpbmc6ICcnLFxuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICB9LFxuICAgIGNoZWNrQmlsbFR5cGUoZSkge1xuICAgICAgY29uc29sZS5sb2coZSk7XG4gICAgICBjb25zdCB7IHZhbHVlIH0gPSBlLmN1cnJlbnRUYXJnZXQuZGF0YXNldDtcbiAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgIGJpbGxUeXBlOiB2YWx1ZSxcbiAgICAgIH0pO1xuICAgIH0sXG4gICAgZmV0Y2hSZWNoYXJnZU9yZGVyUVJjb2RlKCkge1xuICAgICAgd3guc2hvd0xvYWRpbmcoe1xuICAgICAgICB0aXRsZTogJycsXG4gICAgICB9KTtcbiAgICAgIHd4LmxvZ2luKHtcbiAgICAgICAgc3VjY2VzczogcmVzID0+IHtcbiAgICAgICAgICBpZiAocmVzLmNvZGUpIHtcbiAgICAgICAgICAgIGNvbnN0IGVudGl0eSA9IHtcbiAgICAgICAgICAgICAgYmlsbFR5cGU6IHRoaXMuZGF0YS5iaWxsVHlwZSxcbiAgICAgICAgICAgICAgaXNBZ3JlZTogMSxcbiAgICAgICAgICAgICAganNDb2RlOiAnc3RyaW5nJyxcbiAgICAgICAgICAgICAgb3BlcmF0ZUlkOiB0aGlzLmRhdGEudXNlckluZm8ub3BlcmF0ZUlkLFxuICAgICAgICAgICAgICBvcGVyYXRlTmFtZTogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVOYW1lLFxuICAgICAgICAgICAgICByZWNoYXJnZVR5cGU6ICcyJyxcbiAgICAgICAgICAgICAgdHlwZTogMixcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICBvcGVyYXRvckZldGNoKHtcbiAgICAgICAgICAgICAgdXJsOiAnL29wZXJhdGVCYWxhbmNlL3JlY2hhZ2Uvb3JkZXIvZm9ybWluaScsXG4gICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgICBkYXRhOiBlbnRpdHksXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgY29uc3QgeyBwYXlRclVybCB9ID0gcmVzO1xuICAgICAgICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAgICAgICBwYXlRclVybCxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB0aW1lciA9IHNldEludGVydmFsKCgpID0+IHtcbiAgICAgICAgICAgICAgICAgIGxldCBjb3VudCA9IHRoaXMuZGF0YS5jb3VudERvd247XG4gICAgICAgICAgICAgICAgICBpZiAoY291bnQgPT09IDApIHtcbiAgICAgICAgICAgICAgICAgICAgY2xlYXJJbnRlcnZhbCh0aW1lcik7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAgICAgICAgICAgcGF5UXJVcmw6ICcnLFxuICAgICAgICAgICAgICAgICAgICAgIGNvdW50RG93bjogNjAwLFxuICAgICAgICAgICAgICAgICAgICAgIGNvdW50RG93blN0cmluZzogJzDnp5InLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIGxldCBuZXdDb3VudCA9IGNvdW50IC0gMTtcbiAgICAgICAgICAgICAgICAgICAgbGV0IGNvdW50U3RyaW5nID1cbiAgICAgICAgICAgICAgICAgICAgICBNYXRoLmZsb29yKG5ld0NvdW50IC8gNjApICsgJ+WIhicgKyAobmV3Q291bnQgJSA2MCkgKyAn56eSJztcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgICAgICAgICBjb3VudERvd246IG5ld0NvdW50LFxuICAgICAgICAgICAgICAgICAgICAgIGNvdW50RG93blN0cmluZzogY291bnRTdHJpbmcsXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0sIDEwMDApO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICB0aXRsZTogZXJyLm1zZyB8fCAn6K+35rGC5aSx6LSlJyxcbiAgICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgIHRpdGxlOiByZXMuZXJyTXNnIHx8ICfor7fmsYLlpLHotKUnLFxuICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICB0aXRsZTogcmVzLmVyck1zZyB8fCAn6K+35rGC5aSx6LSlJyxcbiAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSxcbiAgICAgIH0pO1xuICAgIH0sXG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file
\ No newline at end of file
miniprogram/pages/components/PlatformFeeDialog/PlatformFeeDialog.ts
View file @
bf331da5
...
@@ -3,6 +3,7 @@ import { IMyApp } from '../../../app';
...
@@ -3,6 +3,7 @@ import { IMyApp } from '../../../app';
const
app
=
getApp
<
IMyApp
>
();
const
app
=
getApp
<
IMyApp
>
();
let
timer
=
null
;
let
timer
=
null
;
let
fetchedPlatform
=
false
;
// pages/components/PlatformFeeDialog/PlatformFeeDialog.js
// pages/components/PlatformFeeDialog/PlatformFeeDialog.js
Component
({
Component
({
lifetimes
:
{
lifetimes
:
{
...
@@ -11,7 +12,9 @@ Component({
...
@@ -11,7 +12,9 @@ Component({
this
.
setData
!
({
this
.
setData
!
({
userInfo
:
app
.
globalData
.
userInfo
,
userInfo
:
app
.
globalData
.
userInfo
,
});
});
this
.
data
.
eventType
===
'slef'
&&
this
.
fetchPlatformFee
();
this
.
data
.
eventType
===
'slef'
&&
!
fetchedPlatform
&&
this
.
fetchPlatformFee
();
},
},
},
},
/**
/**
...
@@ -60,6 +63,7 @@ Component({
...
@@ -60,6 +63,7 @@ Component({
payTimeLimit
,
payTimeLimit
,
showDialog
:
rechargeBalance
>
0
?
true
:
false
,
showDialog
:
rechargeBalance
>
0
?
true
:
false
,
});
});
fetchedPlatform
=
true
;
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
console
.
log
(
err
);
console
.
log
(
err
);
...
@@ -72,6 +76,77 @@ Component({
...
@@ -72,6 +76,77 @@ Component({
},
},
fetchRechargeInfo
()
{
fetchRechargeInfo
()
{
console
.
log
(
'in fetchRechargeInfo'
);
console
.
log
(
'in fetchRechargeInfo'
);
wx
.
showLoading
({
title
:
''
,
});
wx
.
login
({
success
:
res
=>
{
if
(
res
.
code
)
{
const
entity
=
{
billType
:
this
.
data
.
billType
,
isAgree
:
1
,
jsCode
:
res
.
code
,
operateId
:
this
.
data
.
userInfo
.
operateId
,
operateName
:
this
.
data
.
userInfo
.
operateName
,
rechargeType
:
'2'
,
type
:
2
,
};
operatorFetch
({
url
:
'/operateBalance/rechage/order/formini'
,
method
:
'POST'
,
data
:
entity
,
})
.
then
(
res
=>
{
console
.
log
(
res
);
const
{
payInfo
}
=
res
;
wx
.
requestPayment
({
timeStamp
:
payInfo
.
timeStamp
,
nonceStr
:
payInfo
.
nonceStr
,
package
:
payInfo
.
package
,
signType
:
payInfo
.
signType
,
paySign
:
payInfo
.
paySign
,
success
:
res
=>
{
console
.
log
(
res
);
wx
.
showToast
({
title
:
'支付成功!'
,
});
this
.
setData
({
showDialog
:
false
,
});
},
fail
(
res
)
{
console
.
log
(
res
);
wx
.
showToast
({
title
:
'支付失败!'
,
icon
:
'none'
,
});
},
});
})
.
catch
(
err
=>
{
console
.
log
(
err
);
wx
.
hideLoading
();
wx
.
showToast
({
title
:
err
.
msg
||
'请求失败'
,
icon
:
'none'
,
});
});
}
else
{
wx
.
hideLoading
();
wx
.
showToast
({
title
:
res
.
errMsg
||
'请求失败'
,
icon
:
'none'
,
});
}
},
fail
(
res
)
{
wx
.
hideLoading
();
wx
.
showToast
({
title
:
res
.
errMsg
||
'请求失败'
,
icon
:
'none'
,
});
},
});
},
},
goRecordsPage
()
{
goRecordsPage
()
{
wx
.
navigateTo
({
wx
.
navigateTo
({
...
@@ -104,6 +179,9 @@ Component({
...
@@ -104,6 +179,9 @@ Component({
wx
.
showLoading
({
wx
.
showLoading
({
title
:
''
,
title
:
''
,
});
});
wx
.
login
({
success
:
res
=>
{
if
(
res
.
code
)
{
const
entity
=
{
const
entity
=
{
billType
:
this
.
data
.
billType
,
billType
:
this
.
data
.
billType
,
isAgree
:
1
,
isAgree
:
1
,
...
@@ -128,6 +206,11 @@ Component({
...
@@ -128,6 +206,11 @@ Component({
let
count
=
this
.
data
.
countDown
;
let
count
=
this
.
data
.
countDown
;
if
(
count
===
0
)
{
if
(
count
===
0
)
{
clearInterval
(
timer
);
clearInterval
(
timer
);
this
.
setData
({
payQrUrl
:
''
,
countDown
:
600
,
countDownString
:
'0秒'
,
});
}
else
{
}
else
{
let
newCount
=
count
-
1
;
let
newCount
=
count
-
1
;
let
countString
=
let
countString
=
...
@@ -147,6 +230,23 @@ Component({
...
@@ -147,6 +230,23 @@ Component({
});
});
console
.
log
(
err
);
console
.
log
(
err
);
});
});
}
else
{
wx
.
hideLoading
();
wx
.
showToast
({
title
:
res
.
errMsg
||
'请求失败'
,
icon
:
'none'
,
});
}
},
fail
(
res
)
{
console
.
log
(
res
);
wx
.
hideLoading
();
wx
.
showToast
({
title
:
res
.
errMsg
||
'请求失败'
,
icon
:
'none'
,
});
},
});
},
},
},
},
});
});
miniprogram/pages/home/home.js
View file @
bf331da5
...
@@ -163,6 +163,21 @@ Component({
...
@@ -163,6 +163,21 @@ Component({
console
.
log
(
err
);
console
.
log
(
err
);
});
});
},
},
requestSubMsg
:
function
()
{
console
.
log
(
'in requestSubMsg'
);
wx
.
requestSubscribeMessage
({
tmplIds
:
[
'WU2yMHKM_yNPLGHRsstggsDYnZhKoHIg4heM2fZkD5I'
],
success
:
function
(
res
)
{
console
.
log
(
'in success'
,
res
);
},
fail
:
function
(
res
)
{
console
.
log
(
'in fail'
,
res
);
},
complete
:
function
(
res
)
{
console
.
log
(
'in complete'
,
res
);
},
});
},
},
},
});
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImhvbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBa0Q7QUFDbEQseUNBQThDO0FBRzlDLFNBQVMsQ0FBQztJQUNSLFNBQVMsRUFBRTtRQUNULFFBQVE7WUFDTixPQUFPLENBQUMsR0FBRyxDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1lBQzNDLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxPQUFPLElBQUksSUFBSSxDQUFDLGlCQUFpQixFQUFFLENBQUM7UUFDakQsQ0FBQztLQUNGO0lBSUQsSUFBSSxFQUFFO1FBQ0osUUFBUSxFQUFFLENBQUM7UUFDWCxPQUFPLEVBQUUsS0FBSztRQUNkLFdBQVcsRUFBRSxFQUFFO1FBQ2YsWUFBWSxFQUFFO1lBQ1osS0FBSyxFQUFFLE1BQU07WUFDYix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gICAgdGl0bGU6ICfmtojotLnmgLvpop0nLFxuICAgICAgbnVtYmVyVHlwZTogJ3ByaWNlJyxcbiAgICAgIGNvdW50OiAwLFxuICAgIH0sXG4gICAgY29tc3VtZXJDb3VudDoge1xuICAgICAgdGl0bGU6ICfmtojotLnmgLvnrJTmlbAnLFxuICAgICAgbnVtYmVyVHlwZTogJycsXG4gICAgICBjb3VudDogMCxcbiAgICB9LFxuICAgIHJlZnVuZERhdGE6IHtcbiAgICAgIHRpdGxlOiAn6YCA5qy+5oC76aKdJyxcbiAgICAgIG51bWJlclR5cGU6ICdwcmljZScsXG4gICAgICBjb3VudDogMCxcbiAgICB9LFxuICAgIHJlZnVuZENvdW50OiB7XG4gICAgICB0aXRsZTogJ+mAgOasvuaAu+eslOaVsCcsXG4gICAgICBudW1iZXJUeXBlOiAnJyxcbiAgICAgIGNvdW50OiAwLFxuICAgIH0sXG4gICAgdGVzdERhdGE6IHtcbiAgICAgIHRpdGxlOiAn5YWF5YC85oC76aKdJyxcbiAgICAgIG51bWJlclR5cGU6ICdwcmljZScsXG4gICAgICBjb3VudDogMCxcbiAgICB9LFxuICAgIHRlc3REYXRhMjoge1xuICAgICAgdGl0bGU6ICfnur/kuIrlhYXlgLwnLFxuICAgICAgbnVtYmVyVHlwZTogJzEnLFxuICAgICAgY291bnQ6IDAsXG4gICAgICBwcmljZTogMCxcbiAgICB9LFxuICB9LFxuICBtZXRob2RzOiB7XG4gICAgY2hhbmdlVGltZVR5cGUoZSkge1xuICAgICAgY29uc3QgeyB0aW1ldHlwZSB9ID0gZS5jdXJyZW50VGFyZ2V0LmRhdGFzZXQ7XG4gICAgICBpZiAodGltZXR5cGUgPT09IHRoaXMuZGF0YS50aW1lVHlwZSkgcmV0dXJuO1xuICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgdGltZVR5cGU6IHRpbWV0eXBlLFxuICAgICAgfSk7XG4gICAgICB0aGlzLmZldGNoUmVjaGFyZ2VEYXRhKHRpbWV0eXBl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GFyZ2VNZW4sXG4gICAgICAgICAgICByZWNoYXJnZU1vbmV5LFxuICAgICAgICAgICAgcmVmdW5kQ291bnQsXG4gICAgICAgICAgICByZWZ1bmRNb25leSxcbiAgICAgICAgICAgIG9mZmxpbmVSZWNoYXJnZU1lbixcbiAgICAgICAgICAgIG9mZmxpbmVSZWNoYXJnZU1vbmV5LFxuICAgICAgICAgICAgb25saW5lUmVjaGFyZ2VNZW4sXG4gICAgICAgICAgICBvbmxpbmVSZWNoYXJnZU1vbmV5LFxuICAgICAgICAgIH0gPSBkYXRhO1xuICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAncmVjaGFyZ2VEYXRhLmNvdW50JzogcmVjaGFyZ2VNb25leSxcbiAgICAgICAgICAgICdyZWNoYXJnZUNvdW50LmNvdW50JzogcmVjaGFyZ2VNZW4sXG4gICAgICAgICAgICAncmVmdW5kRGF0YS5jb3VudCc6IHJlZnVuZE1vbmV5LFxuICAgICAgICAgICAgJ3JlZnVuZENvdW50LmNvdW50JzogcmVmdW5kQ291bnQsXG4gICAgICAgICAgICAnb25saW5lUmVjaGFyZ2VEYXRhLnByaWNlJzogb25saW5lUmVjaGFyZ2VNb25leSxcbiAgICAgICAgICAgICdvbmxpbmVSZWNoYXJnZURhdGEuY291bnQnOiBvbmxpbmVSZWNoYXJnZU1lbixcbiAgICAgICAgICAgICdvZmZsaW5lUmVjaGFyZ2VEYXRhLnByaWNlJzogb2ZmbGluZVJlY2hhcmdlTW9uZXksXG4gICAgICAgICAgICAnb2ZmbGluZVJlY2hhcmdlRGF0YS5jb3VudCc6IG9mZmxpbmVSZWNoYXJnZU1lbixcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgJ3JlY2hhcmdlRGF0YS5jb3VudCc6IDAsXG4gICAgICAgICAgICAncmVjaGFyZ2VDb3VudC5jb3VudCc6IDAsXG4gICAgICAgICAgICAncmVmdW5kRGF0YS5jb3VudCc6IDAsXG4gICAgICAgICAgICAncmVmdW5kQ291bnQuY291bnQnOiAwLFxuICAgICAgICAgICAgJ29ubGluZVJlY2hhcmdlRGF0YS5wcmljZSc6IDAsXG4gICAgICAgICAgICAnb25saW5lUmVjaGFyZ2VEYXRhLmNvdW50JzogMCxcbiAgICAgICAgICAgICdvZmZsaW5lUmVjaGFyZ2VEYXRhLnByaWNlJzogMCxcbiAgICAgICAgICAgICdvZmZsaW5lUmVjaGFyZ2VEYXRhLmNvdW50JzogMCxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSk7XG4gICAgICBsZXQgY29uc3VtZURhdGFGZXRjaCA9IHN0YXRpc3RpY3NGZXRjaCh7XG4gICAgICAgIHVybDogJy9kY3h5L3JlcG9ydEluZm8vcXVlcnlDb25zdW1lT3JkZXJMaXN0JyxcbiAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgIGRhdGE6IGVudGl0eSxcbiAgICAgIH0pLnRoZW4ocmVzID0+IHtcbiAgICAgICAgY29uc3QgeyBjb25zdW1lQ291bnRWbywgZGF0YSB9ID0gcmVzO1xuICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgIHNlcnZpY2VMaXN0OiBkYXRhLm1hcChpdGVtID0+ICh7XG4gICAgICAgICAgICBzZXJ2aWNlSWQ6IGl0ZW0uc2VydmljZUlkLFxuICAgICAgICAgICAgdGl0bGU6IGl0ZW0uc2VydmljZU5hbWUsXG4gICAgICAgICAgICBudW1iZXJUeXBlOiAnMScsXG4gICAgICAgICAgICBjb3VudDogaXRlbS5wYXlNZW4sXG4gICAgICAgICAgICBwcmljZTogaXRlbS5wYXlhYmxlTW9uZXksXG4gICAgICAgICAgfSkpLFxuICAgICAgICAgICdjb21zdW1lckRhdGEuY291bnQnOlxuICAgICAgICAgICAgY29uc3VtZUNvdW50Vm8gJiYgY29uc3VtZUNvdW50Vm8ucGF5YWJsZU1vbmV5XG4gICAgICAgICAgICAgID8gY29uc3VtZUNvdW50Vm8ucGF5YWJsZU1vbmV5XG4gICAgICAgICAgICAgIDogMCxcbiAgICAgICAgICAnY29tc3VtZXJDb3VudC5jb3VudCc6XG4gICAgICAgICAgICBjb25zdW1lQ291bnRWbyAmJiBjb25zdW1lQ291bnRWby5wYXlNZW4gPyBjb25zdW1lQ291bnRWby5wYXlNZW4gOiAwLFxuICAgICAgICB9KTtcbiAgICAgIH0pO1xuICAgICAgUHJvbWlzZS5hbGwoW2NvbnN1bWVEYXRhRmV0Y2gsIHJlY2hhcmdlRGF0YUZldGNoXSlcbiAgICAgICAgLnRoZW4oKCkgPT4ge1xuICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaCgoZXJyOiB3eC5HZW5lcmFsQ2FsbGJhY2tSZXN1bHQpID0+IHtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICB0aXRsZTogZXJyLmVyck1zZyxcbiAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICB9KTtcbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImhvbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBa0Q7QUFDbEQseUNBQThDO0FBRzlDLFNBQVMsQ0FBQztJQUNSLFNBQVMsRUFBRTtRQUNULFFBQVE7WUFDTixPQUFPLENBQUMsR0FBRyxDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsSUFBSSxDQUFDLE9BQU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IG9ubGluZVJlY2hhcmdlTW9uZXksXG4gICAgICAgICAgfSA9IGRhdGE7XG4gICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICdyZWNoYXJnZURhdGEuY291bnQnOiByZWNoYXJnZU1vbmV5LFxuICAgICAgICAgICAgJ3JlY2hhcmdlQ291bnQuY291bnQnOiByZWNoYXJnZU1lbixcbiAgICAgICAgICAgICdyZWZ1bmREYXRhLmNvdW50JzogcmVmdW5kTW9uZXksXG4gICAgICAgICAgICAncmVmdW5kQ291bnQuY291bnQnOiByZWZ1bmRDb3VudCxcbiAgICAgICAgICAgICdvbmxpbmVSZWNoYXJnZURhdGEucHJpY2UnOiBvbmxpbmVSZWNoYXJnZU1vbmV5LFxuICAgICAgICAgICAgJ29ubGluZVJlY2hhcmdlRGF0YS5jb3VudCc6IG9ubGluZVJlY2hhcmdlTWVuLFxuICAgICAgICAgICAgJ29mZmxpbmVSZWNoYXJnZURhdGEucHJpY2UnOiBvZmZsaW5lUmVjaGFyZ2VNb25leSxcbiAgICAgICAgICAgICdvZmZsaW5lUmVjaGFyZ2VEYXRhLmNvdW50Jzogb2ZmbGluZVJlY2hhcmdlTWVuLFxuICAgICAgICAgIH0pO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAncmVjaGFyZ2VEYXRhLmNvdW50JzogMCxcbiAgICAgICAgICAgICdyZWNoYXJnZUNvdW50LmNvdW50JzogMCxcbiAgICAgICAgICAgICdyZWZ1bmREYXRhLmNvdW50JzogMCxcbiAgICAgICAgICAgICdyZWZ1bmRDb3VudC5jb3VudCc6IDAsXG4gICAgICAgICAgICAnb25saW5lUmVjaGFyZ2VEYXRhLnByaWNlJzogMCxcbiAgICAgICAgICAgICdvbmxpbmVSZWNoYXJnZURhdGEuY291bnQnOiAwLFxuICAgICAgICAgICAgJ29mZmxpbmVSZWNoYXJnZURhdGEucHJpY2UnOiAwLFxuICAgICAgICAgICAgJ29mZmxpbmVSZWNoYXJnZURhdGEuY291bnQnOiAwLFxuICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICB9KTtcbiAgICAgIGxldCBjb25zdW1lRGF0YUZldGNoID0gc3RhdGlzdGljc0ZldGNoKHtcbiAgICAgICAgdXJsOiAnL2RjeHkvcmVwb3J0SW5mby9xdWVyeUNvbnN1bWVPcmRlckxpc3QnLFxuICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgZGF0YTogZW50aXR5LFxuICAgICAgfSkudGhlbihyZXMgPT4ge1xuICAgICAgICBjb25zdCB7IGNvbnN1bWVDb3VudFZvLCBkYXRhIH0gPSByZXM7XG4gICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgc2VydmljZUxpc3Q6IGRhdGEubWFwKGl0ZW0gPT4gKHtcbiAgICAgICAgICAgIHNlcnZpY2VJZDogaXRlbS5zZXJ2aWNlSWQsXG4gICAgICAgICAgICB0aXRsZTogaXRlbS5zZXJ2aWNlTmFtZSxcbiAgICAgICAgICAgIG51bWJlclR5cGU6ICcxJyxcbiAgICAgICAgICAgIGNvdW50OiBpdGVtLnBheU1lbixcbiAgICAgICAgICAgIHByaWNlOiBpdGVtLnBheWFibGVNb25leSxcbiAgICAgICAgICB9KSksXG4gICAgICAgICAgJ2NvbXN1bWVyRGF0YS5jb3VudCc6XG4gICAgICAgICAgICBjb25zdW1lQ291bnRWbyAmJiBjb25zdW1lQ291bnRWby5wYXlhYmxlTW9uZXlcbiAgICAgICAgICAgICAgPyBjb25zdW1lQ291bnRWby5wYXlhYmxlTW9uZXlcbiAgICAgICAgICAgICAgOiAwLFxuICAgICAgICAgICdjb21zdW1lckNvdW50LmNvdW50JzpcbiAgICAgICAgICAgIGNvbnN1bWVDb3VudFZvICYmIGNvbnN1bWVDb3VudFZvLnBheU1lbiA/IGNvbnN1bWVDb3VudFZvLnBheU1lbiA6IDAsXG4gICAgICAgIH0pO1xuICAgICAgfSk7XG4gICAgICBQcm9taXNlLmFsbChbY29uc3VtZURhdGFGZXRjaCwgcmVjaGFyZ2VEYXRhRmV0Y2hdKVxuICAgICAgICAudGhlbigoKSA9PiB7XG4gICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgfSlcbiAgICAgICAgLmNhdGNoKChlcnI6IHd4LkdlbmVyYWxDYWxsYmFja1Jlc3VsdCkgPT4ge1xuICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgIHRpdGxlOiBlcnIuZXJyTXNnLFxuICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIH0pO1xuICAgIH0sXG4gICAgcmVxdWVzdFN1Yk1zZygpIHtcbiAgICAgIGNvbnNvbGUubG9nKCdpbiByZXF1ZXN0U3ViTXNnJyk7XG4gICAgICB3eC5yZXF1ZXN0U3Vic2NyaWJlTWVzc2FnZSh7XG4gICAgICAgIHRtcGxJZHM6IFsnV1UyeU1IS01feU5QTEdIUnNzdGdnc0RZblpoS29ISWc0aGVNMmZaa0Q1SSddLFxuICAgICAgICBzdWNjZXNzKHJlcykge1xuICAgICAgICAgIGNvbnNvbGUubG9nKCdpbiBzdWNjZXNzJywgcmVzKTtcbiAgICAgICAgfSxcbiAgICAgICAgZmFpbChyZXMpIHtcbiAgICAgICAgICBjb25zb2xlLmxvZygnaW4gZmFpbCcsIHJlcyk7XG4gICAgICAgIH0sXG4gICAgICAgIGNvbXBsZXRlKHJlcykge1xuICAgICAgICAgIGNvbnNvbGUubG9nKCdpbiBjb21wbGV0ZScsIHJlcyk7XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
\ No newline at end of file
miniprogram/pages/home/home.ts
View file @
bf331da5
...
@@ -172,5 +172,20 @@ Component({
...
@@ -172,5 +172,20 @@ Component({
console
.
log
(
err
);
console
.
log
(
err
);
});
});
},
},
requestSubMsg
()
{
console
.
log
(
'in requestSubMsg'
);
wx
.
requestSubscribeMessage
({
tmplIds
:
[
'WU2yMHKM_yNPLGHRsstggsDYnZhKoHIg4heM2fZkD5I'
],
success
(
res
)
{
console
.
log
(
'in success'
,
res
);
},
fail
(
res
)
{
console
.
log
(
'in fail'
,
res
);
},
complete
(
res
)
{
console
.
log
(
'in complete'
,
res
);
},
});
},
},
},
});
});
miniprogram/pages/home/home.wxml
View file @
bf331da5
<!-- miniprogram/pages/home.wxml -->
<!-- miniprogram/pages/home.wxml -->
<view class="container home">
<view class="container home">
<!-- <button bind:tap="requestSubMsg">订阅</button> -->
<view class="home-title">
<view class="home-title">
<view class="home-title-text">盈收数据</view>
<view class="home-title-text">盈收数据</view>
<view class="home-title-type">
<view class="home-title-type">
...
@@ -34,6 +35,5 @@
...
@@ -34,6 +35,5 @@
<price-and-count tag-data="{{refundData}}" />
<price-and-count tag-data="{{refundData}}" />
<price-and-count tag-data="{{refundCount}}" />
<price-and-count tag-data="{{refundCount}}" />
</view>
</view>
<view class="home-box">您有平台服务费需要结算,请到缴纳页面及时处理</view>
<platform-dialog />
<platform-dialog />
</view>
</view>
\ No newline at end of file
miniprogram/pages/platformFee/platformFee.js
View file @
bf331da5
"use strict"
;
"use strict"
;
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
)
{
if
(
!
list
.
length
)
return
-
1
;
var
max
=
list
[
0
][
key
];
var
maxIndex
=
0
;
for
(
var
index
=
0
;
index
<
list
.
length
;
index
++
)
{
var
element
=
list
[
index
];
if
(
element
>=
max
)
maxIndex
=
index
;
}
return
maxIndex
;
}
Page
({
Page
({
data
:
{
data
:
{
areaCount
:
0
,
areaCount
:
0
,
year
:
''
,
year
:
''
,
dataList
:
[],
dataList
:
[],
selected
:
{
areaId
:
undefined
,
areaName
:
''
,
month
:
''
,
totalMoney
:
0
,
},
},
},
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
var
year
=
new
Date
().
getFullYear
();
var
year
=
new
Date
().
getFullYear
();
...
@@ -29,6 +47,13 @@ Page({
...
@@ -29,6 +47,13 @@ Page({
areaCount
:
areaCount
,
areaCount
:
areaCount
,
dataList
:
platformFees
,
dataList
:
platformFees
,
});
});
if
(
platformFees
&&
platformFees
.
length
)
{
var
index
=
findMaxIndex
(
platformFees
,
'totalMoney'
);
var
item
=
platformFees
[
index
];
_this
.
setData
({
selected
:
item
,
});
}
})
})
.
catch
(
function
(
err
)
{
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
...
@@ -46,5 +71,11 @@ Page({
...
@@ -46,5 +71,11 @@ Page({
url
:
'/pages/platformFeeRecord/platformFeeRecord'
,
url
:
'/pages/platformFeeRecord/platformFeeRecord'
,
});
});
},
},
selectedData
:
function
(
e
)
{
var
data
=
e
.
detail
;
this
.
setData
({
selected
:
data
,
});
},
});
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhdGZvcm1GZWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJwbGF0Zm9ybUZlZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlDQUFrRDtBQUdsRCxJQUFJLENBQUM7SUFJSCxJQUFJLEVBQUU7UUFDSixTQUFTLEVBQUUsQ0FBQztRQUNaLElBQUksRUFBRSxFQUFFO1FBQ1IsUUFBUSxFQUFFLEVBQUU7S0FDYjtJQUtELE1BQU0sRUFBRSxVQUFTLE9BQU87UUFDdEIsSUFBSSxJQUFJLEdBQUcsSUFBSSxJQUFJLEVB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ogJy9wYWdlcy9wbGF0Zm9ybUZlZVJlY29yZC9wbGF0Zm9ybUZlZVJlY29yZCcsXG4gICAgfSk7XG4gIH0sXG4gIHNlbGVjdGVkRGF0YShlKSB7XG4gICAgY29uc3QgZGF0YSA9IGUuZGV0YWlsO1xuICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICBzZWxlY3RlZDogZGF0YSxcbiAgICB9KTtcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
\ No newline at end of file
miniprogram/pages/platformFee/platformFee.ts
View file @
bf331da5
import
{
statisticsFetch
}
from
'../../api/fetch'
;
import
{
statisticsFetch
}
from
'../../api/fetch'
;
function
findMaxIndex
(
list
,
key
)
{
if
(
!
list
.
length
)
return
-
1
;
let
max
=
list
[
0
][
key
];
let
maxIndex
=
0
;
for
(
let
index
=
0
;
index
<
list
.
length
;
index
++
)
{
const
element
=
list
[
index
];
if
(
element
>=
max
)
maxIndex
=
index
;
}
return
maxIndex
;
}
// miniprogram/pages/platformFee/platformFee.js
// miniprogram/pages/platformFee/platformFee.js
Page
({
Page
({
/**
/**
...
@@ -9,6 +20,12 @@ Page({
...
@@ -9,6 +20,12 @@ Page({
areaCount
:
0
,
areaCount
:
0
,
year
:
''
,
year
:
''
,
dataList
:
[],
dataList
:
[],
selected
:
{
areaId
:
undefined
,
areaName
:
''
,
month
:
''
,
totalMoney
:
0
,
},
},
},
/**
/**
...
@@ -35,6 +52,13 @@ Page({
...
@@ -35,6 +52,13 @@ Page({
areaCount
,
areaCount
,
dataList
:
platformFees
,
dataList
:
platformFees
,
});
});
if
(
platformFees
&&
platformFees
.
length
)
{
let
index
=
findMaxIndex
(
platformFees
,
'totalMoney'
);
let
item
=
platformFees
[
index
];
this
.
setData
!
({
selected
:
item
,
});
}
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
console
.
log
(
err
);
console
.
log
(
err
);
...
@@ -52,4 +76,10 @@ Page({
...
@@ -52,4 +76,10 @@ Page({
url
:
'/pages/platformFeeRecord/platformFeeRecord'
,
url
:
'/pages/platformFeeRecord/platformFeeRecord'
,
});
});
},
},
selectedData
(
e
)
{
const
data
=
e
.
detail
;
this
.
setData
({
selected
:
data
,
});
},
});
});
miniprogram/pages/platformFee/platformFee.wxml
View file @
bf331da5
...
@@ -12,26 +12,26 @@
...
@@ -12,26 +12,26 @@
<view class="platformFee-title-text">共计{{areaCount}}个校区</view>
<view class="platformFee-title-text">共计{{areaCount}}个校区</view>
</view>
</view>
<view class="platformFee-canvas">
<view class="platformFee-canvas">
<platform-fee-chart dataList="{{dataList}}" />
<platform-fee-chart dataList="{{dataList}}"
bind:selectedData="selectedData"
/>
</view>
</view>
</view>
</view>
<view class="platformFee-block">
<view class="platformFee-block"
wx:if="{{selected.areaId}}"
>
<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">各校区服务费(
9
月)</view>
<view class="platformFee-title-text">各校区服务费(
{{selected.month}}
月)</view>
<view class="platformFee-title-sum">合计:
1,800.00
</view>
<view class="platformFee-title-sum">合计:
{{selected.totalMoney}}
</view>
</view>
</view>
<view class="platformFee-areaList">
<view class="platformFee-areaList">
<view class="platformFee-areaItem">
<view class="platformFee-areaItem"
wx:for="{{selected.areaPlatformFees}}"
>
<view class="platformFee-areaItem-index">
1
</view>
<view class="platformFee-areaItem-index">
{{index}}
</view>
<view class="platformFee-areaItem-name">
多彩温江
</view>
<view class="platformFee-areaItem-name">
{{item.areaName}}
</view>
<view class="platformFee-areaItem-price">
1,000.00
</view>
<view class="platformFee-areaItem-price">
{{item.totalMoney}}
</view>
</view>
</view>
<view class="platformFee-areaItem">
<
!-- <
view class="platformFee-areaItem">
<view class="platformFee-areaItem-index">2</view>
<view class="platformFee-areaItem-index">2</view>
<view class="platformFee-areaItem-name">多彩温江</view>
<view class="platformFee-areaItem-name">多彩温江</view>
<view class="platformFee-areaItem-price">1,000.00</view>
<view class="platformFee-areaItem-price">1,000.00</view>
</view>
</view>
-->
</view>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
miniprogram/pages/platformFeeRecord/platformFeeRecord.wxml
View file @
bf331da5
<!-- miniprogram/pages/platformFeeRecord/platformFeeRecord.wxml -->
<!-- miniprogram/pages/platformFeeRecord/platformFeeRecord.wxml -->
<view class="platformFeeRecord">
<view class="platformFeeRecord">
<scroll-view class="platformFeeRecord-list" scroll-y bindscrolltolower="getMoreListItem">
<scroll-view
wx:if="{{dataList.length}}"
class="platformFeeRecord-list" scroll-y bindscrolltolower="getMoreListItem">
<view class="platformFeeRecord-item" wx:for="{{dataList}}" wx:key="{{item.id}}">
<view class="platformFeeRecord-item" wx:for="{{dataList}}" wx:key="{{item.id}}">
<view class="platformFeeRecord-itemTitle">
<view class="platformFeeRecord-itemTitle">
<view class="platformFeeRecord-itemTitle-text">
<view class="platformFeeRecord-itemTitle-text">
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
</view>
</view>
</view>
</view>
</scroll-view>
</scroll-view>
<view wx:else class="noData">暂无数据</view>
<!-- <view class="platformFeeRecord-item">
<!-- <view class="platformFeeRecord-item">
<view class="platformFeeRecord-itemTitle">
<view class="platformFeeRecord-itemTitle">
<view class="platformFeeRecord-itemTitle-text">微信缴费-专用发票</view>
<view class="platformFeeRecord-itemTitle-text">微信缴费-专用发票</view>
...
...
miniprogram/pages/platformFeeRecord/platformFeeRecord.wxss
View file @
bf331da5
...
@@ -33,3 +33,7 @@ page,
...
@@ -33,3 +33,7 @@ page,
.platformFeeRecord-col:last-child {
.platformFeeRecord-col:last-child {
margin-bottom: 0;
margin-bottom: 0;
}
}
.noData{
padding: 50rpx;
text-align: center;
}
\ No newline at end of file
miniprogram/pages/report/report.wxml
View file @
bf331da5
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
<view class="report-header-bottom"></view>
<view class="report-header-bottom"></view>
</view>
</view>
<view class="report-nav">
<view class="report-nav">
<nav-item wx:for="{{itemList}}" wx:key="
{{index}}
" nav-data="{{item}}"></nav-item>
<nav-item wx:for="{{itemList}}" wx:key="
index
" nav-data="{{item}}"></nav-item>
</view>
</view>
<platform-dialog id="platformDialog" eventType="parents" />
<platform-dialog id="platformDialog" eventType="parents" />
</view>
</view>
\ No newline at end of file
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