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
6f537cca
Commit
6f537cca
authored
Dec 27, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加修改
parent
4b5ff119
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
391 additions
and
51 deletions
+391
-51
PlatformFeeChart.js
...ram/pages/components/PlatformFeeChart/PlatformFeeChart.js
+73
-0
PlatformFeeChart.json
...m/pages/components/PlatformFeeChart/PlatformFeeChart.json
+6
-0
PlatformFeeChart.ts
...ram/pages/components/PlatformFeeChart/PlatformFeeChart.ts
+75
-0
PlatformFeeChart.wxml
...m/pages/components/PlatformFeeChart/PlatformFeeChart.wxml
+3
-0
PlatformFeeChart.wxss
...m/pages/components/PlatformFeeChart/PlatformFeeChart.wxss
+2
-0
PlatformFeeDialog.js
...m/pages/components/PlatformFeeDialog/PlatformFeeDialog.js
+0
-0
PlatformFeeDialog.ts
...m/pages/components/PlatformFeeDialog/PlatformFeeDialog.ts
+129
-4
PlatformFeeDialog.wxml
...pages/components/PlatformFeeDialog/PlatformFeeDialog.wxml
+27
-25
PlatformFeeDialog.wxss
...pages/components/PlatformFeeDialog/PlatformFeeDialog.wxss
+8
-0
platformFee.js
miniprogram/pages/platformFee/platformFee.js
+11
-4
platformFee.json
miniprogram/pages/platformFee/platformFee.json
+2
-1
platformFee.ts
miniprogram/pages/platformFee/platformFee.ts
+9
-2
platformFee.wxml
miniprogram/pages/platformFee/platformFee.wxml
+3
-3
report.js
miniprogram/pages/report/report.js
+18
-2
report.json
miniprogram/pages/report/report.json
+2
-0
report.ts
miniprogram/pages/report/report.ts
+15
-8
report.wxml
miniprogram/pages/report/report.wxml
+8
-2
No files found.
miniprogram/pages/components/PlatformFeeChart/PlatformFeeChart.js
0 → 100644
View file @
6f537cca
"use strict"
;
var
platforFeeChart
=
null
;
var
month
=
''
;
function
initChart
(
canvas
,
width
,
height
,
F2
)
{
var
data
=
[];
platforFeeChart
=
new
F2
.
Chart
({
el
:
canvas
,
width
:
width
,
height
:
height
,
});
platforFeeChart
.
source
(
data
,
{
days
:
{
min
:
1
,
max
:
12
,
},
});
platforFeeChart
.
tooltip
({
showItemMarker
:
false
,
background
:
{
radius
:
2
,
fill
:
'#6895fe'
,
padding
:
[
6
,
10
],
},
onShow
:
function
(
ev
)
{
var
items
=
ev
.
items
;
items
[
0
].
name
=
''
;
items
[
0
].
value
=
month
+
'-'
+
items
[
0
].
title
;
items
[
1
].
name
=
''
;
items
[
1
].
value
=
items
[
1
].
value
+
'元'
;
},
});
platforFeeChart
.
line
()
.
position
(
'month*totalMoney'
)
.
color
(
'#6895fe'
)
.
shape
(
'smooth'
)
.
size
(
4
);
platforFeeChart
.
area
()
.
position
(
'month*totalMoney'
)
.
color
(
'l(90) 0:#6895fe 1:#fff'
)
.
shape
(
'smooth'
)
.
style
({
fillOpacity
:
0.6
,
});
platforFeeChart
.
render
();
return
platforFeeChart
;
}
Component
({
properties
:
{
dataList
:
{
type
:
Array
,
value
:
[],
observer
:
function
(
newVal
)
{
platforFeeChart
&&
platforFeeChart
.
changeData
(
newVal
);
},
},
month
:
{
type
:
String
,
value
:
''
,
observer
:
function
(
newVal
)
{
month
=
newVal
;
},
},
},
data
:
{
opts
:
{
onInit
:
initChart
,
},
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGxhdGZvcm1GZWVDaGFydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb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ICAgIC5saW5lKClcbiAgICAucG9zaXRpb24oJ21vbnRoKnRvdGFsTW9uZXknKVxuICAgIC5jb2xvcignIzY4OTVmZScpXG4gICAgLnNoYXBlKCdzbW9vdGgnKVxuICAgIC5zaXplKDQpO1xuICBwbGF0Zm9yRmVlQ2hhcnRcbiAgICAuYXJlYSgpXG4gICAgLnBvc2l0aW9uKCdtb250aCp0b3RhbE1vbmV5JylcbiAgICAuY29sb3IoJ2woOTApIDA6IzY4OTVmZSAxOiNmZmYnKVxuICAgIC5zaGFwZSgnc21vb3RoJylcbiAgICAuc3R5bGUoe1xuICAgICAgZmlsbE9wYWNpdHk6IDAuNixcbiAgICB9KTtcbiAgLy8gcGxhdGZvckZlZUNoYXJ0LmF4aXMoJ3JlY2hhcmdlTW9uZXknLCBmYWxzZSk7XG4gIHBsYXRmb3JGZWVDaGFydC5yZW5kZXIoKTtcbiAgcmV0dXJuIHBsYXRmb3JGZWVDaGFydDtcbn1cblxuQ29tcG9uZW50KHtcbiAgcHJvcGVydGllczoge1xuICAgIGRhdGFMaXN0OiB7XG4gICAgICB0eXBlOiBBcnJheSxcbiAgICAgIHZhbHVlOiBbXSxcbiAgICAgIG9ic2VydmVyKG5ld1ZhbCkge1xuICAgICAgICBwbGF0Zm9yRmVlQ2hhcnQgJiYgcGxhdGZvckZlZUNoYXJ0LmNoYW5nZURhdGEobmV3VmFsKTtcbiAgICAgIH0sXG4gICAgfSxcbiAgICBtb250aDoge1xuICAgICAgdHlwZTogU3RyaW5nLFxuICAgICAgdmFsdWU6ICcnLFxuICAgICAgb2JzZXJ2ZXIobmV3VmFsKSB7XG4gICAgICAgIG1vbnRoID0gbmV3VmFsO1xuICAgICAgfSxcbiAgICB9LFxuICB9LFxuICBkYXRhOiB7XG4gICAgb3B0czoge1xuICAgICAgb25Jbml0OiBpbml0Q2hhcnQsXG4gICAgfSxcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
miniprogram/pages/components/PlatformFeeChart/PlatformFeeChart.json
0 → 100644
View file @
6f537cca
{
"component"
:
true
,
"usingComponents"
:
{
"ff-canvas"
:
"@antv/f2-canvas"
}
}
miniprogram/pages/components/PlatformFeeChart/PlatformFeeChart.ts
0 → 100644
View file @
6f537cca
// pages/components/PlatformFeeChart/PlatformFeeChart.js
let
platforFeeChart
=
null
;
let
month
=
''
;
function
initChart
(
canvas
,
width
,
height
,
F2
)
{
const
data
=
[];
platforFeeChart
=
new
F2
.
Chart
({
el
:
canvas
,
width
,
height
,
});
platforFeeChart
.
source
(
data
,
{
days
:
{
min
:
1
,
max
:
12
,
},
});
platforFeeChart
.
tooltip
({
showItemMarker
:
false
,
background
:
{
radius
:
2
,
fill
:
'#6895fe'
,
padding
:
[
6
,
10
],
},
onShow
(
ev
)
{
const
{
items
}
=
ev
;
items
[
0
].
name
=
''
;
items
[
0
].
value
=
month
+
'-'
+
items
[
0
].
title
;
items
[
1
].
name
=
''
;
items
[
1
].
value
=
items
[
1
].
value
+
'元'
;
},
});
platforFeeChart
.
line
()
.
position
(
'month*totalMoney'
)
.
color
(
'#6895fe'
)
.
shape
(
'smooth'
)
.
size
(
4
);
platforFeeChart
.
area
()
.
position
(
'month*totalMoney'
)
.
color
(
'l(90) 0:#6895fe 1:#fff'
)
.
shape
(
'smooth'
)
.
style
({
fillOpacity
:
0.6
,
});
// platforFeeChart.axis('rechargeMoney', false);
platforFeeChart
.
render
();
return
platforFeeChart
;
}
Component
({
properties
:
{
dataList
:
{
type
:
Array
,
value
:
[],
observer
(
newVal
)
{
platforFeeChart
&&
platforFeeChart
.
changeData
(
newVal
);
},
},
month
:
{
type
:
String
,
value
:
''
,
observer
(
newVal
)
{
month
=
newVal
;
},
},
},
data
:
{
opts
:
{
onInit
:
initChart
,
},
},
});
miniprogram/pages/components/PlatformFeeChart/PlatformFeeChart.wxml
0 → 100644
View file @
6f537cca
<!-- pages/components/PlatformFeeChart/PlatformFeeChart.wxml -->
<ff-canvas id="PlatformFeeChart" canvas-id="PlatformFeeChart" opts="{{ opts }}" />
\ No newline at end of file
miniprogram/pages/components/PlatformFeeChart/PlatformFeeChart.wxss
0 → 100644
View file @
6f537cca
/* pages/components/PlatformFeeChart/PlatformFeeChart.wxss */
\ No newline at end of file
miniprogram/pages/components/PlatformFeeDialog/PlatformFeeDialog.js
View file @
6f537cca
This diff is collapsed.
Click to expand it.
miniprogram/pages/components/PlatformFeeDialog/PlatformFeeDialog.ts
View file @
6f537cca
import
{
operatorFetch
}
from
"../../../api/fetch"
;
import
{
operatorFetch
}
from
'../../../api/fetch'
;
import
{
IMyApp
}
from
'../../../app'
;
const
app
=
getApp
<
IMyApp
>
();
let
timer
=
null
;
// pages/components/PlatformFeeDialog/PlatformFeeDialog.js
Component
({
lifetimes
:
{
attached
()
{
console
.
log
(
app
.
globalData
.
userInfo
);
this
.
setData
!
({
userInfo
:
app
.
globalData
.
userInfo
,
});
this
.
data
.
eventType
===
'slef'
&&
this
.
fetchPlatformFee
();
},
},
/**
* 组件的属性列表
*/
properties
:
{},
properties
:
{
eventType
:
{
type
:
String
,
value
:
'slef'
},
},
/**
* 组件的初始数据
*/
data
:
{
userInfo
:
app
.
globalData
.
userInfo
,
showDialog
:
false
,
type
:
1
,
// 1 支付 2 扫码
isSkip
:
0
,
rechargeBalance
:
0
,
payTimeLimit
:
0
,
billType
:
'0'
,
payQrUrl
:
''
,
countDown
:
600
,
countDownString
:
'10分00秒'
,
},
/**
* 组件的方法列表
*/
methods
:
{
fetchPlatformFee
(){
fetchPlatformFee
()
{
operatorFetch
({
url
:
'/operateBalance/rechage/initdata'
,
method
:
'POST'
,
data
:
{
operateId
:
this
.
data
.
userInfo
.
operateId
,
operateName
:
this
.
data
.
userInfo
.
operateName
,
position
:
3
,
type
:
2
,
},
})
.
then
(
res
=>
{
const
{
isSkip
,
rechargeBalance
,
payTimeLimit
}
=
res
;
this
.
setData
({
isSkip
,
rechargeBalance
,
payTimeLimit
,
showDialog
:
rechargeBalance
>
0
?
true
:
false
,
});
})
.
catch
(
err
=>
{
console
.
log
(
err
);
});
},
cancelShow
()
{
this
.
setData
({
showDialog
:
false
,
});
},
fetchRechargeInfo
()
{
console
.
log
(
'in fetchRechargeInfo'
);
},
goRecordsPage
()
{
wx
.
navigateTo
({
url
:
'/pages/platformFeeRecord/platformFeeRecord'
,
});
},
toggleType
()
{
let
type
=
this
.
data
.
type
;
this
.
setData
({
type
:
type
===
1
?
2
:
1
,
});
if
(
type
===
1
)
{
this
.
fetchRechargeOrderQRcode
();
}
else
{
timer
&&
clearInterval
(
timer
);
this
.
setData
({
countDown
:
600
,
countDownString
:
''
,
});
}
},
checkBillType
(
e
)
{
console
.
log
(
e
);
const
{
value
}
=
e
.
currentTarget
.
dataset
;
this
.
setData
({
billType
:
value
,
});
},
fetchRechargeOrderQRcode
()
{
wx
.
showLoading
({
title
:
''
,
});
const
entity
=
{
billType
:
this
.
data
.
billType
,
isAgree
:
1
,
jsCode
:
'string'
,
operateId
:
this
.
data
.
userInfo
.
operateId
,
operateName
:
this
.
data
.
userInfo
.
operateName
,
rechargeType
:
'2'
,
type
:
2
,
};
operatorFetch
({
url
:
''
url
:
'/operateBalance/rechage/order/formini'
,
method
:
'POST'
,
data
:
entity
,
})
.
then
(
res
=>
{
wx
.
hideLoading
();
const
{
payQrUrl
}
=
res
;
this
.
setData
({
payQrUrl
,
});
timer
=
setInterval
(()
=>
{
let
count
=
this
.
data
.
countDown
;
if
(
count
===
0
)
{
clearInterval
(
timer
);
}
else
{
let
newCount
=
count
-
1
;
let
countString
=
Math
.
floor
(
newCount
/
60
)
+
'分'
+
(
newCount
%
60
)
+
'秒'
;
this
.
setData
({
countDown
:
newCount
,
countDownString
:
countString
,
});
}
},
1000
);
})
.
catch
(
err
=>
{
wx
.
hideLoading
();
wx
.
showToast
({
title
:
err
.
msg
||
'请求失败'
,
icon
:
'none'
,
});
console
.
log
(
err
);
});
},
},
});
miniprogram/pages/components/PlatformFeeDialog/PlatformFeeDialog.wxml
View file @
6f537cca
<!-- pages/components/PlatformFeeDialog/PlatformFeeDialog.wxml -->
<view class="PlatformFeeDialog">
<view class="PlatformFeeDialog"
wx:if="{{showDialog}}"
>
<view class="mask"></view>
<view class="PlatformFeeDialog-body">
<view class="PlatformFeeDialog-content">
<view class="PlatformFeeDialog-content
{{type===1?'show':''}}
">
<view class="PlatformFeeDialog-header">
<view>尊敬的用户:</view>
<view class="PlatformFeeDialog-headerName">您好!您的平台服务费已生成,为不影响设备正常使用,请在5个工作日内及时缴费,谢谢</view>
<view class="PlatformFeeDialog-headerName">
您好!您的平台服务费已生成,为不影响设备正常使用,请在{{payTimeLimit}}个工作日内及时缴费,谢谢
</view>
</view>
<view class="PlatformFeeDialog-priceInfo">
<view class="PlatformFeeDialog-priceItem">
<view class="PlatformFeeDialog-priceItemLabel">服务费</view>
<view class="PlatformFeeDialog-priceItemPrice">
265.23
元</view>
<view class="PlatformFeeDialog-priceItemPrice">
{{rechargeBalance}}
元</view>
</view>
<view class="PlatformFeeDialog-priceItem">
<view class="PlatformFeeDialog-priceItemLabel">开票选择</view>
</view>
<view class="PlatformFeeDialog-radiofroup">
<view class="PlatformFeeDialog-radio">
<view class="PlatformFeeDialog-radioinput"></view>
<view class="PlatformFeeDialog-radio"
bind:tap="checkBillType" data-value="0"
>
<view class="PlatformFeeDialog-radioinput
{{billType==='0'?'check':''}}
"></view>
<view>无需发票</view>
</view>
<view class="PlatformFeeDialog-radio">
<view class="PlatformFeeDialog-radioinput"></view>
<view class="PlatformFeeDialog-radio"
bind:tap="checkBillType" data-value="1"
>
<view class="PlatformFeeDialog-radioinput
{{billType==='1'?'check':''}}
"></view>
<view>普通发票</view>
</view>
<view class="PlatformFeeDialog-radio">
<view class="PlatformFeeDialog-radioinput"></view>
<view class="PlatformFeeDialog-radio"
bind:tap="checkBillType" data-value="2"
>
<view class="PlatformFeeDialog-radioinput
{{billType==='2'?'check':''}}
"></view>
<view>专用发票</view>
</view>
</view>
<view class="PlatformFeeDialog-btnbox">
<button class="PlatformFeeDialog-btn">取消</button>
<button class="PlatformFeeDialog-btn">确认支付</button>
<button class="PlatformFeeDialog-btn
cancel" wx:if="{{isSkip}}" bind:tap="cancelShow
">取消</button>
<button class="PlatformFeeDialog-btn
{{isSkip?'':'big'}}" bind:tap="fetchRechargeInfo
">确认支付</button>
</view>
<view class="PlatformFeeDialog-links">
<view>查看服务费明细</view>
<view>扫码支付 ></view>
<view
bind:tap="goRecordsPage"
>查看服务费明细</view>
<view
bind:tap="toggleType"
>扫码支付 ></view>
</view>
</view>
</view>
<view class="PlatformFeeDialog-content scanPay
show
">
<view class="PlatformFeeDialog-content scanPay
{{type===2?'show':''}}
">
<view class="PlatformFeeDialog-header">
<view class="PlatformFeeDialog-back"
>&tl;
</view>
<view class="PlatformFeeDialog-back"
bind:tap="toggleType">{{'<'}}
</view>
<view class="PlatformFeeDialog-countdown">
剩余
<text class="" selectable="false" space="false" decode="false">
9分59秒
</text>
<text class="" selectable="false" space="false" decode="false">
{{countDownString}}
</text>
</view>
</view>
<view class="PlatformFeeDialog-priceInfo">
<view class="PlatformFeeDialog-priceItem">
<view class="PlatformFeeDialog-priceItemLabel">服务费</view>
<view class="PlatformFeeDialog-priceItemPrice">
265.23
元</view>
<view class="PlatformFeeDialog-priceItemPrice">
{{rechargeBalance}}
元</view>
</view>
<view class="PlatformFeeDialog-priceItem">
<view class="PlatformFeeDialog-priceItemLabel">开票选择</view>
</view>
<view class="PlatformFeeDialog-radiofroup">
<view class="PlatformFeeDialog-radio">
<view class="PlatformFeeDialog-radioinput"></view>
<view class="PlatformFeeDialog-radio"
bind:tap="checkBillType" data-value="0"
>
<view class="PlatformFeeDialog-radioinput
{{billType==='0'?'check':''}}
"></view>
<view>无需发票</view>
</view>
<view class="PlatformFeeDialog-radio">
<view class="PlatformFeeDialog-radioinput"></view>
<view class="PlatformFeeDialog-radio"
bind:tap="checkBillType" data-value="1"
>
<view class="PlatformFeeDialog-radioinput
{{billType==='1'?'check':''}}
"></view>
<view>普通发票</view>
</view>
<view class="PlatformFeeDialog-radio">
<view class="PlatformFeeDialog-radioinput"></view>
<view class="PlatformFeeDialog-radio"
bind:tap="checkBillType" data-value="2"
>
<view class="PlatformFeeDialog-radioinput
{{billType==='2'?'check':''}}
"></view>
<view>专用发票</view>
</view>
</view>
<view class="PlatformFeeDialog-payQRcode">
<image class="PlatformFeeDialog-payQRcodeImg" src="" mode="aspectFill" lazy-load="false" binderror="" bindload="" />
<image class="PlatformFeeDialog-payQRcodeImg" src="
{{payQrUrl}}
" mode="aspectFill" lazy-load="false" binderror="" bindload="" />
</view>
</view>
</view>
...
...
miniprogram/pages/components/PlatformFeeDialog/PlatformFeeDialog.wxss
View file @
6f537cca
...
...
@@ -84,11 +84,19 @@
}
.PlatformFeeDialog-btn {
margin: 0;
width: 224rpx;
height: 98rpx;
line-height: 98rpx;
border-radius: 20rpx;
font-size: 32rpx;
}
.PlatformFeeDialog-btn.cancel {
background-color: #e6e6e6;
color: #919191;
}
.PlatformFeeDialog-btn.big {
width: 100%;
}
.PlatformFeeDialog-links {
margin-top: 40rpx;
display: flex;
...
...
miniprogram/pages/platformFee/platformFee.js
View file @
6f537cca
...
...
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
var
fetch_1
=
require
(
"../../api/fetch"
);
Page
({
data
:
{
areaCount
:
0
,
year
:
''
,
dataList
:
[],
},
...
...
@@ -23,8 +24,10 @@ Page({
data
:
entity
,
})
.
then
(
function
(
res
)
{
var
areaCount
=
res
.
areaCount
,
platformFees
=
res
.
platformFees
;
_this
.
setData
({
dataList
:
res
.
data
,
areaCount
:
areaCount
,
dataList
:
platformFees
,
});
})
.
catch
(
function
(
err
)
{
...
...
@@ -38,6 +41,10 @@ Page({
year
:
value
,
});
},
goRecordPage
:
function
()
{
},
goRecordPage
:
function
()
{
wx
.
navigateTo
({
url
:
'/pages/platformFeeRecord/platformFeeRecord'
,
});
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhdGZvcm1GZWUu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gICAgIHVybDogJy9wYWdlcy9wbGF0Zm9ybUZlZVJlY29yZC9wbGF0Zm9ybUZlZVJlY29yZCcsXG4gICAgfSk7XG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file
miniprogram/pages/platformFee/platformFee.json
View file @
6f537cca
{
"navigationBarTitleText"
:
"服务费明细"
,
"usingComponents"
:
{
"c-select"
:
"../components/Select/Select"
"c-select"
:
"../components/Select/Select"
,
"platform-fee-chart"
:
"../components/PlatformFeeChart/PlatformFeeChart"
}
}
miniprogram/pages/platformFee/platformFee.ts
View file @
6f537cca
...
...
@@ -6,6 +6,7 @@ Page({
* 页面的初始数据
*/
data
:
{
areaCount
:
0
,
year
:
''
,
dataList
:
[],
},
...
...
@@ -29,8 +30,10 @@ Page({
data
:
entity
,
})
.
then
(
res
=>
{
const
{
areaCount
,
platformFees
}
=
res
;
this
.
setData
!
({
dataList
:
res
.
data
,
areaCount
,
dataList
:
platformFees
,
});
})
.
catch
(
err
=>
{
...
...
@@ -44,5 +47,9 @@ Page({
year
:
value
,
});
},
goRecordPage
()
{},
goRecordPage
()
{
wx
.
navigateTo
({
url
:
'/pages/platformFeeRecord/platformFeeRecord'
,
});
},
});
miniprogram/pages/platformFee/platformFee.wxml
View file @
6f537cca
...
...
@@ -4,15 +4,15 @@
<view class="platformFee-area">
<c-select mode="date" fields="year" value="{{year}}" bindchange="yearChangeHandle" />
</view>
<view class="platformFee-time">缴费记录</view>
<view class="platformFee-time"
bind:tap="goRecordPage"
>缴费记录</view>
</view>
<view class="platformFee-block">
<view class="platformFee-title">
<view class="platformFee-title-color user"></view>
<view class="platformFee-title-text">共计
2
个校区</view>
<view class="platformFee-title-text">共计
{{areaCount}}
个校区</view>
</view>
<view class="platformFee-canvas">
<
user-grouth-chart dataList="{{growthList}}" month="{{month
}}" />
<
platform-fee-chart dataList="{{dataList
}}" />
</view>
</view>
<view class="platformFee-block">
...
...
miniprogram/pages/report/report.js
View file @
6f537cca
This diff is collapsed.
Click to expand it.
miniprogram/pages/report/report.json
View file @
6f537cca
...
...
@@ -2,6 +2,7 @@
"navigationBarTitleText"
:
"运营管理系统"
,
"navigationBarBackgroundColor"
:
"#f0f5ff"
,
"usingComponents"
:
{
"platform-dialog"
:
"../components/PlatformFeeDialog/PlatformFeeDialog"
,
"nav-item"
:
"../components/NavItem/NavItem"
}
}
\ No newline at end of file
miniprogram/pages/report/report.ts
View file @
6f537cca
...
...
@@ -37,12 +37,12 @@ Component({
url
:
'/pages/feedback/feedback'
,
reLaunch
:
false
,
},
//
{
// name: '服务费缴纳
',
//
icon: '../../../images/btn_jiaona@2x.png',
// url: '
',
//
reLaunch: false,
//
},
{
name
:
'服务费明细
'
,
icon
:
'../../../images/btn_jiaona@2x.png'
,
url
:
'/pages/platformFee/platformFee
'
,
reLaunch
:
false
,
},
// {
// name: '账户提现',
// icon: '../../../images/btn_tixian@2x.png',
...
...
@@ -55,8 +55,8 @@ Component({
url
:
'/pages/index/index'
,
reLaunch
:
true
,
},
//
{},
//
{},
{},
{},
],
account
:
0
,
platformFee
:
'0.00'
,
...
...
@@ -68,10 +68,17 @@ Component({
})
.
then
(
res
=>
{
console
.
log
(
res
);
this
.
setData
({
platformFee
:
res
.
data
?
res
.
data
.
toFixed
(
2
)
:
'0.00'
,
});
})
.
catch
(
err
=>
{
console
.
log
(
err
);
});
},
showRechargeDialog
()
{
let
dialog
=
this
.
selectComponent
(
'#platformDialog'
);
dialog
.
fetchPlatformFee
();
},
},
});
miniprogram/pages/report/report.wxml
View file @
6f537cca
...
...
@@ -27,13 +27,18 @@
<view class="report-header-platform">
<view class="report-header-platform-info">
待缴纳服务费
<text class="report-header-platform-fee" selectable="false" space="false" decode="false">{{platformFee}}</text>
<text class="report-header-platform-fee" selectable="false" space="false" decode="false">
{{platformFee}}
</text>
</view>
<button class="report-header-platform-btn" wx:if="{{platformFee>0}}">缴费</button>
<button class="report-header-platform-btn" wx:if="{{platformFee>0}}" bind:tap="showRechargeDialog">
缴费
</button>
</view>
<view class="report-header-bottom"></view>
</view>
<view class="report-nav">
<nav-item wx:for="{{itemList}}" wx:key="{{index}}" nav-data="{{item}}"></nav-item>
</view>
<platform-dialog id="platformDialog" eventType="parents" />
</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