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
8d7ba468
Commit
8d7ba468
authored
Dec 27, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加服务费
parent
0ee75c63
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
976 additions
and
201 deletions
+976
-201
fetch.js
miniprogram/api/fetch.js
+5
-2
fetch.ts
miniprogram/api/fetch.ts
+3
-0
app.json
miniprogram/app.json
+3
-1
constants.js
miniprogram/config/constants.js
+5
-2
constants.ts
miniprogram/config/constants.ts
+3
-0
index.wxml
miniprogram/custom-tab-bar/index.wxml
+7
-7
PlatformFeeDialog.wxss
miniprogram/pages/components/PlatformFeeDialog.wxss
+0
-0
PlatformFeeDialog.js
...m/pages/components/PlatformFeeDialog/PlatformFeeDialog.js
+18
-0
PlatformFeeDialog.json
...pages/components/PlatformFeeDialog/PlatformFeeDialog.json
+5
-0
PlatformFeeDialog.ts
...m/pages/components/PlatformFeeDialog/PlatformFeeDialog.ts
+27
-0
PlatformFeeDialog.wxml
...pages/components/PlatformFeeDialog/PlatformFeeDialog.wxml
+79
-0
PlatformFeeDialog.wxss
...pages/components/PlatformFeeDialog/PlatformFeeDialog.wxss
+110
-0
home.json
miniprogram/pages/home/home.json
+1
-0
home.wxml
miniprogram/pages/home/home.wxml
+3
-0
index.js
miniprogram/pages/index/index.js
+115
-92
index.ts
miniprogram/pages/index/index.ts
+118
-94
platformFee.js
miniprogram/pages/platformFee/platformFee.js
+44
-0
platformFee.json
miniprogram/pages/platformFee/platformFee.json
+6
-0
platformFee.ts
miniprogram/pages/platformFee/platformFee.ts
+48
-0
platformFee.wxml
miniprogram/pages/platformFee/platformFee.wxml
+38
-0
platformFee.wxss
miniprogram/pages/platformFee/platformFee.wxss
+75
-0
platformFeeRecord.js
miniprogram/pages/platformFeeRecord/platformFeeRecord.js
+49
-0
platformFeeRecord.json
miniprogram/pages/platformFeeRecord/platformFeeRecord.json
+5
-0
platformFeeRecord.ts
miniprogram/pages/platformFeeRecord/platformFeeRecord.ts
+52
-0
platformFeeRecord.wxml
miniprogram/pages/platformFeeRecord/platformFeeRecord.wxml
+36
-0
platformFeeRecord.wxss
miniprogram/pages/platformFeeRecord/platformFeeRecord.wxss
+35
-0
report.js
miniprogram/pages/report/report.js
+18
-2
report.ts
miniprogram/pages/report/report.ts
+16
-0
report.wxml
miniprogram/pages/report/report.wxml
+7
-0
report.wxss
miniprogram/pages/report/report.wxss
+31
-1
project.config.json
project.config.json
+14
-0
No files found.
miniprogram/api/fetch.js
View file @
8d7ba468
...
@@ -63,5 +63,8 @@ exports.customerFetch = function (req) {
...
@@ -63,5 +63,8 @@ exports.customerFetch = function (req) {
exports
.
baseFetch
=
function
(
req
)
{
exports
.
baseFetch
=
function
(
req
)
{
return
fetch
(
__assign
({},
req
,
{
url
:
constants_1
.
devUrl
.
BASE_SERVER_URL
+
req
.
url
}));
return
fetch
(
__assign
({},
req
,
{
url
:
constants_1
.
devUrl
.
BASE_SERVER_URL
+
req
.
url
}));
};
};
exports
.
operatorFetch
=
function
(
req
)
{
return
fetch
(
__assign
({},
req
,
{
url
:
constants_1
.
devUrl
.
OPERATOR_SERVER_URL
+
req
.
url
}));
};
exports
.
default
=
fetch
;
exports
.
default
=
fetch
;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmV0Y2guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJmZXRjaC50cyJdLCJuYW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N0YXRpc3RpY3NGZXRjaCA9IChyZXE6IHd4LlJlcXVlc3RPcHRpb24pID0+XG4gIGZldGNoKHsgLi4ucmVxLCB1cmw6IGRldlVybC5TVEFUSVNUSUNTX1NFUlZFUl9VUkwgKyByZXEudXJsIH0pO1xuZXhwb3J0IGNvbnN0IGN1c3RvbWVyRmV0Y2ggPSAocmVxOiB3eC5SZXF1ZXN0T3B0aW9uKSA9PlxuICBmZXRjaCh7IC4uLnJlcSwgdXJsOiBkZXZVcmwuQ1VTVE9NRVJfU0VSVkVSX1VSTCArIHJlcS51cmwgfSk7XG5leHBvcnQgY29uc3QgYmFzZUZldGNoID0gKHJlcTogd3guUmVxdWVzdE9wdGlvbikgPT5cbiAgZmV0Y2goeyAuLi5yZXEsIHVybDogZGV2VXJsLkJBU0VfU0VSVkVSX1VSTCArIHJlcS51cmwgfSk7XG5leHBvcnQgY29uc3Qgb3BlcmF0b3JGZXRjaCA9IChyZXE6IHd4LlJlcXVlc3RPcHRpb24pID0+XG4gIGZldGNoKHsgLi4ucmVxLCB1cmw6IGRldlVybC5PUEVSQVRPUl9TRVJWRVJfVVJMICsgcmVxLnVybCB9KTtcblxuZXhwb3J0IGRlZmF1bHQgZmV0Y2g7XG4iXX0=
\ No newline at end of file
\ No newline at end of file
miniprogram/api/fetch.ts
View file @
8d7ba468
...
@@ -50,4 +50,7 @@ export const customerFetch = (req: wx.RequestOption) =>
...
@@ -50,4 +50,7 @@ export const customerFetch = (req: wx.RequestOption) =>
fetch
({
...
req
,
url
:
devUrl
.
CUSTOMER_SERVER_URL
+
req
.
url
});
fetch
({
...
req
,
url
:
devUrl
.
CUSTOMER_SERVER_URL
+
req
.
url
});
export
const
baseFetch
=
(
req
:
wx
.
RequestOption
)
=>
export
const
baseFetch
=
(
req
:
wx
.
RequestOption
)
=>
fetch
({
...
req
,
url
:
devUrl
.
BASE_SERVER_URL
+
req
.
url
});
fetch
({
...
req
,
url
:
devUrl
.
BASE_SERVER_URL
+
req
.
url
});
export
const
operatorFetch
=
(
req
:
wx
.
RequestOption
)
=>
fetch
({
...
req
,
url
:
devUrl
.
OPERATOR_SERVER_URL
+
req
.
url
});
export
default
fetch
;
export
default
fetch
;
miniprogram/app.json
View file @
8d7ba468
...
@@ -7,7 +7,9 @@
...
@@ -7,7 +7,9 @@
"pages/monthOperator/monthOperator"
,
"pages/monthOperator/monthOperator"
,
"pages/homeAndReport/homeAndReport"
,
"pages/homeAndReport/homeAndReport"
,
"pages/userGrowth/userGrowth"
,
"pages/userGrowth/userGrowth"
,
"pages/areaSelect/areaSelect"
"pages/areaSelect/areaSelect"
,
"pages/platformFee/platformFee"
,
"pages/platformFeeRecord/platformFeeRecord"
],
],
"window"
:
{
"window"
:
{
"backgroundTextStyle"
:
"light"
,
"backgroundTextStyle"
:
"light"
,
...
...
miniprogram/config/constants.js
View file @
8d7ba468
...
@@ -5,19 +5,22 @@ exports.devUrl = {
...
@@ -5,19 +5,22 @@ exports.devUrl = {
STATISTICS_SERVER_URL
:
'https://ex-dev-dcxy-statistics-manage.168cad.top'
,
STATISTICS_SERVER_URL
:
'https://ex-dev-dcxy-statistics-manage.168cad.top'
,
CUSTOMER_SERVER_URL
:
'https://ex-dev-customer-manage.168cad.top'
,
CUSTOMER_SERVER_URL
:
'https://ex-dev-customer-manage.168cad.top'
,
BASE_SERVER_URL
:
'https://ex-dev-dcxy-base-manage.168cad.top'
,
BASE_SERVER_URL
:
'https://ex-dev-dcxy-base-manage.168cad.top'
,
OPERATOR_SERVER_URL
:
'https://dev-op-man-serv.168cad.top'
,
};
};
exports
.
testUrl
=
{
exports
.
testUrl
=
{
SYSTEM_SERVER_URL
:
'https://ex-test-dcxy-system-manage.168cad.top'
,
SYSTEM_SERVER_URL
:
'https://ex-test-dcxy-system-manage.168cad.top'
,
STATISTICS_SERVER_URL
:
'https://ex-test-dcxy-statistics-manage.168cad.top'
,
STATISTICS_SERVER_URL
:
'https://ex-test-dcxy-statistics-manage.168cad.top'
,
CUSTOMER_SERVER_URL
:
'https://ex-test-customer-manage.168cad.top'
,
CUSTOMER_SERVER_URL
:
'https://ex-test-customer-manage.168cad.top'
,
BASE_SERVER_URL
:
'https://ex-test-dcxy-base-manage.168cad.top'
,
BASE_SERVER_URL
:
'https://ex-test-dcxy-base-manage.168cad.top'
,
OPERATOR_SERVER_URL
:
'https://test-op-man-serv.168cad.top'
,
};
};
exports
.
masterUrl
=
{
exports
.
masterUrl
=
{
SYSTEM_SERVER_URL
:
'https://dcxy-system-manage.dcrym.com'
,
SYSTEM_SERVER_URL
:
'https://dcxy-system-manage.dcrym.com'
,
STATISTICS_SERVER_URL
:
'https://dcxy-statistics-manage.dcrym.com'
,
STATISTICS_SERVER_URL
:
'https://dcxy-statistics-manage.dcrym.com'
,
CUSTOMER_SERVER_URL
:
'https://dcxy-customer-manage.dcrym.com'
,
CUSTOMER_SERVER_URL
:
'https://dcxy-customer-manage.dcrym.com'
,
BASE_SERVER_URL
:
'https://dcxy-base-manage.dcrym.com'
,
BASE_SERVER_URL
:
'https://dcxy-base-manage.dcrym.com'
,
OPERATOR_SERVER_URL
:
'https://op-man-serv.dcrym.com'
,
};
};
exports
.
successCode
=
1000
;
exports
.
successCode
=
1000
;
exports
.
logoutode
=
-
2
;
exports
.
logoutode
=
-
2
;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiY29uc3RhbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQWEsUUFBQSxNQUFNLEdBQUc7SUFDcEIsaUJBQWlCLEVBQUUsOENBQThDO0lBQ2pFLHFCQUFxQixFQUFFLGtEQUFrRDtJQUN6RSxtQkFBbUIsRUFBRSwyQ0FBMkM7SUFDaEUsZUFBZSxFQUFFLDRDQUE0QztDQUM5RCxDQUFDO0FBQ1csUUFBQSxPQUFPLEdBQUc7SUFDckIsaUJBQWlCLEVBQUUsK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ts
View file @
8d7ba468
...
@@ -3,18 +3,21 @@ export const devUrl = {
...
@@ -3,18 +3,21 @@ export const devUrl = {
STATISTICS_SERVER_URL
:
'https://ex-dev-dcxy-statistics-manage.168cad.top'
,
STATISTICS_SERVER_URL
:
'https://ex-dev-dcxy-statistics-manage.168cad.top'
,
CUSTOMER_SERVER_URL
:
'https://ex-dev-customer-manage.168cad.top'
,
CUSTOMER_SERVER_URL
:
'https://ex-dev-customer-manage.168cad.top'
,
BASE_SERVER_URL
:
'https://ex-dev-dcxy-base-manage.168cad.top'
,
BASE_SERVER_URL
:
'https://ex-dev-dcxy-base-manage.168cad.top'
,
OPERATOR_SERVER_URL
:
'https://dev-op-man-serv.168cad.top'
,
};
};
export
const
testUrl
=
{
export
const
testUrl
=
{
SYSTEM_SERVER_URL
:
'https://ex-test-dcxy-system-manage.168cad.top'
,
SYSTEM_SERVER_URL
:
'https://ex-test-dcxy-system-manage.168cad.top'
,
STATISTICS_SERVER_URL
:
'https://ex-test-dcxy-statistics-manage.168cad.top'
,
STATISTICS_SERVER_URL
:
'https://ex-test-dcxy-statistics-manage.168cad.top'
,
CUSTOMER_SERVER_URL
:
'https://ex-test-customer-manage.168cad.top'
,
CUSTOMER_SERVER_URL
:
'https://ex-test-customer-manage.168cad.top'
,
BASE_SERVER_URL
:
'https://ex-test-dcxy-base-manage.168cad.top'
,
BASE_SERVER_URL
:
'https://ex-test-dcxy-base-manage.168cad.top'
,
OPERATOR_SERVER_URL
:
'https://test-op-man-serv.168cad.top'
,
};
};
export
const
masterUrl
=
{
export
const
masterUrl
=
{
SYSTEM_SERVER_URL
:
'https://dcxy-system-manage.dcrym.com'
,
SYSTEM_SERVER_URL
:
'https://dcxy-system-manage.dcrym.com'
,
STATISTICS_SERVER_URL
:
'https://dcxy-statistics-manage.dcrym.com'
,
STATISTICS_SERVER_URL
:
'https://dcxy-statistics-manage.dcrym.com'
,
CUSTOMER_SERVER_URL
:
'https://dcxy-customer-manage.dcrym.com'
,
CUSTOMER_SERVER_URL
:
'https://dcxy-customer-manage.dcrym.com'
,
BASE_SERVER_URL
:
'https://dcxy-base-manage.dcrym.com'
,
BASE_SERVER_URL
:
'https://dcxy-base-manage.dcrym.com'
,
OPERATOR_SERVER_URL
:
'https://op-man-serv.dcrym.com'
,
};
};
export
const
successCode
=
1000
;
export
const
successCode
=
1000
;
...
...
miniprogram/custom-tab-bar/index.wxml
View file @
8d7ba468
<!-- custom-tab-bar/index.wxml -->
<!-- custom-tab-bar/index.wxml -->
<cover-view class="custom-tab-bar">
<view class="custom-tab-bar">
<cover-view wx:for="{{listData}}" wx:key="index" class="custom-tab-bar-item {{checked === index?'checked':''}}" data-index="{{index}}" data-path="{{item.pagePath}}" bindtap="clickHandle">
<view wx:for="{{listData}}" wx:key="index" class="custom-tab-bar-item {{checked === index?'checked':''}}" data-index="{{index}}" data-path="{{item.pagePath}}" bindtap="clickHandle">
<cover-image class="custom-tab-bar-icon" src="{{checked === index ? item.selectedIconPath : item.iconPath}}"></cover-image>
<image class="custom-tab-bar-icon" src="{{checked === index ? item.selectedIconPath : item.iconPath}}"></image>
<cover-view>{{item.text}}</cover-view>
<view>{{item.text}}</view>
</cover-view>
</view>
</cover-view>
</view>
\ No newline at end of file
\ No newline at end of file
miniprogram/pages/components/PlatformFeeDialog.wxss
0 → 100644
View file @
8d7ba468
miniprogram/pages/components/PlatformFeeDialog/PlatformFeeDialog.js
0 → 100644
View file @
8d7ba468
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
var
fetch_1
=
require
(
"../../../api/fetch"
);
Component
({
properties
:
{},
data
:
{
showDialog
:
false
,
},
methods
:
{
fetchPlatformFee
:
function
()
{
fetch_1
.
operatorFetch
({
url
:
''
});
},
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGxhdGZvcm1GZWVEaWFsb2cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQbGF0Zm9ybUZlZURpYWxvZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDRDQUFtRDtBQUduRCxTQUFTLENBQUM7SUFJUixVQUFVLEVBQUUsRUFBRTtJQUtkLElBQUksRUFBRTtRQUNKLFVBQVUsRUFBRSxLQUFLO0tBQ2xCO0lBS0QsT0FBTyxFQUFFO1FBQ1AsZ0JBQWdCO1lBQ2QscUJBQWEsQ0FBQztnQkFDWixHQUFHLEVBQUMsRUFBRTthQUNQLENBQUMsQ0FBQTtRQUNKLENBQUM7S0FDRjtDQUNGLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IG9wZXJhdG9yRmV0Y2ggfSBmcm9tIFwiLi4vLi4vLi4vYXBpL2ZldGNoXCI7XG5cbi8vIHBhZ2VzL2NvbXBvbmVudHMvUGxhdGZvcm1GZWVEaWFsb2cvUGxhdGZvcm1GZWVEaWFsb2cuanNcbkNvbXBvbmVudCh7XG4gIC8qKlxuICAgKiDnu4Tku7bnmoTlsZ7mgKfliJfooahcbiAgICovXG4gIHByb3BlcnRpZXM6IHt9LFxuXG4gIC8qKlxuICAgKiDnu4Tku7bnmoTliJ3lp4vmlbDmja5cbiAgICovXG4gIGRhdGE6IHtcbiAgICBzaG93RGlhbG9nOiBmYWxzZSxcbiAgfSxcblxuICAvKipcbiAgICog57uE5Lu255qE5pa55rOV5YiX6KGoXG4gICAqL1xuICBtZXRob2RzOiB7XG4gICAgZmV0Y2hQbGF0Zm9ybUZlZSgpe1xuICAgICAgb3BlcmF0b3JGZXRjaCh7XG4gICAgICAgIHVybDonJ1xuICAgICAgfSlcbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
miniprogram/pages/components/PlatformFeeDialog/PlatformFeeDialog.json
0 → 100644
View file @
8d7ba468
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
miniprogram/pages/components/PlatformFeeDialog/PlatformFeeDialog.ts
0 → 100644
View file @
8d7ba468
import
{
operatorFetch
}
from
"../../../api/fetch"
;
// pages/components/PlatformFeeDialog/PlatformFeeDialog.js
Component
({
/**
* 组件的属性列表
*/
properties
:
{},
/**
* 组件的初始数据
*/
data
:
{
showDialog
:
false
,
},
/**
* 组件的方法列表
*/
methods
:
{
fetchPlatformFee
(){
operatorFetch
({
url
:
''
})
},
},
});
miniprogram/pages/components/PlatformFeeDialog/PlatformFeeDialog.wxml
0 → 100644
View file @
8d7ba468
<!-- pages/components/PlatformFeeDialog/PlatformFeeDialog.wxml -->
<view class="PlatformFeeDialog">
<view class="mask"></view>
<view class="PlatformFeeDialog-body">
<view class="PlatformFeeDialog-content">
<view class="PlatformFeeDialog-header">
<view>尊敬的用户:</view>
<view class="PlatformFeeDialog-headerName">您好!您的平台服务费已生成,为不影响设备正常使用,请在5个工作日内及时缴费,谢谢</view>
</view>
<view class="PlatformFeeDialog-priceInfo">
<view class="PlatformFeeDialog-priceItem">
<view class="PlatformFeeDialog-priceItemLabel">服务费</view>
<view class="PlatformFeeDialog-priceItemPrice">265.23元</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>无需发票</view>
</view>
<view class="PlatformFeeDialog-radio">
<view class="PlatformFeeDialog-radioinput"></view>
<view>普通发票</view>
</view>
<view class="PlatformFeeDialog-radio">
<view class="PlatformFeeDialog-radioinput"></view>
<view>专用发票</view>
</view>
</view>
<view class="PlatformFeeDialog-btnbox">
<button class="PlatformFeeDialog-btn">取消</button>
<button class="PlatformFeeDialog-btn">确认支付</button>
</view>
<view class="PlatformFeeDialog-links">
<view>查看服务费明细</view>
<view>扫码支付 ></view>
</view>
</view>
</view>
<view class="PlatformFeeDialog-content scanPay show">
<view class="PlatformFeeDialog-header">
<view class="PlatformFeeDialog-back">&tl;</view>
<view class="PlatformFeeDialog-countdown">
剩余
<text class="" selectable="false" space="false" decode="false">9分59秒</text>
</view>
</view>
<view class="PlatformFeeDialog-priceInfo">
<view class="PlatformFeeDialog-priceItem">
<view class="PlatformFeeDialog-priceItemLabel">服务费</view>
<view class="PlatformFeeDialog-priceItemPrice">265.23元</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>无需发票</view>
</view>
<view class="PlatformFeeDialog-radio">
<view class="PlatformFeeDialog-radioinput"></view>
<view>普通发票</view>
</view>
<view class="PlatformFeeDialog-radio">
<view class="PlatformFeeDialog-radioinput"></view>
<view>专用发票</view>
</view>
</view>
<view class="PlatformFeeDialog-payQRcode">
<image class="PlatformFeeDialog-payQRcodeImg" src="" mode="aspectFill" lazy-load="false" binderror="" bindload="" />
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
miniprogram/pages/components/PlatformFeeDialog/PlatformFeeDialog.wxss
0 → 100644
View file @
8d7ba468
/* pages/components/PlatformFeeDialog/PlatformFeeDialog.wxss */
.PlatformFeeDialog-body {
display: flex;
}
.PlatformFeeDialog-content {
overflow: hidden;
width: 0;
height: 0;
transition: all 0.48s;
}
.PlatformFeeDialog-content.show {
width: 100%;
height: auto;
}
.PlatformFeeDialog .mask {
position: fixed;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(000, 000, 000, 0.3);
z-index: 5;
}
.PlatformFeeDialog-body {
position: fixed;
top: 200rpx;
left: 56rpx;
width: 638rpx;
background-color: #fff;
border-radius: 40rpx;
z-index: 6;
color: #333;
}
.PlatformFeeDialog-header {
margin: 0 30rpx;
padding: 44rpx 30rpx 32rpx;
font-size: 28rpx;
border-bottom: 1rpx solid #e5e5e5;
}
.PlatformFeeDialog-headerName {
margin-top: 22rpx;
text-indent: 48rpx;
}
.PlatformFeeDialog-priceInfo {
padding: 40rpx 60rpx 60rpx;
}
.PlatformFeeDialog-priceItem {
display: flex;
font-size: 28rpx;
}
.PlatformFeeDialog-priceItem:first-child {
margin-bottom: 24rpx;
}
.PlatformFeeDialog-priceItemLabel {
flex: 1;
}
.PlatformFeeDialog-priceItemPrice {
color: #e24a4a;
}
.PlatformFeeDialog-radiofroup {
margin-top: 20rpx;
display: flex;
justify-content: space-between;
font-size: 28rpx;
}
.PlatformFeeDialog-radio {
display: flex;
align-items: center;
}
.PlatformFeeDialog-radioinput {
width: 28rpx;
height: 28rpx;
border-radius: 50%;
border: 1rpx solid #eee;
margin-right: 10rpx;
}
.PlatformFeeDialog-radioinput.check {
border-color: #6895fe;
background-color: #6895fe;
}
.PlatformFeeDialog-btnbox {
margin-top: 60rpx;
display: flex;
justify-content: space-around;
}
.PlatformFeeDialog-btn {
margin: 0;
height: 98rpx;
line-height: 98rpx;
border-radius: 20rpx;
font-size: 32rpx;
}
.PlatformFeeDialog-links {
margin-top: 40rpx;
display: flex;
justify-content: space-between;
font-size: 24rpx;
color: #6a92ff;
}
.PlatformFeeDialog-content.scanPay .PlatformFeeDialog-header {
display: flex;
justify-content: space-between;
}
.PlatformFeeDialog-payQRcode,
.PlatformFeeDialog-payQRcodeImg {
width: 300rpx;
height: 300rpx;
}
.PlatformFeeDialog-payQRcode {
margin: 40rpx auto;
}
miniprogram/pages/home/home.json
View file @
8d7ba468
{
{
"usingComponents"
:
{
"usingComponents"
:
{
"platform-dialog"
:
"../components/PlatformFeeDialog/PlatformFeeDialog"
,
"price-and-count"
:
"../components/PriceAndCount/PriceAndCount"
,
"price-and-count"
:
"../components/PriceAndCount/PriceAndCount"
,
"service-count"
:
"../components/ServiceCount/ServiceCount"
"service-count"
:
"../components/ServiceCount/ServiceCount"
}
}
...
...
miniprogram/pages/home/home.wxml
View file @
8d7ba468
...
@@ -34,4 +34,6 @@
...
@@ -34,4 +34,6 @@
<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 />
</view>
</view>
\ No newline at end of file
miniprogram/pages/index/index.js
View file @
8d7ba468
...
@@ -38,47 +38,56 @@ Page({
...
@@ -38,47 +38,56 @@ Page({
return
true
;
return
true
;
},
},
tokenLoagin
:
function
()
{
tokenLoagin
:
function
()
{
wx
.
showLoading
({
title
:
'登陆中'
});
wx
.
login
({
fetch_1
.
systemFetch
({
success
:
function
(
res
)
{
url
:
'/login/verifyCode'
,
if
(
res
.
code
)
{
})
var
code_1
=
res
.
code
;
.
then
(
function
(
res
)
{
wx
.
showLoading
({
title
:
'登陆中'
});
console
.
log
(
res
);
fetch_1
.
systemFetch
({
return
{
url
:
'/login/verifyCode'
,
code
:
res
.
data
.
verifyCode
,
})
cookie
:
res
.
header
[
'Set-Cookie'
],
.
then
(
function
(
res
)
{
};
console
.
log
(
res
);
})
return
{
.
then
(
function
(
_a
)
{
code
:
res
.
data
.
verifyCode
,
var
cookie
=
_a
.
cookie
;
cookie
:
res
.
header
[
'Set-Cookie'
],
return
fetch_1
.
systemFetch
({
};
url
:
'/boss/login'
,
})
method
:
'POST'
,
.
then
(
function
(
_a
)
{
header
:
{
var
cookie
=
_a
.
cookie
;
cookie
:
cookie
,
return
fetch_1
.
systemFetch
({
},
url
:
'/boss/login'
,
data
:
{
method
:
'POST'
,
token
:
app
.
globalData
.
token
,
header
:
{
},
cookie
:
cookie
,
});
},
})
data
:
{
.
then
(
function
(
res
)
{
code
:
code_1
,
console
.
log
(
res
);
token
:
app
.
globalData
.
token
,
var
_a
=
res
.
data
,
userInfo
=
_a
.
userInfo
,
userRoles
=
_a
.
userRoles
;
},
app
.
globalData
.
userInfo
=
userInfo
;
});
app
.
globalData
.
userRoles
=
userRoles
;
})
wx
.
hideLoading
();
.
then
(
function
(
res
)
{
wx
.
redirectTo
({
console
.
log
(
res
);
url
:
'/pages/homeAndReport/homeAndReport'
,
var
token
=
res
.
token
,
_a
=
res
.
data
,
userInfo
=
_a
.
userInfo
,
userRoles
=
_a
.
userRoles
;
});
app
.
globalData
.
token
=
token
;
})
app
.
globalData
.
userInfo
=
userInfo
;
.
catch
(
function
(
err
)
{
app
.
globalData
.
userRoles
=
userRoles
;
console
.
log
(
err
);
wx
.
hideLoading
();
wx
.
hideLoading
();
wx
.
redirectTo
({
wx
.
showToast
({
url
:
'/pages/homeAndReport/homeAndReport'
,
title
:
err
.
errMsg
,
});
icon
:
'none'
,
})
});
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
wx
.
hideLoading
();
wx
.
showToast
({
title
:
err
.
errMsg
,
icon
:
'none'
,
});
});
}
},
});
});
},
},
loginHandle
:
function
()
{
loginHandle
:
function
()
{
...
@@ -86,55 +95,69 @@ Page({
...
@@ -86,55 +95,69 @@ Page({
if
(
this
.
validateLoginData
())
{
if
(
this
.
validateLoginData
())
{
var
_a
=
this
.
data
,
account_1
=
_a
.
account
,
pwd_1
=
_a
.
pwd
;
var
_a
=
this
.
data
,
account_1
=
_a
.
account
,
pwd_1
=
_a
.
pwd
;
console
.
log
(
account_1
,
pwd_1
);
console
.
log
(
account_1
,
pwd_1
);
wx
.
showLoading
({
title
:
''
});
wx
.
login
({
fetch_1
.
systemFetch
({
success
:
function
(
res
)
{
url
:
'/login/verifyCode'
,
if
(
res
.
code
)
{
})
var
code_2
=
res
.
code
;
.
then
(
function
(
res
)
{
wx
.
showLoading
({
title
:
''
});
console
.
log
(
res
);
fetch_1
.
systemFetch
({
return
{
url
:
'/login/verifyCode'
,
code
:
res
.
data
.
verifyCode
,
})
cookie
:
res
.
header
[
'Set-Cookie'
],
.
then
(
function
(
res
)
{
};
console
.
log
(
res
);
})
return
{
.
then
(
function
(
_a
)
{
code
:
res
.
data
.
verifyCode
,
var
code
=
_a
.
code
,
cookie
=
_a
.
cookie
;
cookie
:
res
.
header
[
'Set-Cookie'
],
var
mixpwd
=
md5
(
pwd_1
);
};
return
fetch_1
.
systemFetch
({
})
url
:
'/boss/login'
,
.
then
(
function
(
_a
)
{
method
:
'POST'
,
var
vCode
=
_a
.
vCode
,
cookie
=
_a
.
cookie
;
header
:
{
var
mixpwd
=
md5
(
pwd_1
);
cookie
:
cookie
,
return
fetch_1
.
systemFetch
({
},
url
:
'/boss/login'
,
data
:
{
method
:
'POST'
,
account
:
account_1
,
header
:
{
pwd
:
mixpwd
,
cookie
:
cookie
,
varifyCode
:
code
,
},
},
data
:
{
});
code
:
code_2
,
})
account
:
account_1
,
.
then
(
function
(
res
)
{
pwd
:
mixpwd
,
console
.
log
(
res
);
varifyCode
:
vCode
,
var
token
=
res
.
token
,
_a
=
res
.
data
,
userInfo
=
_a
.
userInfo
,
userRoles
=
_a
.
userRoles
;
},
app
.
globalData
.
token
=
token
;
});
app
.
globalData
.
userInfo
=
userInfo
;
})
app
.
globalData
.
userRoles
=
userRoles
;
.
then
(
function
(
res
)
{
try
{
console
.
log
(
res
);
wx
.
setStorageSync
(
'token'
,
token
);
var
token
=
res
.
token
,
_a
=
res
.
data
,
userInfo
=
_a
.
userInfo
,
userRoles
=
_a
.
userRoles
;
}
app
.
globalData
.
token
=
token
;
catch
(
error
)
{
}
app
.
globalData
.
userInfo
=
userInfo
;
wx
.
hideLoading
();
app
.
globalData
.
userRoles
=
userRoles
;
wx
.
redirectTo
({
try
{
url
:
'/pages/homeAndReport/homeAndReport'
,
wx
.
setStorageSync
(
'token'
,
token
);
});
}
})
catch
(
error
)
{
}
.
catch
(
function
(
err
)
{
wx
.
hideLoading
();
console
.
log
(
err
);
wx
.
redirectTo
({
wx
.
hideLoading
();
url
:
'/pages/homeAndReport/homeAndReport'
,
wx
.
showToast
({
});
title
:
err
.
errMsg
,
})
icon
:
'none'
,
.
catch
(
function
(
err
)
{
});
console
.
log
(
err
);
wx
.
hideLoading
();
wx
.
showToast
({
title
:
err
.
errMsg
,
icon
:
'none'
,
});
});
}
else
{
wx
.
showToast
({
title
:
'登录获取code失败'
,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25vbmUnLFxuICAgICAgfSk7XG4gICAgICByZXR1cm47XG4gICAgfVxuICAgIGlmICghcHdkKSB7XG4gICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICB0aXRsZTogJ+ivt+i+k+WFpeWvhueggScsXG4gICAgICAgIGljb246ICdub25lJyxcbiAgICAgIH0pO1xuICAgICAgcmV0dXJuO1xuICAgIH1cbiAgICByZXR1cm4gdHJ1ZTtcbiAgfSxcbiAgdG9rZW5Mb2FnaW4oKSB7XG4gICAgd3guc2hvd0xvYWRpbmcoeyB0aXRsZTogJ+eZu+mZhuS4rScgfSk7XG4gICAgc3lzdGVtRmV0Y2goe1xuICAgICAgdXJsOiAnL2xvZ2luL3ZlcmlmeUNvZGUnLFxuICAgIH0pXG4gICAgICAudGhlbigocmVzOiB3eC5SZXF1ZXN0U3VjY2Vzc0NhbGxiYWNrUmVzdWx0KSA9PiB7XG4gICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgY29kZTogcmVzLmRhdGEudmVyaWZ5Q29kZSxcbiAgICAgICAgICBjb29raWU6IHJlcy5oZWFkZXJbJ1NldC1Db29raWUnXSxcbiAgICAgICAgfTtcbiAgICAgIH0pXG4gICAgICAudGhlbigoeyBjb29raWUgfTogeyBjb2RlOiBzdHJpbmc7IGNvb2tpZTogc3RyaW5nIH0pID0+XG4gICAgICAgIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICB1cmw6ICcvYm9zcy9sb2dpbicsXG4gICAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgICAgaGVhZGVyOiB7XG4gICAgICAgICAgICBjb29raWU6IGNvb2tpZSxcbiAgICAgICAgICB9LFxuICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgIHRva2VuOiBhcHAuZ2xvYmFsRGF0YS50b2tlbixcbiAgICAgICAgICB9LFxuICAgICAgICB9KSxcbiAgICAgIClcbiAgICAgIC50aGVuKHJlcyA9P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kgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgIGNvZGU6IHJlcy5kYXRhLnZlcmlmeUNvZGUsXG4gICAgICAgICAgICBjb29raWU6IHJlcy5oZWFkZXJbJ1NldC1Db29raWUnXSxcbiAgICAgICAgICB9O1xuICAgICAgICB9KVxuICAgICAgICAudGhlbigoeyBjb2RlLCBjb29raWUgfTogeyBjb2RlOiBzdHJpbmc7IGNvb2tpZTogc3RyaW5nIH0pID0+IHtcbiAgICAgICAgICBsZXQgbWl4cHdkID0gbWQ1KHB3ZCk7XG4gICAgICAgICAgcmV0dXJuIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgIHVybDogJy9ib3NzL2xvZ2luJyxcbiAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgaGVhZGVyOiB7XG4gICAgICAgICAgICAgIGNvb2tpZTogY29va2llLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgYWNjb3VudCxcbiAgICAgICAgICAgICAgcHdkOiBtaXhwd2QsXG4gICAgICAgICAgICAgIHZhcmlmeUNvZGU6IGNvZGUsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0pO1xuICAgICAgICB9KVxuICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgY29uc3Qge1xuICAgICAgICAgICAgdG9rZW4sXG4gICAgICAgICAgICBkYXRhOiB7IHVzZXJJbmZvLCB1c2VyUm9sZXMgfSxcbiAgICAgICAgICB9ID0gcmVzO1xuICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnRva2VuID0gdG9rZW47XG4gICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlckluZm8gPSB1c2VySW5mbztcbiAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS51c2VyUm9sZX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tcbiAgfSxcbiAgdG9rZW5Mb2FnaW4oKSB7XG4gICAgd3gubG9naW4oe1xuICAgICAgc3VjY2VzczogcmVzID0+IHtcbiAgICAgICAgaWYgKHJlcy5jb2RlKSB7XG4gICAgICAgICAgY29uc3QgY29kZSA9IHJlcy5jb2RlO1xuXG4gICAgICAgICAgd3guc2hvd0xvYWRpbmcoeyB0aXRsZTogJ+eZu+mZhuS4rScgfSk7XG4gICAgICAgICAgc3lzdGVtRmV0Y2goe1xuICAgICAgICAgICAgdXJsOiAnL2xvZ2luL3ZlcmlmeUNvZGUnLFxuICAgICAgICAgIH0pXG4gICAgICAgICAgICAudGhlbigocmVzOiB3eC5SZXF1ZXN0U3VjY2Vzc0NhbGxiYWNrUmVzdWx0KSA9PiB7XG4gICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgY29kZTogcmVzLmRhdGEudmVyaWZ5Q29kZSxcbiAgICAgICAgICAgICAgICBjb29raWU6IHJlcy5oZWFkZXJbJ1NldC1Db29raWUnXSxcbiAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAudGhlbigoeyBjb29raWUgfTogeyBjb2RlOiBzdHJpbmc7IGNvb2tpZTogc3RyaW5nIH0pID0+XG4gICAgICAgICAgICAgIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgICAgICB1cmw6ICcvYm9zcy9sb2dpbicsXG4gICAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgICAgICAgICAgaGVhZGVyOiB7XG4gICAgICAgICAgICAgICAgICBjb29raWU6IGNvb2tpZSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICAgIGNvZGUsXG4gICAgICAgICAgICAgICAgICB0b2tlbjogYXBwLmdsb2JhbERhdGEudG9rZW4sXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICApXG4gICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICBjb25zdCB7XG4gICAgICAgICAgICAgICAgdG9rZW4sXG4gICAgICAgICAgICAgICAgZGF0YTogeyB1c2VySW5mbywgdXNlclJvbGVzIH0sXG4gICAgICAgICAgICAgIH0gPSByZXM7XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnRva2VuID0gdG9rZW47XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJJbmZvID0gdXNlckluZm87XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJSb2xlcyA9IHVzZXJSb2xlcztcbiAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgd3gucmVkaXJlY3RUbyh7XG4gICAgICAgICAgICAgICAgdXJsOiAnL3BhZ2VzL2hvbWVBbmRSZXBvcnQvaG9tZUFuZFJlcG9ydCcsXG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIuZXJyTXNnLFxuICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICB9KTtcbiAgfSxcbiAgbG9naW5IYW5kbGUoKSB7XG4gICAgY29uc29sZS5sb2coYXBwLmdsb2JhbERhdGEpO1xuICAgIGlmICh0aGlzLnZhbGlkYXRlTG9naW5EYXRhKCkpIHtcbiAgICAgIGNvbnN0IHsgYWNjb3VudCwgcHdkIH0gPSB0aGlzLmRhdGE7XG4gICAgICBjb25zb2xlLmxvZyhhY2NvdW50LCBwd2QpO1xuICAgICAgd3gubG9naW4oe1xuICAgICAgICBzdWNjZXNzOiByZXMgPT4ge1xuICAgICAgICAgIGlmIChyZXMuY29kZSkge1xuICAgICAgICAgICAgY29uc3QgY29kZSA9IHJlcy5jb2RlO1xuICAgICAgICAgICAgd3guc2hvd0xvYWRpbmcoeyB0aXRsZTogJycgfSk7XG4gICAgICAgICAgICBzeXN0ZW1GZXRjaCh7XG4gICAgICAgICAgICAgIHVybDogJy9sb2dpbi92ZXJpZnlDb2RlJyxcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgIC50aGVuKChyZXM6IHd4LlJlcXVlc3RTdWNjZXNzQ2FsbGJhY2tSZXN1bHQpID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgICBjb2RlOiByZXMuZGF0YS52ZXJpZnlDb2RlLFxuICAgICAgICAgICAgICAgICAgY29va2llOiByZXMuaGVhZGVyWydTZXQtQ29va2llJ10sXG4gICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLnRoZW4oKHsgdkNvZGUsIGNvb2tpZSB9OiB7IHZDb2RlOiBzdHJpbmc7IGNvb2tpZTogc3RyaW5nIH0pID0+IHtcbiAgICAgICAgICAgICAgICBsZXQgbWl4cHdkID0gbWQ1KHB3ZCk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgICAgICAgIHVybDogJy9ib3NzL2xvZ2luJyxcbiAgICAgICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgICAgICAgaGVhZGVyOiB7XG4gICAgICAgICAgICAgICAgICAgIGNvb2tpZTogY29va2llLFxuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICAgICAgY29kZSxcbiAgICAgICAgICAgICAgICAgICAgYWNjb3VudCxcbiAgICAgICAgICAgICAgICAgICAgcHdkOiBtaXhwd2QsXG4gICAgICAgICAgICAgICAgICAgIHZhcmlmeUNvZGU6IHZDb2RlLFxuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHtcbiAgICAgICAgICAgICAgICAgIHRva2VuLFxuICAgICAgICAgICAgICAgICAgZGF0YTogeyB1c2VySW5mbywgdXNlclJvbGVzIH0sXG4gICAgICAgICAgICAgICAgfSA9IHJlcztcbiAgICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS50b2tlbiA9IHRva2VuO1xuICAgICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJJbmZvID0gdXNlckluZm87XG4gICAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlclJvbGVzID0gdXNlclJvbGVzO1xuICAgICAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgICB3eC5zZXRTdG9yYWdlU3luYygndG9rZW4nLCB0b2tlbik7XG4gICAgICAgICAgICAgICAgfSBjYXRjaCAoZXJyb3IpIHt9XG4gICAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgICB3eC5yZWRpcmVjdFRvKHtcbiAgICAgICAgICAgICAgICAgIHVybDogJy9wYWdlcy9ob21lQW5kUmVwb3J0L2hvbWVBbmRSZXBvcnQnLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAuY2F0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newline at end of file
\ No newline at end of file
miniprogram/pages/index/index.ts
View file @
8d7ba468
...
@@ -40,106 +40,130 @@ Page({
...
@@ -40,106 +40,130 @@ Page({
return
true
;
return
true
;
},
},
tokenLoagin
()
{
tokenLoagin
()
{
wx
.
showLoading
({
title
:
'登陆中'
});
wx
.
login
({
systemFetch
({
success
:
res
=>
{
url
:
'/login/verifyCode'
,
if
(
res
.
code
)
{
})
const
code
=
res
.
code
;
.
then
((
res
:
wx
.
RequestSuccessCallbackResult
)
=>
{
console
.
log
(
res
);
wx
.
showLoading
({
title
:
'登陆中'
});
return
{
systemFetch
({
code
:
res
.
data
.
verifyCode
,
url
:
'/login/verifyCode'
,
cookie
:
res
.
header
[
'Set-Cookie'
],
})
};
.
then
((
res
:
wx
.
RequestSuccessCallbackResult
)
=>
{
})
console
.
log
(
res
);
.
then
(({
cookie
}:
{
code
:
string
;
cookie
:
string
})
=>
return
{
systemFetch
({
code
:
res
.
data
.
verifyCode
,
url
:
'/boss/login'
,
cookie
:
res
.
header
[
'Set-Cookie'
],
method
:
'POST'
,
};
header
:
{
})
cookie
:
cookie
,
.
then
(({
cookie
}:
{
code
:
string
;
cookie
:
string
})
=>
},
systemFetch
({
data
:
{
url
:
'/boss/login'
,
token
:
app
.
globalData
.
token
,
method
:
'POST'
,
},
header
:
{
}),
cookie
:
cookie
,
)
},
.
then
(
res
=>
{
data
:
{
console
.
log
(
res
);
code
,
const
{
token
:
app
.
globalData
.
token
,
data
:
{
userInfo
,
userRoles
},
},
}
=
res
;
}),
app
.
globalData
.
userInfo
=
userInfo
;
)
app
.
globalData
.
userRoles
=
userRoles
;
.
then
(
res
=>
{
wx
.
hideLoading
();
console
.
log
(
res
);
wx
.
redirectTo
({
const
{
url
:
'/pages/homeAndReport/homeAndReport'
,
token
,
});
data
:
{
userInfo
,
userRoles
},
})
}
=
res
;
.
catch
(
err
=>
{
app
.
globalData
.
token
=
token
;
console
.
log
(
err
);
app
.
globalData
.
userInfo
=
userInfo
;
wx
.
hideLoading
();
app
.
globalData
.
userRoles
=
userRoles
;
wx
.
showToast
({
wx
.
hideLoading
();
title
:
err
.
errMsg
,
wx
.
redirectTo
({
icon
:
'none'
,
url
:
'/pages/homeAndReport/homeAndReport'
,
});
});
});
})
.
catch
(
err
=>
{
console
.
log
(
err
);
wx
.
hideLoading
();
wx
.
showToast
({
title
:
err
.
errMsg
,
icon
:
'none'
,
});
});
}
},
});
},
},
loginHandle
()
{
loginHandle
()
{
console
.
log
(
app
.
globalData
);
console
.
log
(
app
.
globalData
);
if
(
this
.
validateLoginData
())
{
if
(
this
.
validateLoginData
())
{
const
{
account
,
pwd
}
=
this
.
data
;
const
{
account
,
pwd
}
=
this
.
data
;
console
.
log
(
account
,
pwd
);
console
.
log
(
account
,
pwd
);
wx
.
showLoading
({
title
:
''
});
wx
.
login
({
systemFetch
({
success
:
res
=>
{
url
:
'/login/verifyCode'
,
if
(
res
.
code
)
{
})
const
code
=
res
.
code
;
.
then
((
res
:
wx
.
RequestSuccessCallbackResult
)
=>
{
wx
.
showLoading
({
title
:
''
});
console
.
log
(
res
);
systemFetch
({
return
{
url
:
'/login/verifyCode'
,
code
:
res
.
data
.
verifyCode
,
})
cookie
:
res
.
header
[
'Set-Cookie'
],
.
then
((
res
:
wx
.
RequestSuccessCallbackResult
)
=>
{
};
console
.
log
(
res
);
})
return
{
.
then
(({
code
,
cookie
}:
{
code
:
string
;
cookie
:
string
})
=>
{
code
:
res
.
data
.
verifyCode
,
let
mixpwd
=
md5
(
pwd
);
cookie
:
res
.
header
[
'Set-Cookie'
],
return
systemFetch
({
};
url
:
'/boss/login'
,
})
method
:
'POST'
,
.
then
(({
vCode
,
cookie
}:
{
vCode
:
string
;
cookie
:
string
})
=>
{
header
:
{
let
mixpwd
=
md5
(
pwd
);
cookie
:
cookie
,
return
systemFetch
({
},
url
:
'/boss/login'
,
data
:
{
method
:
'POST'
,
account
,
header
:
{
pwd
:
mixpwd
,
cookie
:
cookie
,
varifyCode
:
code
,
},
},
data
:
{
});
code
,
})
account
,
.
then
(
res
=>
{
pwd
:
mixpwd
,
console
.
log
(
res
);
varifyCode
:
vCode
,
const
{
},
token
,
});
data
:
{
userInfo
,
userRoles
},
})
}
=
res
;
.
then
(
res
=>
{
app
.
globalData
.
token
=
token
;
console
.
log
(
res
);
app
.
globalData
.
userInfo
=
userInfo
;
const
{
app
.
globalData
.
userRoles
=
userRoles
;
token
,
try
{
data
:
{
userInfo
,
userRoles
},
wx
.
setStorageSync
(
'token'
,
token
);
}
=
res
;
}
catch
(
error
)
{}
app
.
globalData
.
token
=
token
;
wx
.
hideLoading
();
app
.
globalData
.
userInfo
=
userInfo
;
wx
.
redirectTo
({
app
.
globalData
.
userRoles
=
userRoles
;
url
:
'/pages/homeAndReport/homeAndReport'
,
try
{
});
wx
.
setStorageSync
(
'token'
,
token
);
})
}
catch
(
error
)
{}
.
catch
(
err
=>
{
wx
.
hideLoading
();
console
.
log
(
err
);
wx
.
redirectTo
({
wx
.
hideLoading
();
url
:
'/pages/homeAndReport/homeAndReport'
,
wx
.
showToast
({
});
title
:
err
.
errMsg
,
})
icon
:
'none'
,
.
catch
(
err
=>
{
});
console
.
log
(
err
);
});
wx
.
hideLoading
();
wx
.
showToast
({
title
:
err
.
errMsg
,
icon
:
'none'
,
});
});
}
else
{
wx
.
showToast
({
title
:
'登录获取code失败'
,
icon
:
'none'
,
});
}
},
});
}
}
// fetch()
// fetch()
// wx.redirectTo({
// wx.redirectTo({
...
...
miniprogram/pages/platformFee/platformFee.js
0 → 100644
View file @
8d7ba468
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
var
fetch_1
=
require
(
"../../api/fetch"
);
Page
({
data
:
{
year
:
''
,
dataList
:
[],
},
onLoad
:
function
(
options
)
{
var
year
=
new
Date
().
getFullYear
();
console
.
log
(
year
);
this
.
fetchList
({
year
:
year
,
});
this
.
setData
({
year
:
year
,
});
},
fetchList
:
function
(
entity
)
{
var
_this
=
this
;
return
fetch_1
.
statisticsFetch
({
url
:
'/dcxy/platformFee/operate/areas/monthly'
,
data
:
entity
,
})
.
then
(
function
(
res
)
{
_this
.
setData
({
dataList
:
res
.
data
,
});
})
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
});
},
yearChangeHandle
:
function
(
e
)
{
console
.
log
(
e
);
var
value
=
e
.
detail
.
value
;
this
.
fetchList
({
year
:
value
,
});
},
goRecordPage
:
function
()
{
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhdGZvcm1GZWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJwbGF0Zm9ybUZlZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlDQUFrRDtBQUdsRCxJQUFJLENBQUM7SUFJSCxJQUFJLEVBQUU7UUFDSixJQUFJLEVBQUUsRUFBRTtRQUNSLFFBQVEsRUFBRSxFQUFFO0tBQ2I7SUFLRCxNQUFNLEVBQUUsVUFBUyxPQUFPO1FBQ3RCLElBQUksSUFBSSxHQUFHLElBQUksSUFBSSxFQUFFLENBQUMsV0FBVyxFQUFFLENBQUM7UUFDcEMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUNsQixJQUFJLENBQUMsU0FBUyxDQUFDO1lBQ2IsSUFBSSxNQUFBO1NBQ0wsQ0FBQyxDQUFDO1FBQ0gsSUFBSSxDQUFDLE9BQVEsQ0FBQztZQUNaLElBQUksTUFBQTtTQUNMLENBQUMsQ0FBQztJQUNMLENBQUM7SUFDRCxTQUFTLFlBQUMsTUFBTTtRQUFoQixpQkFhQztRQVpDLE1BQU0sQ0FBQyx1QkFBZSxDQUFDO1lBQ3JCLEdBQUcsRUFBRSx5Q0FBeUM7WUFDOUMsSUFBSSxFQUFFLE1BQU07U0FDYixDQUFDO2FBQ0MsSUFBSSxDQUFDLFVBQUEsR0FBRztZQUNQLEtBQUksQ0FBQyxPQUFRLENBQU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ZWFyLFxuICAgIH0pO1xuICB9LFxuICBmZXRjaExpc3QoZW50aXR5KSB7XG4gICAgcmV0dXJuIHN0YXRpc3RpY3NGZXRjaCh7XG4gICAgICB1cmw6ICcvZGN4eS9wbGF0Zm9ybUZlZS9vcGVyYXRlL2FyZWFzL21vbnRobHknLFxuICAgICAgZGF0YTogZW50aXR5LFxuICAgIH0pXG4gICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgICAgICBkYXRhTGlzdDogcmVzLmRhdGEsXG4gICAgICAgIH0pO1xuICAgICAgfSlcbiAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgfSk7XG4gIH0sXG4gIHllYXJDaGFuZ2VIYW5kbGUoZSkge1xuICAgIGNvbnNvbGUubG9nKGUpO1xuICAgIGNvbnN0IHsgdmFsdWUgfSA9IGUuZGV0YWlsO1xuICAgIHRoaXMuZmV0Y2hMaXN0KHtcbiAgICAgIHllYXI6IHZhbHVlLFxuICAgIH0pO1xuICB9LFxuICBnb1JlY29yZFBhZ2UoKSB7fSxcbn0pO1xuIl19
\ No newline at end of file
miniprogram/pages/platformFee/platformFee.json
0 → 100644
View file @
8d7ba468
{
"navigationBarTitleText"
:
"服务费明细"
,
"usingComponents"
:
{
"c-select"
:
"../components/Select/Select"
}
}
miniprogram/pages/platformFee/platformFee.ts
0 → 100644
View file @
8d7ba468
import
{
statisticsFetch
}
from
'../../api/fetch'
;
// miniprogram/pages/platformFee/platformFee.js
Page
({
/**
* 页面的初始数据
*/
data
:
{
year
:
''
,
dataList
:
[],
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
let
year
=
new
Date
().
getFullYear
();
console
.
log
(
year
);
this
.
fetchList
({
year
,
});
this
.
setData
!
({
year
,
});
},
fetchList
(
entity
)
{
return
statisticsFetch
({
url
:
'/dcxy/platformFee/operate/areas/monthly'
,
data
:
entity
,
})
.
then
(
res
=>
{
this
.
setData
!
({
dataList
:
res
.
data
,
});
})
.
catch
(
err
=>
{
console
.
log
(
err
);
});
},
yearChangeHandle
(
e
)
{
console
.
log
(
e
);
const
{
value
}
=
e
.
detail
;
this
.
fetchList
({
year
:
value
,
});
},
goRecordPage
()
{},
});
miniprogram/pages/platformFee/platformFee.wxml
0 → 100644
View file @
8d7ba468
<!-- miniprogram/pages/platformFee/platformFee.wxml -->
<view class="platformFee">
<view class="platformFee-filter">
<view class="platformFee-area">
<c-select mode="date" fields="year" value="{{year}}" bindchange="yearChangeHandle" />
</view>
<view class="platformFee-time">缴费记录</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>
<view class="platformFee-canvas">
<user-grouth-chart dataList="{{growthList}}" month="{{month}}" />
</view>
</view>
<view class="platformFee-block">
<view class="platformFee-title">
<view class="platformFee-title-color user"></view>
<view class="platformFee-title-text">各校区服务费(9月)</view>
<view class="platformFee-title-sum">合计:1,800.00</view>
</view>
<view class="platformFee-areaList">
<view class="platformFee-areaItem">
<view class="platformFee-areaItem-index">1</view>
<view class="platformFee-areaItem-name">多彩温江</view>
<view class="platformFee-areaItem-price">1,000.00</view>
</view>
<view class="platformFee-areaItem">
<view class="platformFee-areaItem-index">2</view>
<view class="platformFee-areaItem-name">多彩温江</view>
<view class="platformFee-areaItem-price">1,000.00</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
miniprogram/pages/platformFee/platformFee.wxss
0 → 100644
View file @
8d7ba468
/* miniprogram/pages/platformFee/platformFee.wxss */
.platformFee-block {
box-sizing: border-box;
width: 100%;
padding: 0 40rpx;
}
.platformFee-title {
width: 100%;
display: flex;
align-items: center;
padding: 50rpx 0 20rpx;
}
.platformFee-filter {
display: flex;
box-sizing: border-box;
width: 100%;
padding: 50rpx 40rpx 0;
justify-content: space-between;
align-items: center;
}
.platformFee-area {
width: 250rpx;
}
.platformFee-time {
color: #6a92ff;
font-size: 28rpx;
}
.platformFee-title-color {
width: 12rpx;
height: 12rpx;
margin-right: 12rpx;
border-radius: 50%;
}
.platformFee-title-text {
flex: 1;
}
.platformFee-title-sum {
font-size: 28rpx;
color: #fe6868;
}
.platformFee-title-color.user {
background-color: #6895ef;
}
.platformFee-canvas {
width: 660rpx;
height: 350rpx;
}
.platformFee-areaList {
padding-left: 22rpx;
}
.platformFee-areaItem {
display: flex;
align-items: center;
padding: 28rpx 0;
border-bottom: 1rpx solid #eee;
font-size: 28rpx;
color: #333;
}
.platformFee-areaItem:last-child {
border-width: 0;
}
.platformFee-areaItem-index {
background-color: #dedede;
width: 28rpx;
height: 28rpx;
line-height: 28rpx;
border-radius: 50%;
margin-right: 24rpx;
font-size: 22rpx;
text-align: center;
}
.platformFee-areaItem-name {
flex: 1;
}
miniprogram/pages/platformFeeRecord/platformFeeRecord.js
0 → 100644
View file @
8d7ba468
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
var
fetch_1
=
require
(
"../../api/fetch"
);
Page
({
data
:
{
pageNum
:
1
,
pageSize
:
10
,
dataList
:
[],
},
onLoad
:
function
(
options
)
{
var
_this
=
this
;
this
.
fetchList
({
pageNum
:
this
.
data
.
pageNum
,
pageSize
:
this
.
data
.
pageSize
,
}).
then
(
function
(
res
)
{
if
(
res
.
data
&&
res
.
data
.
length
)
{
_this
.
setData
({
dataList
:
res
.
data
,
});
}
});
},
fetchList
:
function
(
entity
)
{
return
fetch_1
.
operatorFetch
({
url
:
'/operateBalance/rechages'
,
data
:
entity
,
});
},
getMoreListItem
:
function
()
{
var
_this
=
this
;
this
.
fetchList
({
pageNum
:
this
.
data
.
pageNum
+
1
,
pageSize
:
this
.
data
.
pageSize
,
})
.
then
(
function
(
res
)
{
if
(
res
.
data
&&
res
.
data
.
length
)
{
_this
.
setData
({
dataList
:
_this
.
data
.
dataList
.
concat
(
res
.
data
),
pageNum
:
_this
.
data
.
pageNum
+
1
,
});
}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ICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgIH0pO1xuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
miniprogram/pages/platformFeeRecord/platformFeeRecord.json
0 → 100644
View file @
8d7ba468
{
"navigationBarTitleText"
:
"缴费记录"
,
"usingComponents"
:
{}
}
\ No newline at end of file
miniprogram/pages/platformFeeRecord/platformFeeRecord.ts
0 → 100644
View file @
8d7ba468
import
{
operatorFetch
}
from
'../../api/fetch'
;
// miniprogram/pages/platformFeeRecord/platformFeeRecord.js
Page
({
/**
* 页面的初始数据
*/
data
:
{
pageNum
:
1
,
pageSize
:
10
,
dataList
:
[],
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
this
.
fetchList
({
pageNum
:
this
.
data
.
pageNum
,
pageSize
:
this
.
data
.
pageSize
,
}).
then
(
res
=>
{
if
(
res
.
data
&&
res
.
data
.
length
)
{
this
.
setData
!
({
dataList
:
res
.
data
,
});
}
});
},
fetchList
(
entity
)
{
return
operatorFetch
({
url
:
'/operateBalance/rechages'
,
data
:
entity
,
});
},
getMoreListItem
()
{
this
.
fetchList
({
pageNum
:
this
.
data
.
pageNum
+
1
,
pageSize
:
this
.
data
.
pageSize
,
})
.
then
(
res
=>
{
if
(
res
.
data
&&
res
.
data
.
length
)
{
this
.
setData
!
({
dataList
:
[...
this
.
data
.
dataList
,
...
res
.
data
],
pageNum
:
this
.
data
.
pageNum
+
1
,
});
}
})
.
catch
(
err
=>
{
console
.
log
(
err
);
});
},
});
miniprogram/pages/platformFeeRecord/platformFeeRecord.wxml
0 → 100644
View file @
8d7ba468
<!-- miniprogram/pages/platformFeeRecord/platformFeeRecord.wxml -->
<view class="platformFeeRecord">
<scroll-view class="platformFeeRecord-list" scroll-y bindscrolltolower="getMoreListItem">
<view class="platformFeeRecord-item" wx:for="{{dataList}}" wx:key="{{item.id}}">
<view class="platformFeeRecord-itemTitle">
<view class="platformFeeRecord-itemTitle-text">
{{item.rechargeType==='2'?'微信缴费':item.rechargeType==='3'?'支付宝缴费':item.rechargeType==='4'?'服务费退回':''}}-{{item.billType==='0'?'不要发票':item.billType==='1'?'普通发票':item.billType==='3'?'专用发票':''}}
</view>
<view class="platformFeeRecord-itemTitle-price">{{item.rechargeMoney}}</view>
</view>
<view class="platformFeeRecord-col">
<view class="platformFeeRecord-label">支付时间</view>
<view class="platformFeeRecord-value">{{item.updateAt}}</view>
</view>
<view class="platformFeeRecord-col">
<view class="platformFeeRecord-label">交易单号</view>
<view class="platformFeeRecord-value">{{item.orderNum}}</view>
</view>
</view>
</scroll-view>
<!-- <view class="platformFeeRecord-item">
<view class="platformFeeRecord-itemTitle">
<view class="platformFeeRecord-itemTitle-text">微信缴费-专用发票</view>
<view class="platformFeeRecord-itemTitle-price">1,000.00</view>
</view>
<view class="platformFeeRecord-col">
<view class="platformFeeRecord-label">支付时间</view>
<view class="platformFeeRecord-value">2019-12-30 14:23:23</view>
</view>
<view class="platformFeeRecord-col">
<view class="platformFeeRecord-label">交易单号</view>
<view class="platformFeeRecord-value">kjbfsaisd</view>
</view>
</view> -->
</view>
\ No newline at end of file
miniprogram/pages/platformFeeRecord/platformFeeRecord.wxss
0 → 100644
View file @
8d7ba468
/* miniprogram/pages/platformFeeRecord/platformFeeRecord.wxss */
page,
.platformFeeRecord {
width: 100%;
height: 100%;
}
.platformFeeRecord-list {
box-sizing: border-box;
width: 100%;
height: 100%;
padding: 0 40rpx;
}
.platformFeeRecord-item {
border-bottom: 1rpx solid #e5e5e5;
padding: 44rpx 0;
}
.platformFeeRecord-itemTitle {
display: flex;
font-size: 28rpx;
color: #333;
margin-bottom: 20rpx;
}
.platformFeeRecord-itemTitle-text {
flex: 1;
}
.platformFeeRecord-col {
display: flex;
font-size: 28rpx;
color: #666;
margin-bottom: 16rpx;
justify-content: space-between;
}
.platformFeeRecord-col:last-child {
margin-bottom: 0;
}
miniprogram/pages/report/report.js
View file @
8d7ba468
"use strict"
;
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
var
fetch_1
=
require
(
"../../api/fetch"
);
var
app
=
getApp
();
var
app
=
getApp
();
Component
({
Component
({
lifetimes
:
{
lifetimes
:
{
...
@@ -8,6 +9,7 @@ Component({
...
@@ -8,6 +9,7 @@ Component({
this
.
setData
({
this
.
setData
({
userInfo
:
app
.
globalData
.
userInfo
,
userInfo
:
app
.
globalData
.
userInfo
,
});
});
this
.
fetchPlatformFee
();
},
},
},
},
data
:
{
data
:
{
...
@@ -33,6 +35,20 @@ Component({
...
@@ -33,6 +35,20 @@ Component({
},
},
],
],
account
:
0
,
account
:
0
,
platformFee
:
'0.00'
,
},
methods
:
{
fetchPlatformFee
:
function
()
{
fetch_1
.
operatorFetch
({
url
:
'/operateBalance/unpaidMoney'
,
})
.
then
(
function
(
res
)
{
console
.
log
(
res
);
})
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
});
},
},
},
});
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVwb3J0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBR0EsSUFBTSxHQUFHLEdBQUcsTUFBTSxFQUFVLENBQUM7QUFDN0IsU0FBUyxDQUFDO0lBQ1IsU0FBUyxFQUFFO1FBQ1QsUUFBUTtZQUNOLE9BQU8sQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLFVBQVUsQ0FBQyxRQUFRLENBQUMsQ0FBQztZQUNyQyxJQUFJLENBQUMsT0FBUSxDQUFDO2dCQUNaLFFBQVEsRUFBRSxHQUFHLENBQUMsVUFBVSxDQUFDLFFBQVE7YUFDbEMsQ0FBQyxDQUFDO1FBQ0wsQ0FBQztLQUNGO0lBSUQsSUFBSSxFQUFFO1FBQ0osUUFB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AgICAgICB9KTtcbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
\ No newline at end of file
miniprogram/pages/report/report.ts
View file @
8d7ba468
import
{
IMyApp
}
from
'../../app'
;
import
{
IMyApp
}
from
'../../app'
;
import
{
operatorFetch
}
from
'../../api/fetch'
;
// miniprogram/pages/report/report.js
// miniprogram/pages/report/report.js
const
app
=
getApp
<
IMyApp
>
();
const
app
=
getApp
<
IMyApp
>
();
...
@@ -9,6 +10,7 @@ Component({
...
@@ -9,6 +10,7 @@ Component({
this
.
setData
!
({
this
.
setData
!
({
userInfo
:
app
.
globalData
.
userInfo
,
userInfo
:
app
.
globalData
.
userInfo
,
});
});
this
.
fetchPlatformFee
();
},
},
},
},
/**
/**
...
@@ -57,5 +59,19 @@ Component({
...
@@ -57,5 +59,19 @@ Component({
// {},
// {},
],
],
account
:
0
,
account
:
0
,
platformFee
:
'0.00'
,
},
methods
:
{
fetchPlatformFee
()
{
operatorFetch
({
url
:
'/operateBalance/unpaidMoney'
,
})
.
then
(
res
=>
{
console
.
log
(
res
);
})
.
catch
(
err
=>
{
console
.
log
(
err
);
});
},
},
},
});
});
miniprogram/pages/report/report.wxml
View file @
8d7ba468
...
@@ -24,6 +24,13 @@
...
@@ -24,6 +24,13 @@
<view class="report-header-accountItemValue">10000</view>
<view class="report-header-accountItemValue">10000</view>
</view>
</view>
</view> -->
</view> -->
<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>
</view>
<button class="report-header-platform-btn" wx:if="{{platformFee>0}}">缴费</button>
</view>
<view class="report-header-bottom"></view>
<view class="report-header-bottom"></view>
</view>
</view>
<view class="report-nav">
<view class="report-nav">
...
...
miniprogram/pages/report/report.wxss
View file @
8d7ba468
...
@@ -6,7 +6,37 @@
...
@@ -6,7 +6,37 @@
background-color: #f0f5ff;
background-color: #f0f5ff;
padding: 20rpx 0 40rpx;
padding: 20rpx 0 40rpx;
}
}
.report-header-platform {
margin: 0 auto;
display: flex;
width: 674rpx;
height: 144rpx;
background-color: #6e8aff;
border-radius: 20px 20px 0 0;
color: #fff;
align-items: center;
}
.report-header-platform-info {
padding-left: 50rpx;
font-size: 28rpx;
flex: 1;
}
.report-header-platform-fee {
font-size: 36rpx;
margin-left: 20rpx;
}
.report-header-platform-btn {
margin-right: 50rpx;
font-size: 28rpx;
padding: 0 50rpx;
background-color: #fff;
color: #7086ff;
border-radius: 20rpx;
}
.report-header-platform-btn:active {
background-color: #eee;
color: #666;
}
.report-header-bottom {
.report-header-bottom {
position: absolute;
position: absolute;
bottom: 0;
bottom: 0;
...
...
project.config.json
View file @
8d7ba468
...
@@ -89,6 +89,20 @@
...
@@ -89,6 +89,20 @@
"id"
:
-1
,
"id"
:
-1
,
"name"
:
"userGrowth"
,
"name"
:
"userGrowth"
,
"pathName"
:
"pages/userGrowth/userGrowth"
,
"pathName"
:
"pages/userGrowth/userGrowth"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"platformFee"
,
"pathName"
:
"pages/platformFee/platformFee"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"platformFeeRecord"
,
"pathName"
:
"pages/platformFeeRecord/platformFeeRecord"
,
"scene"
:
null
"scene"
:
null
}
}
]
]
...
...
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