Commit d124803f by 姜雷

Merge branch 'test'

parents f19b77d1 996fe370
...@@ -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.masterUrl.BASE_SERVER_URL + req.url })); return fetch(__assign({}, req, { url: constants_1.masterUrl.BASE_SERVER_URL + req.url }));
}; };
exports.operatorFetch = function (req) {
return fetch(__assign({}, req, { url: constants_1.masterUrl.OPERATOR_SERVER_URL + req.url }));
};
exports.default = fetch; exports.default = fetch;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmV0Y2guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJmZXRjaC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsaURBQXdFO0FBRXhFLElBQU0sR0FBRyxHQUFHLE1BQU0sRUFBVSxDQUFDO0FBRTdCLElBQU0sS0FBSyxHQUFHLFVBQUMsR0FBcUI7SUFDbEMsT0FBQSxJQUFJLE9BQU8sQ0FBQyxVQUFDLE9BQU8sRUFBRSxNQUFNO1FBQzFCLElBQU0sS0FBSyxHQUFHLEdBQUcsQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUFDO1FBQ25DLEVBQUUsQ0FBQyxPQUFPLGNBQ0wsR0FBRyxJQUNOLE1BQU0sRUFBRSxLQUFLO2dCQUNYLENBQUMsWUFDRyxLQUFLLE9BQUEsSUFDRixHQUFHLENBQUMsTUFBTSxFQUVqQixDQUFDLENBQUMsR0FBRyxDQUFDLE1BQU0sRUFFZCxPQUFPLEVBQUUsT0FBTyxFQUNoQixJQUFJLEVBQUUsTUFBTSxJQUNaLENBQUM7SUFDTCxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsVUFBQyxHQUFvQztRQUMzQyxJQUFNLGFBQWlDLEVBQS9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VSQVRPUl9TRVJWRVJfVVJMICsgcmVxLnVybCB9KTtcblxuZXhwb3J0IGRlZmF1bHQgZmV0Y2g7XG4iXX0=
\ No newline at end of file \ No newline at end of file
...@@ -50,4 +50,7 @@ export const customerFetch = (req: wx.RequestOption) => ...@@ -50,4 +50,7 @@ export const customerFetch = (req: wx.RequestOption) =>
fetch({ ...req, url: masterUrl.CUSTOMER_SERVER_URL + req.url }); fetch({ ...req, url: masterUrl.CUSTOMER_SERVER_URL + req.url });
export const baseFetch = (req: wx.RequestOption) => export const baseFetch = (req: wx.RequestOption) =>
fetch({ ...req, url: masterUrl.BASE_SERVER_URL + req.url }); fetch({ ...req, url: masterUrl.BASE_SERVER_URL + req.url });
export const operatorFetch = (req: wx.RequestOption) =>
fetch({ ...req, url: masterUrl.OPERATOR_SERVER_URL + req.url });
export default fetch; export default fetch;
...@@ -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",
......
...@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiY29uc3RhbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQWEsUUFBQSxNQUFNLEdBQUc7SUFDcEIsaUJBQWlCLEVBQUUsOENBQThDO0lBQ2pFLHFCQUFxQixFQUFFLGtEQUFrRDtJQU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ZXhwb3J0IGNvbnN0IHN1Y2Nlc3NDb2RlID0gMTAwMDtcbmV4cG9ydCBjb25zdCBsb2dvdXRvZGUgPSAtMjtcbiJdfQ==
\ No newline at end of file \ No newline at end of file
...@@ -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;
......
"use strict"; "use strict";
Component({ Component({
properties: { properties: {
checked: { type: Number, value: 0 }, checked: { type: String, value: '' },
listData: { type: Array, value: [] }, listData: { type: Array, value: [] },
}, },
lifetimes: { lifetimes: {
...@@ -31,4 +31,4 @@ Component({ ...@@ -31,4 +31,4 @@ Component({
} }
}, },
}); });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EsU0FBUyxDQUFDO0lBSVIsVUFBVSxFQUFFO1FBQ1YsT0FBTyxFQUFFLEVBQUUsSUFBSSxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsQ0FBQyxFQUFFO1FBQ25DLFFBQVEsRUFBRSxFQUFFLElBQUksRUFBRSxLQUFLLEVBQUUsS0FBSyxFQUFFLEVBQUUsRUFBRTtLQUNyQztJQUNELFNBQVMsRUFBRTtRQUNULFFBQVEsRUFBRTtZQUVSLEVBQUUsQ0FBQyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsUUFBUSxLQUFLLE1BQU0sQ0FBQyxDQUFDLENBQUM7Z0JBQ2xDLElBQUksQ0FBQyxPQUFPLENBQUM7b0JBQ1gsS0FBSyxFQUFFLENBQUM7aUJBQ1QsQ0FBQyxDQUFDO1lBQ0wsQ0FBQztZQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLFFBQVEsS0FBSyxRQUFRLENBQUMsQ0FBQyxDQUFDO2dCQUMzQyxJQU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gICB9XG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file \ No newline at end of file
...@@ -4,7 +4,7 @@ Component({ ...@@ -4,7 +4,7 @@ Component({
* 组件的属性列表 * 组件的属性列表
*/ */
properties: { properties: {
checked: { type: Number, value: 0 }, checked: { type: String, value: '' },
listData: { type: Array, value: [] }, listData: { type: Array, value: [] },
}, },
lifetimes: { lifetimes: {
......
<!-- 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 === item.code?'checked':''}}" data-index="{{item.code}}" 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 === item.code ? 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
"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, {
month: {
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 = 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;
}
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({
properties: {
dataList: {
type: Array,
value: [],
observer: function (newVal) {
if (platforFeeChart) {
platforFeeChart.changeData(newVal);
}
else {
setTimeout(function () {
platforFeeChart.changeData(newVal);
}, 1000);
}
if (platforFeeChart) {
var index = findMaxIndex(newVal, 'totalMoney');
if (index !== -1) {
var item = newVal[index];
var point = platforFeeChart.getPosition(item);
platforFeeChart.showTooltip(point);
}
}
},
},
month: {
type: String,
value: '',
observer: function (newVal) {
month = newVal;
},
},
},
data: {
opts: {
onInit: initChart,
},
},
methods: {
clickHandle: function (e) {
console.log(e);
var touches = e.detail.touches;
var x = 0;
var y = 0;
if (touches && touches.length) {
x = touches[0].x;
y = touches[0].y;
}
var objArr = platforFeeChart.getSnapRecords({ x: x, y: y });
if (objArr.length)
this.triggerEvent('selectedData', objArr[0]._origin);
},
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGxhdGZvcm1GZWVDaGFydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlBsYXRmb3JtRmVlQ2hhcnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLElBQUksZUFBZSxHQUFHLElBQUksQ0FBQztBQUMzQixJQUFJLEtBQUssR0FBRyxFQUFFLENBQUM7QUFFZixtQkFBbUIsTUFBTSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsRUFBRTtJQUMxQyxJQUFNLElBQUksR0FBRyxFQUFFLENBQUM7SUFDaEIsZUFBZSxHQUFHLElBQUksRUFBRSxDQUFDLEtBQUssQ0FBQztRQUM3QixFQUFFLEVBQUUsTUFBTTtRQUNWLEtBQUssT0FBQTtRQUNMLE1BQU0sUUFBQTtLQUNQLENBQUMsQ0FBQztJQUVILGVBQW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AgdHlwZTogQXJyYXksXG4gICAgICB2YWx1ZTogW10sXG4gICAgICBvYnNlcnZlcihuZXdWYWwpIHtcbiAgICAgICAgaWYgKHBsYXRmb3JGZWVDaGFydCkge1xuICAgICAgICAgIHBsYXRmb3JGZWVDaGFydC5jaGFuZ2VEYXRhKG5ld1ZhbCk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgICAgICBwbGF0Zm9yRmVlQ2hhcnQuY2hhbmdlRGF0YShuZXdWYWwpO1xuICAgICAgICAgIH0sIDEwMDApO1xuICAgICAgICB9XG4gICAgICAgIGlmIChwbGF0Zm9yRmVlQ2hhcnQpIHtcbiAgICAgICAgICBsZXQgaW5kZXggPSBmaW5kTWF4SW5kZXgobmV3VmFsLCAndG90YWxNb25leScpO1xuICAgICAgICAgIGlmIChpbmRleCAhPT0gLTEpIHtcbiAgICAgICAgICAgIGxldCBpdGVtID0gbmV3VmFsW2luZGV4XTtcbiAgICAgICAgICAgIGNvbnN0IHBvaW50ID0gcGxhdGZvckZlZUNoYXJ0LmdldFBvc2l0aW9uKGl0ZW0pO1xuICAgICAgICAgICAgcGxhdGZvckZlZUNoYXJ0LnNob3dUb29sdGlwKHBvaW50KTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgfSxcbiAgICBtb250aDoge1xuICAgICAgdHlwZTogU3RyaW5nLFxuICAgICAgdmFsdWU6ICcnLFxuICAgICAgb2JzZXJ2ZXIobmV3VmFsKSB7XG4gICAgICAgIG1vbnRoID0gbmV3VmFsO1xuICAgICAgfSxcbiAgICB9LFxuICB9LFxuICBkYXRhOiB7XG4gICAgb3B0czoge1xuICAgICAgb25Jbml0OiBpbml0Q2hhcnQsXG4gICAgfSxcbiAgfSxcbiAgbWV0aG9kczoge1xuICAgIGNsaWNrSGFuZGxlKGUpIHtcbiAgICAgIGNvbnNvbGUubG9nKGUpO1xuICAgICAgY29uc3QgeyB0b3VjaGVzIH0gPSBlLmRldGFpbDtcblxuICAgICAgbGV0IHggPSAwO1xuICAgICAgbGV0IHkgPSAwO1xuICAgICAgaWYgKHRvdWNoZXMgJiYgdG91Y2hlcy5sZW5ndGgpIHtcbiAgICAgICAgeCA9IHRvdWNoZXNbMF0ueDtcbiAgICAgICAgeSA9IHRvdWNoZXNbMF0ueTtcbiAgICAgIH1cbiAgICAgIGNvbnN0IG9iakFyciA9IHBsYXRmb3JGZWVDaGFydC5nZXRTbmFwUmVjb3Jkcyh7IHgsIHkgfSk7XG4gICAgICBpZiAob2JqQXJyLmxlbmd0aCkgdGhpcy50cmlnZ2VyRXZlbnQoJ3NlbGVjdGVkRGF0YScsIG9iakFyclswXS5fb3JpZ2luKTtcbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
{
"component": true,
"usingComponents": {
"ff-canvas": "@antv/f2-canvas"
}
}
// 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, {
month: {
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 = 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;
}
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({
// lifetimes: {
// attached() {
// const query = wx.createSelectorQuery().in(this);
// query
// .select('#PlatformFeeChart')
// .boundingClientRect(res => {
// // res.top; // 这个组件内 #the-id 节点的上边界坐标
// console.log(res);
// this.setData({
// x: res.left,
// y: res.top,
// });
// })
// .exec();
// },
// },
properties: {
dataList: {
type: Array,
value: [],
observer(newVal) {
if (platforFeeChart) {
platforFeeChart.changeData(newVal);
} else {
setTimeout(() => {
platforFeeChart.changeData(newVal);
}, 1000);
}
if (platforFeeChart) {
let index = findMaxIndex(newVal, 'totalMoney');
if (index !== -1) {
let item = newVal[index];
const point = platforFeeChart.getPosition(item);
platforFeeChart.showTooltip(point);
}
}
},
},
month: {
type: String,
value: '',
observer(newVal) {
month = newVal;
},
},
},
data: {
opts: {
onInit: initChart,
},
},
methods: {
clickHandle(e) {
console.log(e);
const { touches } = e.detail;
let x = 0;
let y = 0;
if (touches && touches.length) {
x = touches[0].x;
y = touches[0].y;
}
const objArr = platforFeeChart.getSnapRecords({ x, y });
if (objArr.length) this.triggerEvent('selectedData', objArr[0]._origin);
},
},
});
<!-- pages/components/PlatformFeeChart/PlatformFeeChart.wxml -->
<ff-canvas id="PlatformFeeChart" canvas-id="PlatformFeeChart" opts="{{ opts }}" bindcanvastouch="clickHandle" />
\ No newline at end of file
/* pages/components/PlatformFeeChart/PlatformFeeChart.wxss */
.PlatformFeeChart {
width: 660rpx;
height: 350rpx;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var fetch_1 = require("../../../api/fetch");
var app = getApp();
var timer = null;
var payTimer = null;
var fetchedPlatform = false;
Component({
lifetimes: {
attached: function () {
console.log(app.globalData.userInfo);
this.setData({
userInfo: app.globalData.userInfo,
});
this.data.eventType === 'slef' &&
!fetchedPlatform &&
this.fetchPlatformFee();
},
},
properties: {
eventType: { type: String, value: 'slef' },
},
data: {
userInfo: app.globalData.userInfo,
showDialog: false,
type: 1,
isSkip: 0,
rechargeBalance: 0,
payTimeLimit: 0,
billType: '0',
payQrUrl: '',
countDown: 600,
countDownString: '10分00秒',
},
methods: {
fetchPlatformFee: function () {
var _this = this;
fetch_1.operatorFetch({
url: '/operateBalance/rechage/initdata',
method: 'POST',
data: {
operateId: this.data.userInfo.operateId,
operateName: this.data.userInfo.operateName,
position: 3,
type: 2,
},
})
.then(function (res) {
var isSkip = res.isSkip, rechargeBalance = res.rechargeBalance, payTimeLimit = res.payTimeLimit;
_this.setData({
isSkip: isSkip,
rechargeBalance: rechargeBalance,
payTimeLimit: payTimeLimit,
showDialog: rechargeBalance > 0 ? true : false,
});
fetchedPlatform = true;
})
.catch(function (err) {
console.log(err);
});
},
cancelShow: function () {
this.setData({
showDialog: false,
});
},
fetchRechargeInfo: function () {
var _this = this;
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.toString(),
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 () {
wx.navigateTo({
url: '/pages/platformFee/platformFee',
});
},
toggleType: function () {
var 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: function (e) {
console.log(e);
var value = e.currentTarget.dataset.value;
if (value === this.data.billType)
return;
this.setData({
billType: value,
});
if (this.data.type === 2) {
this.fetchRechargeOrderQRcode();
}
else {
payTimer && clearInterval(payTimer);
}
},
fetchRechargeOrderQRcode: function () {
var _this = this;
wx.showLoading({
title: '',
});
if (timer) {
clearInterval(timer);
this.setData({
payQrUrl: '',
countDown: 600,
countDownString: '0秒',
});
}
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/forcodeimg',
method: 'POST',
data: entity,
})
.then(function (res) {
wx.hideLoading();
var payQrUrl = res.payQrUrl, orderNum = res.orderNum;
_this.setData({
payQrUrl: payQrUrl,
});
timer = setInterval(function () {
var count = _this.data.countDown;
if (count === 0) {
clearInterval(timer);
_this.setData({
payQrUrl: '',
countDown: 600,
countDownString: '0秒',
});
}
else {
var newCount = count - 1;
var countString = Math.floor(newCount / 60) + '分' + (newCount % 60) + '秒';
_this.setData({
countDown: newCount,
countDownString: countString,
});
}
}, 1000);
payTimer = setInterval(function () {
console.log('in setInterval');
fetch_1.operatorFetch({
url: '/operateBalance/rechage/sure',
method: 'POST',
data: { orderNum: orderNum },
})
.then(function (res) {
var rechargeState = res.rechargeState;
if (rechargeState === '1') {
wx.showToast({
title: res.msg || '',
icon: 'success',
});
clearInterval(payTimer);
_this.setData({
showDialog: false,
});
}
})
.catch(function (err) {
console.log(err);
});
}, 3000);
})
.catch(function (err) {
wx.hideLoading();
wx.showToast({
title: err.msg || '请求失败',
icon: 'none',
});
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGxhdGZvcm1GZWVEaWFsb2cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQbGF0Zm9ybUZlZURpYWxvZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDRDQUFtRDtBQUduRCxJQUFNLEdBQUcsR0FBRyxNQUFNLEVBQVUsQ0FBQztBQUM3QixJQUFJLEtBQUssR0FBRyxJQUFJLENBQUM7QUFDakIsSUFBSSxRQUFRLEdBQUcsSUFBSSxDQUFDO0FBQ3BCLElBQUksZUFBZSxHQUFHLEtBQUssQ0FBQztBQUU1QixTQUFTLENBQUM7SUFDUixTQUFTLEVBQUU7UUFDVCxRQUFRO1lBQ04sT0FBTyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsVUFBVSxDQUFDLFFBQVEsQ0FBQyxDQUFDO1lBQ3JDLElBQUksQ0FBQyxPQUFRLENBQUM7Z0JBQ1osUUFBUSxFQUFFLEdBQUcsQ0FBQyxVQUFVLENBQUMsUUFBUTthQUNsQyxDQUFDLENBQUM7WUFDSCxJQUFJLENBQUMsSUFBSSxDQUFDLFNBQVMsS0FBSyxNQUFNO2dCQUM1QixDQUFDLGVBQWU7Z0JBQ2hCLElBQUksQ0FBQyxnQkFBZ0IsRUFBRSxDQUFDO1FBQzVCLENBQUM7S0FDRjtJQUlELFVBQVUsRUFBRTtRQUNWLFNBQVMsRUFBRSxFQUFFLElBQUksRUFBRSxNQUFNLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRTtLQUMzQztJQUtELElBQUksRUFBRTtRQUNKLFFBQVEsRUFBRSxHQUFHLENBQUMsVUFBVSxDQUFDLFFBQVE7UUFDakMsVUFBVSxFQUFFLEtBQUs7UU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VyYXRlTmFtZSxcbiAgICAgICAgICBwb3NpdGlvbjogMyxcbiAgICAgICAgICB0eXBlOiAyLFxuICAgICAgICB9LFxuICAgICAgfSlcbiAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICBjb25zdCB7IGlzU2tpcCwgcmVjaGFyZ2VCYWxhbmNlLCBwYXlUaW1lTGltaXQgfSA9IHJlcztcbiAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgaXNTa2lwLFxuICAgICAgICAgICAgcmVjaGFyZ2VCYWxhbmNlLFxuICAgICAgICAgICAgcGF5VGltZUxpbWl0LFxuICAgICAgICAgICAgc2hvd0RpYWxvZzogcmVjaGFyZ2VCYWxhbmNlID4gMCA/IHRydWUgOiBmYWxzZSxcbiAgICAgICAgICB9KTtcbiAgICAgICAgICBmZXRjaGVkUGxhdGZvcm0gPSB0cnVlO1xuICAgICAgICB9KVxuICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICB9KTtcbiAgICB9LFxuICAgIGNhbmNlbFNob3coKSB7XG4gICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICBzaG93RGlhbG9nOiBmYWxzZSxcbiAgICAgIH0pO1xuICAgIH0sXG4gICAgZmV0Y2hSZWNoYXJnZUluZm8oKSB7XG4gICAgICBjb25zb2xlLmxvZygnaW4gZmV0Y2hSZWNoYXJnZUluZm8nKTtcbiAgICAgIHd4LnNob3dMb2FkaW5nKHtcbiAgICAgICAgdGl0bGU6ICcnLFxuICAgICAgfSk7XG4gICAgICB3eC5sb2dpbih7XG4gICAgICAgIHN1Y2Nlc3M6IHJlcyA9PiB7XG4gICAgICAgICAgaWYgKHJlcy5jb2RlKSB7XG4gICAgICAgICAgICBjb25zdCBlbnRpdHkgPSB7XG4gICAgICAgICAgICAgIGJpbGxUeXBlOiB0aGlzLmRhdGEuYmlsbFR5cGUsXG4gICAgICAgICAgICAgIGlzQWdyZWU6IDEsXG4gICAgICAgICAgICAgIGpzQ29kZTogcmVzLmNvZGUsXG4gICAgICAgICAgICAgIG9wZXJhdGVJZDogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVJZCxcbiAgICAgICAgICAgICAgb3BlcmF0ZU5hbWU6IHRoaXMuZGF0YS51c2VySW5mby5vcGVyYXRlTmFtZSxcbiAgICAgICAgICAgICAgcmVjaGFyZ2VUeXBlOiAnMicsXG4gICAgICAgICAgICAgIHR5cGU6IDIsXG4gICAgICAgICAgICB9O1xuICAgICAgICAgICAgb3BlcmF0b3JGZXRjaCh7XG4gICAgICAgICAgICAgIHVybDogJy9vcGVyYXRlQmFsYW5jZS9yZWNoYWdlL29yZGVyL2Zvcm1pbmknLFxuICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgICAgICAgZGF0YTogZW50aXR5LFxuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHsgcGF5SW5mbyB9ID0gcmVzO1xuICAgICAgICAgICAgICAgIHd4LnJlcXVlc3RQYXltZW50KHtcbiAgICAgICAgICAgICAgICAgIHRpbWVTdGFtcDogcGF5SW5mby50aW1lU3RhbXAudG9TdHJpbmcoKSxcbiAgICAgICAgICAgICAgICAgIG5vbmNlU3RyOiBwYXlJbmZvLm5vbmNlU3RyLFxuICAgICAgICAgICAgICAgICAgcGFja2FnZTogcGF5SW5mby5wYWNrYWdlLFxuICAgICAgICAgICAgICAgICAgc2lnblR5cGU6IHBheUluZm8uc2lnblR5cGUsXG4gICAgICAgICAgICAgICAgICBwYXlTaWduOiBwYXlJbmZvLnBheVNpZ24sXG4gICAgICAgICAgICAgICAgICBzdWNjZXNzOiByZXMgPT4ge1xuICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiAn5pSv5LuY5oiQ5Yqf77yBJyxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAgICAgICAgICAgc2hvd0RpYWxvZzogZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICAgICAgdGl0bGU6ICfmlK/ku5jlpLHotKXvvIEnLFxuICAgICAgICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIubXNnIHx8ICfor7fmsYLlpLHotKUnLFxuICAgICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgIHRpdGxlOiByZXMuZXJyTXNnIHx8ICfor7fmsYLlpLHotKUnLFxuICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6IHJlcy5lcnJNc2cgfHwgJ+ivt+axguWksei0pScsXG4gICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9LFxuICAgIGdvUmVjb3Jkc1BhZ2UoKSB7XG4gICAgICB3eC5uYXZpZ2F0ZVRvKHtcbiAgICAgICAgdXJsOiAnL3BhZ2VzL3BsYXRmb3JtRmVlL3BsYXRmb3JtRmVlJyxcbiAgICAgIH0pO1xuICAgIH0sXG4gICAgdG9nZ2xlVHlwZSgpIHtcbiAgICAgIGxldCB0eXBlID0gdGhpcy5kYXRhLnR5cGU7XG4gICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICB0eXBlOiB0eXBlID09PSAxID8gMiA6IDEsXG4gICAgICB9KTtcbiAgICAgIGlmICh0eXBlID09PSAxKSB7XG4gICAgICAgIHRoaXMuZmV0Y2hSZWNoYXJnZU9yZGVyUVJjb2RlKCk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aW1lciAmJiBjbGVhckludGVydmFsKHRpbWVyKTtcbiAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICBjb3VudERvd246IDYwMCxcbiAgICAgICAgICBjb3VudERvd25TdHJpbmc6ICcnLFxuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICB9LFxuICAgIGNoZWNrQmlsbFR5cGUoZSkge1xuICAgICAgY29uc29sZS5sb2coZSk7XG4gICAgICBjb25zdCB7IHZhbHVlIH0gPSBlLmN1cnJlbnRUYXJnZXQuZGF0YXNldDtcbiAgICAgIGlmICh2YWx1ZSA9PT0gdGhpcy5kYXRhLmJpbGxUeXBlKSByZXR1cm47XG4gICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICBiaWxsVHlwZTogdmFsdWUsXG4gICAgICB9KTtcbiAgICAgIGlmICh0aGlzLmRhdGEudHlwZSA9PT0gMikge1xuICAgICAgICB0aGlzLmZldGNoUmVjaGFyZ2VPcmRlclFSY29kZSgpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgcGF5VGltZXIgJiYgY2xlYXJJbnRlcnZhbChwYXlUaW1lcik7XG4gICAgICB9XG4gICAgfSxcbiAgICBmZXRjaFJlY2hhcmdlT3JkZXJRUmNvZGUoKSB7XG4gICAgICB3eC5zaG93TG9hZGluZyh7XG4gICAgICAgIHRpdGxlOiAnJyxcbiAgICAgIH0pO1xuICAgICAgaWYgKHRpbWVyKSB7XG4gICAgICAgIGNsZWFySW50ZXJ2YWwodGltZXIpO1xuICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgIHBheVFyVXJsOiAnJyxcbiAgICAgICAgICBjb3VudERvd246IDYwMCxcbiAgICAgICAgICBjb3VudERvd25TdHJpbmc6ICcw56eSJyxcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgICB3eC5sb2dpbih7XG4gICAgICAgIHN1Y2Nlc3M6IHJlcyA9PiB7XG4gICAgICAgICAgaWYgKHJlcy5jb2RlKSB7XG4gICAgICAgICAgICBjb25zdCBlbnRpdHkgPSB7XG4gICAgICAgICAgICAgIGJpbGxUeXBlOiB0aGlzLmRhdGEuYmlsbFR5cGUsXG4gICAgICAgICAgICAgIGlzQWdyZWU6IDEsXG4gICAgICAgICAgICAgIGpzQ29kZTogcmVzLmNvZGUsXG4gICAgICAgICAgICAgIG9wZXJhdGVJZDogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVJZCxcbiAgICAgICAgICAgICAgb3BlcmF0ZU5hbWU6IHRoaXMuZGF0YS51c2VySW5mby5vcGVyYXRlTmFtZSxcbiAgICAgICAgICAgICAgcmVjaGFyZ2VUeXBlOiAnMicsXG4gICAgICAgICAgICAgIHR5cGU6IDIsXG4gICAgICAgICAgICB9O1xuICAgICAgICAgICAgb3BlcmF0b3JGZXRjaCh7XG4gICAgICAgICAgICAgIHVybDogJy9vcGVyYXRlQmFsYW5jZS9yZWNoYWdlL29yZGVyL2ZvcmNvZGVpbWcnLFxuICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgICAgICAgZGF0YTogZW50aXR5LFxuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHsgcGF5UXJVcmwsIG9yZGVyTnVtIH0gPSByZXM7XG4gICAgICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgICAgIHBheVFyVXJsLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIHRpbWVyID0gc2V0SW50ZXJ2YWwoKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgbGV0IGNvdW50ID0gdGhpcy5kYXRhLmNvdW50RG93bjtcbiAgICAgICAgICAgICAgICAgIGlmIChjb3VudCA9PT0gMCkge1xuICAgICAgICAgICAgICAgICAgICBjbGVhckludGVydmFsKHRpbWVyKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgICAgICAgICBwYXlRclVybDogJycsXG4gICAgICAgICAgICAgICAgICAgICAgY291bnREb3duOiA2MDAsXG4gICAgICAgICAgICAgICAgICAgICAgY291bnREb3duU3RyaW5nOiAnMOenkicsXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgbGV0IG5ld0NvdW50ID0gY291bnQgLSAxO1xuICAgICAgICAgICAgICAgICAgICBsZXQgY291bnRTdHJpbmcgPVxuICAgICAgICAgICAgICAgICAgICAgIE1hdGguZmxvb3IobmV3Q291bnQgLyA2MCkgKyAn5YiGJyArIChuZXdDb3VudCAlIDYwKSArICfnp5InO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgICAgICAgICAgIGNvdW50RG93bjogbmV3Q291bnQsXG4gICAgICAgICAgICAgICAgICAgICAgY291bnREb3duU3RyaW5nOiBjb3VudFN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSwgMTAwMCk7XG4gICAgICAgICAgICAgICAgcGF5VGltZXIgPSBzZXRJbnRlcnZhbCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZygnaW4gc2V0SW50ZXJ2YWwnKTtcbiAgICAgICAgICAgICAgICAgIG9wZXJhdG9yRmV0Y2goe1xuICAgICAgICAgICAgICAgICAgICB1cmw6ICcvb3BlcmF0ZUJhbGFuY2UvcmVjaGFnZS9zdXJlJyxcbiAgICAgICAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgICAgICAgICAgICAgIGRhdGE6IHsgb3JkZXJOdW06IG9yZGVyTnVtIH0sXG4gICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHsgcmVjaGFyZ2VTdGF0ZSB9ID0gcmVzO1xuICAgICAgICAgICAgICAgICAgICAgIGlmIChyZWNoYXJnZVN0YXRlID09PSAnMScpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiByZXMubXNnIHx8ICcnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBpY29uOiAnc3VjY2VzcycsXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsZWFySW50ZXJ2YWwocGF5VGltZXIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgc2hvd0RpYWxvZzogZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH0sIDMwMDApO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICB0aXRsZTogZXJyLm1zZyB8fCAn6K+35rGC5aSx6LSlJyxcbiAgICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgIHRpdGxlOiByZXMuZXJyTXNnIHx8ICfor7fmsYLlpLHotKUnLFxuICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICB0aXRsZTogcmVzLmVyck1zZyB8fCAn6K+35rGC5aSx6LSlJyxcbiAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSxcbiAgICAgIH0pO1xuICAgIH0sXG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
import { operatorFetch } from '../../../api/fetch';
import { IMyApp } from '../../../app';
const app = getApp<IMyApp>();
let timer = null;
let payTimer = null;
let fetchedPlatform = false;
// pages/components/PlatformFeeDialog/PlatformFeeDialog.js
Component({
lifetimes: {
attached() {
console.log(app.globalData.userInfo);
this.setData!({
userInfo: app.globalData.userInfo,
});
this.data.eventType === 'slef' &&
!fetchedPlatform &&
this.fetchPlatformFee();
},
},
/**
* 组件的属性列表
*/
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() {
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,
});
fetchedPlatform = true;
})
.catch(err => {
console.log(err);
});
},
cancelShow() {
this.setData({
showDialog: false,
});
},
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.toString(),
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() {
wx.navigateTo({
url: '/pages/platformFee/platformFee',
});
},
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;
if (value === this.data.billType) return;
this.setData({
billType: value,
});
if (this.data.type === 2) {
this.fetchRechargeOrderQRcode();
} else {
payTimer && clearInterval(payTimer);
}
},
fetchRechargeOrderQRcode() {
wx.showLoading({
title: '',
});
if (timer) {
clearInterval(timer);
this.setData({
payQrUrl: '',
countDown: 600,
countDownString: '0秒',
});
}
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/forcodeimg',
method: 'POST',
data: entity,
})
.then(res => {
wx.hideLoading();
const { payQrUrl, orderNum } = res;
this.setData({
payQrUrl,
});
timer = setInterval(() => {
let count = this.data.countDown;
if (count === 0) {
clearInterval(timer);
this.setData({
payQrUrl: '',
countDown: 600,
countDownString: '0秒',
});
} else {
let newCount = count - 1;
let countString =
Math.floor(newCount / 60) + '分' + (newCount % 60) + '秒';
this.setData({
countDown: newCount,
countDownString: countString,
});
}
}, 1000);
payTimer = setInterval(() => {
console.log('in setInterval');
operatorFetch({
url: '/operateBalance/rechage/sure',
method: 'POST',
data: { orderNum: orderNum },
})
.then(res => {
const { rechargeState } = res;
if (rechargeState === '1') {
wx.showToast({
title: res.msg || '',
icon: 'success',
});
clearInterval(payTimer);
this.setData({
showDialog: false,
});
}
})
.catch(err => {
console.log(err);
});
}, 3000);
})
.catch(err => {
wx.hideLoading();
wx.showToast({
title: err.msg || '请求失败',
icon: 'none',
});
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',
});
},
});
},
},
});
<!-- pages/components/PlatformFeeDialog/PlatformFeeDialog.wxml -->
<view class="PlatformFeeDialog" wx:if="{{showDialog}}">
<view class="mask"></view>
<view class="PlatformFeeDialog-body">
<view class="PlatformFeeDialog-content {{type===1?'show':''}}">
<view class="PlatformFeeDialog-header">
<view>尊敬的用户:</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">{{rechargeBalance}}元</view>
</view>
<view class="PlatformFeeDialog-priceItem">
<view class="PlatformFeeDialog-priceItemLabel">开票选择</view>
</view>
<view class="PlatformFeeDialog-radiofroup">
<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" bind:tap="checkBillType" data-value="1">
<view class="PlatformFeeDialog-radioinput {{billType==='1'?'check':''}}"></view>
<view>普通发票</view>
</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 cancel" wx:if="{{isSkip}}" bind:tap="cancelShow">取消</button>
<button class="PlatformFeeDialog-btn {{isSkip?'':'big'}}" bind:tap="fetchRechargeInfo">确认支付</button>
</view>
<view class="PlatformFeeDialog-links">
<view bind:tap="goRecordsPage">查看服务费明细</view>
<view bind:tap="toggleType">扫码支付 ></view>
</view>
</view>
</view>
<view class="PlatformFeeDialog-content scanPay {{type===2?'show':''}}">
<view class="PlatformFeeDialog-header">
<view class="PlatformFeeDialog-back" bind:tap="toggleType">{{'<'}}</view>
<view class="PlatformFeeDialog-countdown">
剩余
<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">{{rechargeBalance}}元</view>
</view>
<view class="PlatformFeeDialog-priceItem">
<view class="PlatformFeeDialog-priceItemLabel">开票选择</view>
</view>
<view class="PlatformFeeDialog-radiofroup">
<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" bind:tap="checkBillType" data-value="1">
<view class="PlatformFeeDialog-radioinput {{billType==='1'?'check':''}}"></view>
<view>普通发票</view>
</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="{{payQrUrl}}" mode="aspectFill" lazy-load="false" binderror="" bindload="" />
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
/* 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;
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;
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;
}
...@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImhvbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBa0Q7QUFDbEQseUNBQThDO0FBRzlDLFNBQVMsQ0FBQztJQUNSLFNBQVMsRUFBRTtRQUNULFFBQVE7WUFDTixPQUFPLENBQUMsR0FBRyxDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1lBQzNDLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxPQUFPLElBQUksSUFBSSxDQUFDLGlCQUFpQixFQUFFLENBQUM7UUFDakQsQ0FBQztLQ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cmdlRGF0YToge1xuICAgICAgdGl0bGU6ICfnur/kuIvlhYXlgLwnLFxuICAgICAgbnVtYmVyVHlwZTogJzEnLFxuICAgICAgY291bnQ6IDAsXG4gICAgICBwcmljZTogMCxcbiAgICB9LFxuICAgIGNvbXN1bWVyRGF0YToge1xuICAgICAgdGl0bGU6ICfmtojotLnmgLvpop0nLFxuICAgICAgbnVtYmVyVHlwZTogJ3ByaWNlJyxcbiAgICAgIGNvdW50OiAwLFxuICAgIH0sXG4gICAgY29tc3VtZXJDb3VudDoge1xuICAgICAgdGl0bGU6ICfmtojotLnmgLvnrJTmlbAnLFxuICAgICAgbnVtYmVyVHlwZTogJycsXG4gICAgICBjb3VudDogMCxcbiAgICB9LFxuICAgIHJlZnVuZERhdGE6IHtcbiAgICAgIHRpdGxlOiAn6YCA5qy+5oC76aKdJyxcbiAgICAgIG51bWJlclR5cGU6ICdwcmljZScsXG4gICAgICBjb3VudDogMCxcbiAgICB9LFxuICAgIHJlZnVuZENvdW50OiB7XG4gICAgICB0aXRsZTogJ+mAgOasvuaAu+eslOaVsCcsXG4gICAgICBudW1iZXJUeXBlOiAnJyxcbiAgICAgIGNvdW50OiAwLFxuICAgIH0sXG4gICAgdGVzdERhdGE6IHtcbiAgICAgIHRpdGxlOiAn5YWF5YC85oC76aKdJyxcbiAgICAgIG51bWJlclR5cGU6ICdwcmljZScsXG4gICAgICBjb3VudDogMCxcbiAgICB9LFxuICAgIHRlc3REYXRhMjoge1xuICAgICAgdGl0bGU6ICfnur/kuIrlhYXlgLwnLFxuICAgICAgbnVtYmVyVHlwZTogJzEnLFxuICAgICAgY291bnQ6IDAsXG4gICAgICBwcmljZTogMCxcbiAgICB9LFxuICB9LFxuICBtZXRob2RzOiB7XG4gICAgY2hhbmdlVGltZVR5cGUoZSkge1xuICAgICAgY29uc3QgeyB0aW1ldHlwZSB9ID0gZS5jdXJyZW50VGFyZ2V0LmRhdGFzZXQ7XG4gICAgICBpZiAodGltZXR5cGUgPT09IHRoaX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ksXG4gICAgICB9KS50aGVuKHJlcyA9PiB7XG4gICAgICAgIGNvbnN0IGRhdGEgPSByZXMucmVjaGFyZ2VPcmRlckNvdW50Vm87XG4gICAgICAgIGlmIChkYXRhKSB7XG4gICAgICAgICAgY29uc3Qge1xuICAgICAgICAgICAgcmVjaGFyZ2VNZW4sXG4gICAgICAgICAgICByZWNoYXJnZU1vbmV5LFxuICAgICAgICAgICAgcmVmdW5kQ291bnQsXG4gICAgICAgICAgICByZWZ1bmRNb25leSxcbiAgICAgICAgICAgIG9mZmxpbmVSZWNoYXJnZU1lbixcbiAgICAgICAgICAgIG9mZmxpbmVSZWNoYXJnZU1vbmV5LFxuICAgICAgICAgICAgb25saW5lUmVjaGFyZ2VNZW4sXG4gICAgICAgICAgICBvbmxpbmVSZWNoYXJnZU1vbmV5LFxuICAgICAgICAgIH0gPSBkYXRhO1xuICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAncmVjaGFyZ2VEYXRhLmNvdW50JzogcmVjaGFyZ2VNb25leSxcbiAgICAgICAgICAgICdyZWNoYXJnZUNvdW50LmNvdW50JzogcmVjaGFyZ2VNZW4sXG4gICAgICAgICAgICAncmVmdW5kRGF0YS5jb3VudCc6IHJlZnVuZE1vbmV5LFxuICAgICAgICAgICAgJ3JlZnVuZENvdW50LmNvdW50JzogcmVmdW5kQ291bnQsXG4gICAgICAgICAgICAnb25saW5lUmVjaGFyZ2VEYXRhLnByaWNlJzogb25saW5lUmVjaGFyZ2VNb25leSxcbiAgICAgICAgICAgICdvbmxpbmVSZWNoYXJnZURhdGEuY291bnQnOiBvbmxpbmVSZWNoYXJnZU1lbixcbiAgICAgICAgICAgICdvZmZsaW5lUmVjaGFyZ2VEYXRhLnByaWNlJzogb2ZmbGluZVJlY2hhcmdlTW9uZXksXG4gICAgICAgICAgICAnb2ZmbGluZVJlY2hhcmdlRGF0YS5jb3VudCc6IG9mZmxpbmVSZWNoYXJnZU1lbixcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgJ3JlY2hhcmdlRGF0YS5jb3VudCc6IDAsXG4gICAgICAgICAgICAncmVjaGFyZ2VDb3VudC5jb3VudCc6IDAsXG4gICAgICAgICAgICAncmVmdW5kRGF0YS5jb3VudCc6IDAsXG4gICAgICAgICAgICAncmVmdW5kQ291bnQuY291bnQnOiAwLFxuICAgICAgICAgICAgJ29ubGluZVJlY2hhcmdlRGF0YS5wcmljZSc6IDAsXG4gICAgICAgICAgICAnb25saW5lUmVjaGFyZ2VEYXRhLmNvdW50JzogMCxcbiAgICAgICAgICAgICdvZmZsaW5lUmVjaGFyZ2VEYXRhLnByaWNlJzogMCxcbiAgICAgICAgICAgICdvZmZsaW5lUmVjaGFyZ2VEYXRhLmNvdW50JzogMCxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSk7XG4gICAgICBsZXQgY29uc3VtZURhdGFGZXRjaCA9IHN0YXRpc3RpY3NGZXRjaCh7XG4gICAgICAgIHVybDogJy9kY3h5L3JlcG9ydEluZm8vcXVlcnlDb25zdW1lT3JkZXJMaXN0JyxcbiAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgIGRhdGE6IGVudGl0eSxcbiAgICAgIH0pLnRoZW4ocmVzID0+IHtcbiAgICAgICAgY29uc3QgeyBjb25zdW1lQ291bnRWbywgZGF0YSB9ID0gcmVzO1xuICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgIHNlcnZpY2VMaXN0OiBkYXRhLm1hcChpdGVtID0+ICh7XG4gICAgICAgICAgICBzZXJ2aWNlSWQ6IGl0ZW0uc2VydmljZUlkLFxuICAgICAgICAgICAgdGl0bGU6IGl0ZW0uc2VydmljZU5hbWUsXG4gICAgICAgICAgICBudW1iZXJUeXBlOiAnMScsXG4gICAgICAgICAgICBjb3VudDogaXRlbS5wYXlNZW4sXG4gICAgICAgICAgICBwcmljZTogaXRlbS5wYXlhYmxlTW9uZXksXG4gICAgICAgICAgfSkpLFxuICAgICAgICAgICdjb21zdW1lckRhdGEuY291bnQnOlxuICAgICAgICAgICAgY29uc3VtZUNvdW50Vm8gJiYgY29uc3VtZUNvdW50Vm8ucGF5YWJsZU1vbmV5XG4gICAgICAgICAgICAgID8gY29uc3VtZUNvdW50Vm8ucGF5YWJsZU1vbmV5XG4gICAgICAgICAgICAgIDogMCxcbiAgICAgICAgICAnY29tc3VtZXJDb3VudC5jb3VudCc6XG4gICAgICAgICAgICBjb25zdW1lQ291bnRWbyAmJiBjb25zdW1lQ291bnRWby5wYXlNZW4gPyBjb25zdW1lQ291bnRWby5wYXlNZW4gOiAwLFxuICAgICAgICB9KTtcbiAgICAgIH0pO1xuICAgICAgUHJvbWlzZS5hbGwoW2NvbnN1bWVEYXRhRmV0Y2gsIHJlY2hhcmdlRGF0YUZldGNoXSlcbiAgICAgICAgLnRoZW4oKCkgPT4ge1xuICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaCgoZXJyOiB3eC5HZW5lcmFsQ2FsbGJhY2tSZXN1bHQpID0+IHtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICB0aXRsZTogZXJyLmVyck1zZyxcbiAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICB9KTtcbiAgICB9LFxuICB9LFxufSk7XG4iXX0= //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImhvbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5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ICAgIHJlZnVuZE1vbmV5LFxuICAgICAgICAgICAgb2ZmbGluZVJlY2hhcmdlTWVuLFxuICAgICAgICAgICAgb2ZmbGluZVJlY2hhcmdlTW9uZXksXG4gICAgICAgICAgICBvbmxpbmVSZWNoYXJnZU1lbixcbiAgICAgICAgICAgIG9ubGluZVJlY2hhcmdlTW9uZXksXG4gICAgICAgICAgfSA9IGRhdGE7XG4gICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICdyZWNoYXJnZURhdGEuY291bnQnOiByZWNoYXJnZU1vbmV5LFxuICAgICAgICAgICAgJ3JlY2hhcmdlQ291bnQuY291bnQnOiByZWNoYXJnZU1lbixcbiAgICAgICAgICAgICdyZWZ1bmREYXRhLmNvdW50JzogcmVmdW5kTW9uZXksXG4gICAgICAgICAgICAncmVmdW5kQ291bnQuY291bnQnOiByZWZ1bmRDb3VudCxcbiAgICAgICAgICAgICdvbmxpbmVSZWNoYXJnZURhdGEucHJpY2UnOiBvbmxpbmVSZWNoYXJnZU1vbmV5LFxuICAgICAgICAgICAgJ29ubGluZVJlY2hhcmdlRGF0YS5jb3VudCc6IG9ubGluZVJlY2hhcmdlTWVuLFxuICAgICAgICAgICAgJ29mZmxpbmVSZWNoYXJnZURhdGEucHJpY2UnOiBvZmZsaW5lUmVjaGFyZ2VNb25leSxcbiAgICAgICAgICAgICdvZmZsaW5lUmVjaGFyZ2VEYXRhLmNvdW50Jzogb2ZmbGluZVJlY2hhcmdlTWVuLFxuICAgICAgICAgIH0pO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAncmVjaGFyZ2VEYXRhLmNvdW50JzogMCxcbiAgICAgICAgICAgICdyZWNoYXJnZUNvdW50LmNvdW50JzogMCxcbiAgICAgICAgICAgICdyZWZ1bmREYXRhLmNvdW50JzogMCxcbiAgICAgICAgICAgICdyZWZ1bmRDb3VudC5jb3VudCc6IDAsXG4gICAgICAgICAgICAnb25saW5lUmVjaGFyZ2VEYXRhLnByaWNlJzogMCxcbiAgICAgICAgICAgICdvbmxpbmVSZWNoYXJnZURhdGEuY291bnQnOiAwLFxuICAgICAgICAgICAgJ29mZmxpbmVSZWNoYXJnZURhdGEucHJpY2UnOiAwLFxuICAgICAgICAgICAgJ29mZmxpbmVSZWNoYXJnZURhdGEuY291bnQnOiAwLFxuICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICB9KTtcbiAgICAgIGxldCBjb25zdW1lRGF0YUZldGNoID0gc3RhdGlzdGljc0ZldGNoKHtcbiAgICAgICAgdXJsOiAnL2RjeHkvcmVwb3J0SW5mby9xdWVyeUNvbnN1bWVPcmRlckxpc3QnLFxuICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgZGF0YTogZW50aXR5LFxuICAgICAgfSkudGhlbihyZXMgPT4ge1xuICAgICAgICBjb25zdCB7IGNvbnN1bWVDb3VudFZvLCBkYXRhIH0gPSByZXM7XG4gICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgc2VydmljZUxpc3Q6IGRhdGEubWFwKGl0ZW0gPT4gKHtcbiAgICAgICAgICAgIHNlcnZpY2VJZDogaXRlbS5zZXJ2aWNlSWQsXG4gICAgICAgICAgICB0aXRsZTogaXRlbS5zZXJ2aWNlTmFtZSxcbiAgICAgICAgICAgIG51bWJlclR5cGU6ICcxJyxcbiAgICAgICAgICAgIGNvdW50OiBpdGVtLnBheU1lbixcbiAgICAgICAgICAgIHByaWNlOiBpdGVtLnBheWFibGVNb25leSxcbiAgICAgICAgICB9KSksXG4gICAgICAgICAgJ2NvbXN1bWVyRGF0YS5jb3VudCc6XG4gICAgICAgICAgICBjb25zdW1lQ291bnRWbyAmJiBjb25zdW1lQ291bnRWby5wYXlhYmxlTW9uZXlcbiAgICAgICAgICAgICAgPyBjb25zdW1lQ291bnRWby5wYXlhYmxlTW9uZXlcbiAgICAgICAgICAgICAgOiAwLFxuICAgICAgICAgICdjb21zdW1lckNvdW50LmNvdW50JzpcbiAgICAgICAgICAgIGNvbnN1bWVDb3VudFZvICYmIGNvbnN1bWVDb3VudFZvLnBheU1lbiA/IGNvbnN1bWVDb3VudFZvLnBheU1lbiA6IDAsXG4gICAgICAgIH0pO1xuICAgICAgfSk7XG4gICAgICBQcm9taXNlLmFsbChbY29uc3VtZURhdGFGZXRjaCwgcmVjaGFyZ2VEYXRhRmV0Y2hdKVxuICAgICAgICAudGhlbigoKSA9PiB7XG4gICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgfSlcbiAgICAgICAgLmNhdGNoKChlcnI6IHd4LkdlbmVyYWxDYWxsYmFja1Jlc3VsdCkgPT4ge1xuICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgIHRpdGxlOiBlcnIuZXJyTXNnLFxuICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIH0pO1xuICAgIH0sXG4gICAgcmVxdWVzdFN1Yk1zZygpIHtcbiAgICAgIGNvbnNvbGUubG9nKCdpbiByZXF1ZXN0U3ViTXNnJyk7XG4gICAgICB3eC5yZXF1ZXN0U3Vic2NyaWJlTWVzc2FnZSh7XG4gICAgICAgIHRtcGxJZHM6IFsnV1UyeU1IS01feU5QTEdIUnNzdGdnc0RZblpoS29ISWc0aGVNMmZaa0Q1SSddLFxuICAgICAgICBzdWNjZXNzKHJlcykge1xuICAgICAgICAgIGNvbnNvbGUubG9nKCdpbiBzdWNjZXNzJywgcmVzKTtcbiAgICAgICAgfSxcbiAgICAgICAgZmFpbChyZXMpIHtcbiAgICAgICAgICBjb25zb2xlLmxvZygnaW4gZmFpbCcsIHJlcyk7XG4gICAgICAgIH0sXG4gICAgICAgIGNvbXBsZXRlKHJlcykge1xuICAgICAgICAgIGNvbnNvbGUubG9nKCdpbiBjb21wbGV0ZScsIHJlcyk7XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file \ No newline at end of file
{ {
"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"
} }
......
...@@ -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.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,4 +35,5 @@ ...@@ -34,4 +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>
<platform-dialog />
</view> </view>
\ No newline at end of file
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var app = getApp();
var tabList = [
{
pagePath: '/pages/home/home',
iconPath: '/images/tab_shuju_nor@2x.png',
selectedIconPath: '/images/tab_shuju_pre@2x.png',
text: '数据首页',
code: '9001',
},
{
pagePath: '/pages/report/report',
iconPath: '/images/tab_baobiao_nor@2x.png',
selectedIconPath: '/images/tab_baobiao_pre@2x.png',
text: '运营管理',
code: '9002',
},
];
Page({ Page({
onLoad: function () {
var userRoles = app.globalData.userRoles;
var list = userRoles
.map(function (item) { return tabList.find(function (menu) { return menu.code === item.menuCode; }); })
.filter(function (menu) { return (menu ? true : false); });
if (!list.find(function (item) { return item.code === '9002'; }))
list.push(tabList[tabList.length - 1]);
this.setData({
selected: list.length ? list[0].code : '',
list: list,
});
},
onShow: function () { onShow: function () {
if (wx.hideHomeButton) { if (wx.hideHomeButton) {
wx.hideHomeButton(); wx.hideHomeButton();
} }
}, },
data: { data: {
selected: 0, selected: '',
list: [ list: [],
{
pagePath: '/pages/home/home',
iconPath: '/images/tab_shuju_nor@2x.png',
selectedIconPath: '/images/tab_shuju_pre@2x.png',
text: '数据首页',
},
{
pagePath: '/pages/report/report',
iconPath: '/images/tab_baobiao_nor@2x.png',
selectedIconPath: '/images/tab_baobiao_pre@2x.png',
text: '运营管理',
},
],
}, },
clickHandle: function (e) { clickHandle: function (e) {
console.log('in click', e); console.log('in click', e);
...@@ -30,4 +47,4 @@ Page({ ...@@ -30,4 +47,4 @@ Page({
}); });
}, },
}); });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZUFuZFJlcG9ydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImhvbWVBbmRSZXBvcnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQUksQ0FBQztJQUNILE1BQU07UUFDSixFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsY0FBYyxDQUFDLENBQUMsQ0FBQztZQUN0QixFQUFFLENBQUMsY0FBYyxFQUFFLENBQUM7UUFDdEIsQ0FBQztJQUNILENBQUM7SUFDRCxJQUFJLEVBQUU7UUFDSixRQUFRLEVBQUUsQ0FBQztRQUNYLElBQUksRUFBRTtZQUNKO2dCQUNFLFFBQVEsRUFBRSxrQkFBa0I7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GNvbnNvbGUubG9nKHBhdGgsIGluZGV4KTtcbiAgICAvLyB3eC5zd2l0Y2hUYWIoeyB1cmw6IHBhdGggfSk7XG4gICAgdGhpcy5zZXREYXRhISh7XG4gICAgICBzZWxlY3RlZDogaW5kZXgsXG4gICAgfSk7XG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file \ No newline at end of file
import { IMyApp } from '../../app';
type Menu = {
pagePath: string;
iconPath: string;
selectedIconPath: string;
text: string;
code: string;
};
const app = getApp<IMyApp>();
const tabList: Menu[] = [
{
pagePath: '/pages/home/home',
iconPath: '/images/tab_shuju_nor@2x.png',
selectedIconPath: '/images/tab_shuju_pre@2x.png',
text: '数据首页',
code: '9001',
},
{
pagePath: '/pages/report/report',
iconPath: '/images/tab_baobiao_nor@2x.png',
selectedIconPath: '/images/tab_baobiao_pre@2x.png',
text: '运营管理',
code: '9002',
},
];
Page({ Page({
onLoad() {
let userRoles = app.globalData.userRoles;
let list = userRoles
.map(item => tabList.find(menu => menu.code === item.menuCode))
.filter(menu => (menu ? true : false));
if (!list.find(item => item.code === '9002'))
list.push(tabList[tabList.length - 1]);
this.setData!({
selected: list.length ? list[0].code : '',
list,
});
},
onShow() { onShow() {
if (wx.hideHomeButton) { if (wx.hideHomeButton) {
wx.hideHomeButton(); wx.hideHomeButton();
} }
}, },
data: { data: {
selected: 0, selected: '',
list: [ list: [],
{
pagePath: '/pages/home/home',
iconPath: '/images/tab_shuju_nor@2x.png',
selectedIconPath: '/images/tab_shuju_pre@2x.png',
text: '数据首页',
},
{
pagePath: '/pages/report/report',
iconPath: '/images/tab_baobiao_nor@2x.png',
selectedIconPath: '/images/tab_baobiao_pre@2x.png',
text: '运营管理',
},
],
}, },
clickHandle(e) { clickHandle(e) {
console.log('in click', e); console.log('in click', e);
let { path, index } = e.detail; let { path, index } = e.detail;
// console.log(path, index); // console.log(path, index);
// wx.switchTab({ url: path }); // wx.switchTab({ url: path });
this.setData({ this.setData!({
selected: index, selected: index,
}); });
}, },
......
<!-- miniprogram/pages/homeAndReport/homeAndReport.wxml --> <!-- miniprogram/pages/homeAndReport/homeAndReport.wxml -->
<view class="container"> <view class="container">
<home wx:if="{{selected === 0}}" /> <home wx:if="{{selected === '9001'}}" />
<report wx:elif="{{selected === 1}}" class="report-wrap" /> <report wx:elif="{{selected === '9002'}}" class="report-wrap" />
<tab-bar checked="{{selected}}" listData="{{list}}" bindcustomevent="clickHandle"></tab-bar> <tab-bar checked="{{selected}}" listData="{{list}}" bindcustomevent="clickHandle"></tab-bar>
</view> </view>
\ No newline at end of file
...@@ -4,10 +4,16 @@ var fetch_1 = require("../../api/fetch"); ...@@ -4,10 +4,16 @@ var fetch_1 = require("../../api/fetch");
var md5 = require('blueimp-md5'); var md5 = require('blueimp-md5');
var app = getApp(); var app = getApp();
Page({ Page({
onLoad: function () { onLoad: function (option) {
console.log(option);
if (app.globalData.token) { if (app.globalData.token) {
this.tokenLoagin(); this.tokenLoagin();
} }
else if (option.logout) {
}
else {
this.codeLogin();
}
}, },
data: { data: {
account: '', account: '',
...@@ -38,47 +44,58 @@ Page({ ...@@ -38,47 +44,58 @@ 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.length
console.log(err); ? userRoles[0].childs
wx.hideLoading(); : [];
wx.showToast({ wx.hideLoading();
title: err.errMsg, wx.redirectTo({
icon: 'none', url: '/pages/homeAndReport/homeAndReport',
}); });
})
.catch(function (err) {
console.log(err);
wx.hideLoading();
wx.showToast({
title: err.errMsg,
icon: 'none',
});
});
}
},
}); });
}, },
loginHandle: function () { loginHandle: function () {
...@@ -86,58 +103,150 @@ Page({ ...@@ -86,58 +103,150 @@ 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: '' });
fetch_1.systemFetch({ fetch_1.systemFetch({
url: '/login/verifyCode', url: '/boss/login/init/data',
method: 'GET',
}) })
.then(function (res) { .then(function (res) {
console.log(res); console.log(res);
return { return res.templates;
code: res.data.verifyCode,
cookie: res.header['Set-Cookie'],
};
}) })
.then(function (_a) { .catch(function (err) {
var code = _a.code, cookie = _a.cookie; return;
var mixpwd = md5(pwd_1); })
return fetch_1.systemFetch({ .then(function (ids) {
url: '/boss/login', var tmplIds = ids && ids.length ? ids.map(function (item) { return item.templateId; }) : [];
method: 'POST', wx.requestSubscribeMessage({
header: { tmplIds: tmplIds,
cookie: cookie, success: function (res) {
console.log('in success', res);
}, },
data: { fail: function (res) {
account: account_1, console.log('in fail', res);
pwd: mixpwd, },
varifyCode: code, complete: function (res) {
console.log('in complete', res);
wx.login({
success: function (res) {
if (res.code) {
var code_2 = res.code;
wx.showLoading({ title: '' });
fetch_1.systemFetch({
url: '/login/verifyCode',
})
.then(function (res) {
console.log(res);
return {
verifyCode: res.data.verifyCode,
cookie: res.header['Set-Cookie'],
};
})
.then(function (_a) {
var verifyCode = _a.verifyCode, cookie = _a.cookie;
var mixpwd = md5(pwd_1);
return fetch_1.systemFetch({
url: '/boss/login',
method: 'POST',
header: {
cookie: cookie,
},
data: {
code: code_2,
account: account_1,
pwd: mixpwd,
varifyCode: verifyCode,
},
});
})
.then(function (res) {
console.log(res);
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.length
? userRoles[0].childs
: [];
try {
wx.setStorageSync('token', token);
}
catch (error) { }
wx.hideLoading();
wx.redirectTo({
url: '/pages/homeAndReport/homeAndReport',
});
})
.catch(function (err) {
console.log(err);
wx.hideLoading();
wx.showToast({
title: err.errMsg,
icon: 'none',
});
});
}
else {
wx.showToast({
title: '登录获取code失败',
icon: 'none',
});
}
},
});
}, },
});
})
.then(function (res) {
console.log(res);
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;
try {
wx.setStorageSync('token', token);
}
catch (error) { }
wx.hideLoading();
wx.redirectTo({
url: '/pages/homeAndReport/homeAndReport',
}); });
}) })
.catch(function (err) { .catch(function (err) {
console.log(err); console.log(err);
wx.hideLoading();
wx.showToast({
title: err.errMsg,
icon: 'none',
});
}); });
} }
}, },
codeLogin: function () {
wx.login({
success: function (res) {
if (res.code) {
var code = res.code;
fetch_1.systemFetch({
url: '/boss/login',
method: 'POST',
data: {
code: code,
},
})
.then(function (res) {
console.log(res);
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.length
? userRoles[0].childs
: [];
try {
wx.setStorageSync('token', token);
}
catch (error) { }
wx.hideLoading();
wx.redirectTo({
url: '/pages/homeAndReport/homeAndReport',
});
})
.catch(function (err) {
console.log(err);
wx.hideLoading();
wx.showToast({
title: err.errMsg,
icon: 'none',
});
});
}
else {
wx.showToast({
title: '登录获取code失败',
icon: 'none',
});
}
},
});
},
nameInputHandle: function (e) { nameInputHandle: function (e) {
var value = e.detail.value; var value = e.detail.value;
this.updateInputValue('account', value); this.updateInputValue('account', value);
...@@ -153,4 +262,4 @@ Page({ ...@@ -153,4 +262,4 @@ Page({
var _a; var _a;
}, },
}); });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUNBLHlDQUE4QztBQUM5QyxJQUFNLEdBQUcsR0FBRyxPQUFPLENBQUMsYUFBYSxDQUFDLENBQUM7QUFHbkMsSUFBTSxHQUFHLEdBQUcsTUFBTSxFQUFVLENBQUM7QUFFN0IsSUFBSSxDQUFDO0lBQ0gsTUFBTTtRQUNKLEVBQUUsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQztZQUN6QixJQUFJLENBQUMsV0FBVyxFQUFFLENBQUM7UUFDckIsQ0FBQztJQUNILENBQUM7SUFDRCxJQUFJLEVBQUU7UUFDSixPQUFPLEVBQUUsRUFBRTtRQUNYLEdBQUcsRUFBRSxFQUFFO1FBQ1AsWUFBWSxFQUFFLEtBQUs7S0FDcEI7SUFDRCxjQUFjO1FBQ1osSUFBSSxDQUFDLE9BQVEsQ0FBQztZQUNaLFlBQVksRUFBRSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsWUFBWTtTQUN0QyxDQUFDLENBQUM7SUFDTCxDQUFDO0lBQ0QsaUJBQWlCO1F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aG9kOiAnUE9TVCcsXG4gICAgICAgICAgaGVhZGVyOiB7XG4gICAgICAgICAgICBjb29raWU6IGNvb2tpZSxcbiAgICAgICAgICB9LFxuICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgIHRva2VuOiBhcHAuZ2xvYmFsRGF0YS50b2tlbixcbiAgICAgICAgICB9LFxuICAgICAgICB9KSxcbiAgICAgIClcbiAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgIGNvbnN0IHtcbiAgICAgICAgICBkYXRhOiB7IHVzZXJJbmZvLCB1c2VyUm9sZXMgfSxcbiAgICAgICAgfSA9IHJlcztcbiAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlckluZm8gPSB1c2VySW5mbztcbiAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlclJvbGVzID0gdXNlclJvbGVzO1xuICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICB3eC5yZWRpcmVjdFRvKHtcbiAgICAgICAgICB1cmw6ICcvcGFnZXMvaG9tZUFuZFJlcG9ydC9ob21lQW5kUmVwb3J0JyxcbiAgICAgICAgfSk7XG4gICAgICB9KVxuICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgdGl0bGU6IGVyci5lcnJNc2csXG4gICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICB9KTtcbiAgICAgIH0pO1xuICB9LFxuICBsb2dpbkhhbmRsZSgpIHtcbiAgICBjb25zb2xlLmxvZyhhcHAuZ2xvYmFsRGF0YSk7XG4gICAgaWYgKHRoaXMudmFsaWRhdGVMb2dpbkRhdGEoKSkge1xuICAgICAgY29uc3QgeyBhY2NvdW50LCBwd2QgfSA9IHRoaXMuZGF0YTtcbiAgICAgIGNvbnNvbGUubG9nKGFjY291bnQsIHB3ZCk7XG4gICAgICB3eC5zaG93TG9hZGluZyh7IHRpdGxlOiAnJyB9KTtcbiAgICAgIHN5c3RlbUZldGNoKHtcbiAgICAgICAgdXJsOiAnL2xvZ2luL3ZlcmlmeUNvZGUnLFxuICAgICAgfSlcbiAgICAgICAgLnRoZW4oKHJlczogd3guUmVxdWVzdFN1Y2Nlc3NDYWxsYmFja1Jlc3VsdCkgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgIGNvZGU6IHJlcy5kYXRhLnZlcmlmeUNvZGUsXG4gICAgICAgICAgICBjb29raWU6IHJlcy5oZWFkZXJbJ1NldC1Db29raWUnXSxcbiAgICAgICAgICB9O1xuICAgICAgICB9KVxuICAgICAgICAudGhlbigoeyBjb2RlLCBjb29raWUgfTogeyBjb2RlOiBzdHJpbmc7IGNvb2tpZTogc3RyaW5nIH0pID0+IHtcbiAgICAgICAgICBsZXQgbWl4cHdkID0gbWQ1KHB3ZCk7XG4gICAgICAgICAgcmV0dXJuIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgIHVybDogJy9ib3NzL2xvZ2luJyxcbiAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgaGVhZGVyOiB7XG4gICAgICAgICAgICAgIGNvb2tpZTogY29va2llLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgYWNjb3VudCxcbiAgICAgICAgICAgICAgcHdkOiBtaXhwd2QsXG4gICAgICAgICAgICAgIHZhcmlmeUNvZGU6IGNvZGUsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0pO1xuICAgICAgICB9KVxuICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgY29uc3Qge1xuICAgICAgICAgICAgdG9rZW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mRhdGEuc2hvd1Bhc3N3b3JkLFxuICAgIH0pO1xuICB9LFxuICB2YWxpZGF0ZUxvZ2luRGF0YSgpIHtcbiAgICBjb25zdCB7IGFjY291bnQsIHB3ZCB9ID0gdGhpcy5kYXRhO1xuICAgIGlmICghYWNjb3VudCkge1xuICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgdGl0bGU6ICfor7fovpPlhaXotKbmiLcnLFxuICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICB9KTtcbiAgICAgIHJldHVybjtcbiAgICB9XG4gICAgaWYgKCFwd2QpIHtcbiAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgIHRpdGxlOiAn6K+36L6T5YWl5a+G56CBJyxcbiAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgfSk7XG4gICAgICByZXR1cm47XG4gICAgfVxuICAgIHJldHVybiB0cnVlO1xuICB9LFxuICB0b2tlbkxvYWdpbigpIHtcbiAgICB3eC5sb2dpbih7XG4gICAgICBzdWNjZXNzOiByZXMgPT4ge1xuICAgICAgICBpZiAocmVzLmNvZGUpIHtcbiAgICAgICAgICBjb25zdCBjb2RlID0gcmVzLmNvZGU7XG5cbiAgICAgICAgICB3eC5zaG93TG9hZGluZyh7IHRpdGxlOiAn55m76ZmG5LitJyB9KTtcbiAgICAgICAgICBzeXN0ZW1GZXRjaCh7XG4gICAgICAgICAgICB1cmw6ICcvbG9naW4vdmVyaWZ5Q29kZScsXG4gICAgICAgICAgfSlcbiAgICAgICAgICAgIC50aGVuKChyZXM6IHd4LlJlcXVlc3RTdWNjZXNzQ2FsbGJhY2tSZXN1bHQpID0+IHtcbiAgICAgICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgICAgICBjb2RlOiByZXMuZGF0YS52ZXJpZnlDb2RlLFxuICAgICAgICAgICAgICAgIGNvb2tpZTogcmVzLmhlYWRlclsnU2V0LUNvb2tpZSddLFxuICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIC50aGVuKCh7IGNvb2tpZSB9OiB7IGNvZGU6IHN0cmluZzsgY29va2llOiBzdHJpbmcgfSkgPT5cbiAgICAgICAgICAgICAgc3lzdGVtRmV0Y2goe1xuICAgICAgICAgICAgICAgIHVybDogJy9ib3NzL2xvZ2luJyxcbiAgICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgICAgICAgICBoZWFkZXI6IHtcbiAgICAgICAgICAgICAgICAgIGNvb2tpZTogY29va2llLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgZGF0YToge1xuICAgICAgICAgICAgICAgICAgY29kZSxcbiAgICAgICAgICAgICAgICAgIHRva2VuOiBhcHAuZ2xvYmFsRGF0YS50b2tlbixcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIClcbiAgICAgICAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgIGNvbnN0IHtcbiAgICAgICAgICAgICAgICB0b2tlbixcbiAgICAgICAgICAgICAgICBkYXRhOiB7IHVzZXJJbmZvLCB1c2VyUm9sZXMgfSxcbiAgICAgICAgICAgICAgfSA9IHJlcztcbiAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudG9rZW4gPSB0b2tlbjtcbiAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlckluZm8gPSB1c2VySW5mbztcbiAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlclJvbGVzID0gdXNlclJvbGVzLmxlbmd0aFxuICAgICAgICAgICAgICAgID8gdXNlclJvbGVzWzBdLmNoaWxkc1xuICAgICAgICAgICAgICAgIDogW107XG4gICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgIHd4LnJlZGlyZWN0VG8oe1xuICAgICAgICAgICAgICAgIHVybDogJy9wYWdlcy9ob21lQW5kUmVwb3J0L2hvbWVBbmRSZXBvcnQnLFxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICB0aXRsZTogZXJyLmVyck1zZyxcbiAgICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgfSk7XG4gIH0sXG4gIGxvZ2luSGFuZGxlKCkge1xuICAgIGNvbnNvbGUubG9nKGFwcC5nbG9iYWxEYXRhKTtcbiAgICBpZiAodGhpcy52YWxpZGF0ZUxvZ2luRGF0YSgpKSB7XG4gICAgICBjb25zdCB7IGFjY291bnQsIHB3ZCB9ID0gdGhpcy5kYXRhO1xuICAgICAgY29uc29sZS5sb2coYWNjb3VudCwgcHdkKTtcbiAgICAgIHN5c3RlbUZldGNoKHtcbiAgICAgICAgdXJsOiAnL2Jvc3MvbG9naW4vaW5pdC9kYXRhJyxcbiAgICAgICAgbWV0aG9kOiAnR0VUJyxcbiAgICAgIH0pXG4gICAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICByZXR1cm4gcmVzLnRlbXBsYXRlcztcbiAgICAgICAgfSlcbiAgICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9KVxuICAgICAgICAudGhlbihpZHMgPT4ge1xuICAgICAgICAgIGxldCB0bXBsSWRzID1cbiAgICAgICAgICAgIGlkcyAmJiBpZHMubGVuZ3RoID8gaWRzLm1hcChpdGVtID0+IGl0ZW0udGVtcGxhdGVJZCkgOiBbXTtcbiAgICAgICAgICB3eC5yZXF1ZXN0U3Vic2NyaWJlTWVzc2FnZSh7XG4gICAgICAgICAgICB0bXBsSWRzOiB0bXBsSWRzLFxuICAgICAgICAgICAgc3VjY2VzcyhyZXMpIHtcbiAgICAgICAgICAgICAgY29uc29sZS5sb2coJ2luIHN1Y2Nlc3MnLCByZXMpO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgICAgIGNvbnNvbGUubG9nKCdpbiBmYWlsJywgcmVzKTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBjb21wbGV0ZShyZXMpIHtcbiAgICAgICAgICAgICAgY29uc29sZS5sb2coJ2luIGNvbXBsZXRlJywgcmVzKTtcbiAgICAgICAgICAgICAgd3gubG9naW4oe1xuICAgICAgICAgICAgICAgIHN1Y2Nlc3M6IHJlcyA9PiB7XG4gICAgICAgICAgICAgICAgICBpZiAocmVzLmNvZGUpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgY29kZSA9IHJlcy5jb2RlO1xuICAgICAgICAgICAgICAgICAgICB3eC5zaG93TG9hZGluZyh7IHRpdGxlOiAnJyB9KTtcbiAgICAgICAgICAgICAgICAgICAgc3lzdGVtRmV0Y2goe1xuICAgICAgICAgICAgICAgICAgICAgIHVybDogJy9sb2dpbi92ZXJpZnlDb2RlJyxcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAudGhlbigocmVzOiB3eC5SZXF1ZXN0U3VjY2Vzc0NhbGxiYWNrUmVzdWx0KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgdmVyaWZ5Q29kZTogcmVzLmRhdGEudmVyaWZ5Q29kZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgY29va2llOiByZXMuaGVhZGVyWydTZXQtQ29va2llJ10sXG4gICAgICAgICAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgICAgLnRoZW4oXG4gICAgICAgICAgICAgICAgICAgICAgICAoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICB2ZXJpZnlDb2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBjb29raWUsXG4gICAgICAgICAgICAgICAgICAgICAgICB9OiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHZlcmlmeUNvZGU6IHN0cmluZztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgY29va2llOiBzdHJpbmc7XG4gICAgICAgICAgICAgICAgICAgICAgICB9KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBtaXhwd2QgPSBtZDUocHdkKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cmw6ICcvYm9zcy9sb2dpbicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGVyOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb29raWU6IGNvb2tpZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvZGUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhY2NvdW50LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHdkOiBtaXhwd2QsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXJpZnlDb2RlOiB2ZXJpZnlDb2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHRva2VuLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhOiB7IHVzZXJJbmZvLCB1c2VyUm9sZXMgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gPSByZXM7XG4gICAgICAgICAgICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS50b2tlbiA9IHRva2VuO1xuICAgICAgICAgICAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlckluZm8gPSB1c2VySW5mbztcbiAgICAgICAgICAgICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJSb2xlcyA9IHVzZXJSb2xlcy5sZW5ndGhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgPyB1c2VyUm9sZXNbMF0uY2hpbGRzXG4gICAgICAgICAgICAgICAgICAgICAgICAgIDogW107XG4gICAgICAgICAgICAgICAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICB3eC5zZXRTdG9yYWdlU3luYygndG9rZW4nLCB0b2tlbik7XG4gICAgICAgICAgICAgICAgICAgICAgICB9IGNhdGNoIChlcnJvcikge31cbiAgICAgICAgICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB3eC5yZWRpcmVjdFRvKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgdXJsOiAnL3BhZ2VzL2hvbWVBbmRSZXBvcnQvaG9tZUFuZFJlcG9ydCcsXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogZXJyLmVyck1zZyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiAn55m75b2V6I635Y+WY29kZeWksei0pScsXG4gICAgICAgICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIH0pO1xuICAgIH1cbiAgICAvLyBmZXRjaCgpXG4gICAgLy8gd3gucmVkaXJlY3RUbyh7XG4gICAgLy8gICB1cmw6ICcvcGFnZXMvaG9tZS9ob21lJ1xuICAgIC8vIH0pXG4gIH0sXG4gIGNvZGVMb2dpbigpIHtcbiAgICB3eC5sb2dpbih7XG4gICAgICBzdWNjZXNzOiByZXMgPT4ge1xuICAgICAgICBpZiAocmVzLmNvZGUpIHtcbiAgICAgICAgICBjb25zdCBjb2RlID0gcmVzLmNvZGU7XG4gICAgICAgICAgc3lzdGVtRmV0Y2goe1xuICAgICAgICAgICAgdXJsOiAnL2Jvc3MvbG9naW4nLFxuICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgICAgIGNvZGUsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0pXG4gICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICBjb25zdCB7XG4gICAgICAgICAgICAgICAgdG9rZW4sXG4gICAgICAgICAgICAgICAgZGF0YTogeyB1c2VySW5mbywgdXNlclJvbGVzIH0sXG4gICAgICAgICAgICAgIH0gPSByZXM7XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnRva2VuID0gdG9rZW47XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJJbmZvID0gdXNlckluZm87XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJSb2xlcyA9IHVzZXJSb2xlcy5sZW5ndGhcbiAgICAgICAgICAgICAgICA/IHVzZXJSb2xlc1swXS5jaGlsZHNcbiAgICAgICAgICAgICAgICA6IFtdO1xuICAgICAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgICAgIHd4LnNldFN0b3JhZ2VTeW5jKCd0b2tlbicsIHRva2VuKTtcbiAgICAgICAgICAgICAgfSBjYXRjaCAoZXJyb3IpIHt9XG4gICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgIHd4LnJlZGlyZWN0VG8oe1xuICAgICAgICAgICAgICAgIHVybDogJy9wYWdlcy9ob21lQW5kUmVwb3J0L2hvbWVBbmRSZXBvcnQnLFxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICB0aXRsZTogZXJyLmVyck1zZyxcbiAgICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgIHRpdGxlOiAn55m75b2V6I635Y+WY29kZeWksei0pScsXG4gICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgfSk7XG4gIH0sXG4gIG5hbWVJbnB1dEhhbmRsZShlKSB7XG4gICAgY29uc3QgdmFsdWUgPSBlLmRldGFpbC52YWx1ZTtcbiAgICB0aGlzLnVwZGF0ZUlucHV0VmFsdWUoJ2FjY291bnQnLCB2YWx1ZSk7XG4gIH0sXG4gIHBhc3N3YXJkSW5vdXRIYW5kbGUoZSkge1xuICAgIGNvbnN0IHZhbHVlID0gZS5kZXRhaWwudmFsdWU7XG4gICAgdGhpcy51cGRhdGVJbnB1dFZhbHVlKCdwd2QnLCB2YWx1ZSk7XG4gIH0sXG4gIHVwZGF0ZUlucHV0VmFsdWUoa2V5OiBzdHJpbmcsIHZhbHVlOiBzdHJpbmcpIHtcbiAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgIFtrZXldOiB2YWx1ZSxcbiAgICB9KTtcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file \ No newline at end of file
...@@ -6,9 +6,14 @@ import { IMyApp } from '../../app'; ...@@ -6,9 +6,14 @@ import { IMyApp } from '../../app';
const app = getApp<IMyApp>(); const app = getApp<IMyApp>();
Page({ Page({
onLoad() { onLoad(option) {
console.log(option);
if (app.globalData.token) { if (app.globalData.token) {
this.tokenLoagin(); this.tokenLoagin();
} else if (option.logout) {
// this.codeLogin();
} else {
this.codeLogin();
} }
}, },
data: { data: {
...@@ -40,105 +45,171 @@ Page({ ...@@ -40,105 +45,171 @@ 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.length
wx.showToast({ ? userRoles[0].childs
title: err.errMsg, : [];
icon: 'none', wx.hideLoading();
}); wx.redirectTo({
}); 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: '' });
systemFetch({ systemFetch({
url: '/login/verifyCode', url: '/boss/login/init/data',
method: 'GET',
}) })
.then((res: wx.RequestSuccessCallbackResult) => { .then(res => {
console.log(res); console.log(res);
return { return res.templates;
code: res.data.verifyCode,
cookie: res.header['Set-Cookie'],
};
}) })
.then(({ code, cookie }: { code: string; cookie: string }) => { .catch(err => {
let mixpwd = md5(pwd); return;
return systemFetch({ })
url: '/boss/login', .then(ids => {
method: 'POST', let tmplIds =
header: { ids && ids.length ? ids.map(item => item.templateId) : [];
cookie: cookie, wx.requestSubscribeMessage({
tmplIds: tmplIds,
success(res) {
console.log('in success', res);
}, },
data: { fail(res) {
account, console.log('in fail', res);
pwd: mixpwd, },
varifyCode: code, complete(res) {
console.log('in complete', res);
wx.login({
success: res => {
if (res.code) {
const code = res.code;
wx.showLoading({ title: '' });
systemFetch({
url: '/login/verifyCode',
})
.then((res: wx.RequestSuccessCallbackResult) => {
console.log(res);
return {
verifyCode: res.data.verifyCode,
cookie: res.header['Set-Cookie'],
};
})
.then(
({
verifyCode,
cookie,
}: {
verifyCode: string;
cookie: string;
}) => {
let mixpwd = md5(pwd);
return systemFetch({
url: '/boss/login',
method: 'POST',
header: {
cookie: cookie,
},
data: {
code,
account,
pwd: mixpwd,
varifyCode: verifyCode,
},
});
},
)
.then(res => {
console.log(res);
const {
token,
data: { userInfo, userRoles },
} = res;
app.globalData.token = token;
app.globalData.userInfo = userInfo;
app.globalData.userRoles = userRoles.length
? userRoles[0].childs
: [];
try {
wx.setStorageSync('token', token);
} catch (error) {}
wx.hideLoading();
wx.redirectTo({
url: '/pages/homeAndReport/homeAndReport',
});
})
.catch(err => {
console.log(err);
wx.hideLoading();
wx.showToast({
title: err.errMsg,
icon: 'none',
});
});
} else {
wx.showToast({
title: '登录获取code失败',
icon: 'none',
});
}
},
});
}, },
});
})
.then(res => {
console.log(res);
const {
token,
data: { userInfo, userRoles },
} = res;
app.globalData.token = token;
app.globalData.userInfo = userInfo;
app.globalData.userRoles = userRoles;
try {
wx.setStorageSync('token', token);
} catch (error) {}
wx.hideLoading();
wx.redirectTo({
url: '/pages/homeAndReport/homeAndReport',
}); });
}) })
.catch(err => { .catch(err => {
console.log(err); console.log(err);
wx.hideLoading();
wx.showToast({
title: err.errMsg,
icon: 'none',
});
}); });
} }
// fetch() // fetch()
...@@ -146,6 +217,54 @@ Page({ ...@@ -146,6 +217,54 @@ Page({
// url: '/pages/home/home' // url: '/pages/home/home'
// }) // })
}, },
codeLogin() {
wx.login({
success: res => {
if (res.code) {
const code = res.code;
systemFetch({
url: '/boss/login',
method: 'POST',
data: {
code,
},
})
.then(res => {
console.log(res);
const {
token,
data: { userInfo, userRoles },
} = res;
app.globalData.token = token;
app.globalData.userInfo = userInfo;
app.globalData.userRoles = userRoles.length
? userRoles[0].childs
: [];
try {
wx.setStorageSync('token', token);
} catch (error) {}
wx.hideLoading();
wx.redirectTo({
url: '/pages/homeAndReport/homeAndReport',
});
})
.catch(err => {
console.log(err);
wx.hideLoading();
wx.showToast({
title: err.errMsg,
icon: 'none',
});
});
} else {
wx.showToast({
title: '登录获取code失败',
icon: 'none',
});
}
},
});
},
nameInputHandle(e) { nameInputHandle(e) {
const value = e.detail.value; const value = e.detail.value;
this.updateInputValue('account', value); this.updateInputValue('account', value);
......
...@@ -11,5 +11,8 @@ ...@@ -11,5 +11,8 @@
</div> </div>
</view> </view>
<button class="login-btn" bindtap="loginHandle">登录</button> <button class="login-btn" bindtap="loginHandle">登录</button>
<!-- <view class="wx-login" bind:tap="codeLogin">
<image class="wx-login-icon" src="../../images/ic_wechat@2x.png"></image>
</view> -->
</view> </view>
</view> </view>
\ No newline at end of file
...@@ -39,3 +39,12 @@ ...@@ -39,3 +39,12 @@
.login-btn { .login-btn {
margin-top: 40rpx; margin-top: 40rpx;
} }
.wx-login {
width: 72rpx;
height: 72rpx;
margin: 80rpx auto 0;
}
.wx-login-icon {
width: 72rpx;
height: 72rpx;
}
"use strict";
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
Object.defineProperty(exports, "__esModule", { value: true });
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({
data: {
areaCount: 0,
year: '',
dataList: [],
selected: {
areaId: undefined,
areaName: '',
month: '',
totalMoney: 0,
},
},
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) {
var areaCount = res.areaCount, platformFees = res.platformFees;
var datalist = new Array(12)
.fill({
totalMoney: 0,
})
.map(function (v, idx) { return (__assign({}, v, { month: idx + 1 })); });
for (var index = 0; index < platformFees.length; index++) {
var element = platformFees[index];
var dataIndex = element.month - 1;
datalist[dataIndex] = __assign({}, datalist[dataIndex], element);
}
_this.setData({
areaCount: areaCount,
dataList: datalist,
});
if (datalist && datalist.length) {
var index = findMaxIndex(datalist, 'totalMoney');
var item = datalist[index];
_this.setData({
selected: item,
});
}
})
.catch(function (err) {
console.log(err);
});
},
yearChangeHandle: function (e) {
console.log(e);
var value = e.detail.value;
this.fetchList({
year: value,
});
},
goRecordPage: function () {
wx.navigateTo({
url: '/pages/platformFeeRecord/platformFeeRecord',
});
},
selectedData: function (e) {
console.log(e);
var data = e.detail;
this.setData({
selected: data,
});
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhdGZvcm1GZWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJwbGF0Zm9ybUZlZS50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2V0RGF0YSEoe1xuICAgICAgICAgIGFyZWFDb3VudCxcbiAgICAgICAgICBkYXRhTGlzdDogZGF0YWxpc3QsXG4gICAgICAgIH0pO1xuICAgICAgICBpZiAoZGF0YWxpc3QgJiYgZGF0YWxpc3QubGVuZ3RoKSB7XG4gICAgICAgICAgbGV0IGluZGV4ID0gZmluZE1heEluZGV4KGRhdGFsaXN0LCAndG90YWxNb25leScpO1xuICAgICAgICAgIGxldCBpdGVtID0gZGF0YWxpc3RbaW5kZXhdO1xuICAgICAgICAgIHRoaXMuc2V0RGF0YSEoe1xuICAgICAgICAgICAgc2VsZWN0ZWQ6IGl0ZW0sXG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH0pXG4gICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgIH0pO1xuICB9LFxuICB5ZWFyQ2hhbmdlSGFuZGxlKGUpIHtcbiAgICBjb25zb2xlLmxvZyhlKTtcbiAgICBjb25zdCB7IHZhbHVlIH0gPSBlLmRldGFpbDtcbiAgICB0aGlzLmZldGNoTGlzdCh7XG4gICAgICB5ZWFyOiB2YWx1ZSxcbiAgICB9KTtcbiAgfSxcbiAgZ29SZWNvcmRQYWdlKCkge1xuICAgIHd4Lm5hdmlnYXRlVG8oe1xuICAgICAgdXJsOiAnL3BhZ2VzL3BsYXRmb3JtRmVlUmVjb3JkL3BsYXRmb3JtRmVlUmVjb3JkJyxcbiAgICB9KTtcbiAgfSxcbiAgc2VsZWN0ZWREYXRhKGUpIHtcbiAgICBjb25zb2xlLmxvZyhlKVxuICAgIGNvbnN0IGRhdGEgPSBlLmRldGFpbDtcbiAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgIHNlbGVjdGVkOiBkYXRhLFxuICAgIH0pO1xuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
{
"navigationBarTitleText": "服务费明细",
"usingComponents": {
"c-select": "../components/Select/Select",
"platform-fee-chart": "../components/PlatformFeeChart/PlatformFeeChart"
}
}
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
Page({
/**
* 页面的初始数据
*/
data: {
areaCount: 0,
year: '',
dataList: [],
selected: {
areaId: undefined,
areaName: '',
month: '',
totalMoney: 0,
},
},
/**
* 生命周期函数--监听页面加载
*/
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 => {
const { areaCount, platformFees } = res;
let datalist = new Array(12)
.fill({
totalMoney: 0,
})
.map((v, idx) => ({ ...v, month: idx + 1 }));
for (let index = 0; index < platformFees.length; index++) {
const element = platformFees[index];
let dataIndex = element.month - 1;
datalist[dataIndex] = {
...datalist[dataIndex],
...element,
};
}
this.setData!({
areaCount,
dataList: datalist,
});
if (datalist && datalist.length) {
let index = findMaxIndex(datalist, 'totalMoney');
let item = datalist[index];
this.setData!({
selected: item,
});
}
})
.catch(err => {
console.log(err);
});
},
yearChangeHandle(e) {
console.log(e);
const { value } = e.detail;
this.fetchList({
year: value,
});
},
goRecordPage() {
wx.navigateTo({
url: '/pages/platformFeeRecord/platformFeeRecord',
});
},
selectedData(e) {
console.log(e)
const data = e.detail;
this.setData!({
selected: data,
});
},
});
<!-- 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" 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">共计{{areaCount}}个校区</view>
</view>
<view class="platformFee-canvas">
<!-- <canvas class="platformFee-canvas" canvas-id="platformFee-canvas" bindtouchstart="selectedData" /> -->
<platform-fee-chart dataList="{{dataList}}" bind:selectedData="selectedData" />
</view>
</view>
<view class="platformFee-block" wx:if="{{selected.month}}">
<view class="platformFee-title">
<view class="platformFee-title-color user"></view>
<view class="platformFee-title-text">各校区服务费({{selected.month}}月)</view>
<view class="platformFee-title-sum">合计:{{selected.totalMoney}}元</view>
</view>
<view class="platformFee-areaList">
<view class="platformFee-areaItem" wx:for="{{selected.areaPlatformFees}}">
<view class="platformFee-areaItem-index">{{index + 1}}</view>
<view class="platformFee-areaItem-name">{{item.areaName}}</view>
<view class="platformFee-areaItem-price">{{item.totalMoney}}元</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 */
.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;
}
"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,
});
}
})
.catch(function (err) {
console.log(err);
});
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhdGZvcm1GZWVSZWNvcmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJwbGF0Zm9ybUZlZVJlY29yZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlDQUFnRDtBQUdoRCxJQUFJLENBQUM7SUFJSCxJQUFJLEVBQUU7UUFDSixPQUFPLEVBQUUsQ0FBQztRQUNWLFFBQVEsRUFBRSxFQUFFO1FBQ1osUUFBUSxFQUFFLEVBQUU7S0FDYjtJQUtELE1BQU0sRUFBRSxVQUFTLE9BQU87UUFBaEIsaUJBV1A7UUFWQyxJQUFJLENBQUMsU0FBUyxDQUFDO1lBQ2IsT0FBTyxFQUFFLElBQUksQ0FBQyxJQUFJLENBQUMsT0FBTztZQUMxQixRQUFRLEVBQUUsSUFBSSxDQUFDLElBQUksQ0FBQyxRQUFRO1NBQzdCLENBQUMsQ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SxcbiAgICB9KTtcbiAgfSxcbiAgZ2V0TW9yZUxpc3RJdGVtKCkge1xuICAgIHRoaXMuZmV0Y2hMaXN0KHtcbiAgICAgIHBhZ2VOdW06IHRoaXMuZGF0YS5wYWdlTnVtICsgMSxcbiAgICAgIHBhZ2VTaXplOiB0aGlzLmRhdGEucGFnZVNpemUsXG4gICAgfSlcbiAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgIGlmIChyZXMuZGF0YSAmJiByZXMuZGF0YS5sZW5ndGgpIHtcbiAgICAgICAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgICAgICAgIGRhdGFMaXN0OiBbLi4udGhpcy5kYXRhLmRhdGFMaXN0LCAuLi5yZXMuZGF0YV0sXG4gICAgICAgICAgICBwYWdlTnVtOiB0aGlzLmRhdGEucGFnZU51bSArIDEsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH0pXG4gICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgIH0pO1xuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
{
"navigationBarTitleText": "缴费记录",
"usingComponents": {}
}
\ No newline at end of file
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 -->
<view class="platformFeeRecord">
<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-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 wx:else class="noData">暂无数据</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 */
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;
}
.noData{
padding: 50rpx;
text-align: center;
}
\ No newline at end of file
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
var fetch_1 = require("../../api/fetch");
var navList = [
{
name: '月度运营分析',
icon: '../../../images/btn_yuedu@2x.png',
url: '/pages/monthOperator/monthOperator',
code: '9102',
reLaunch: false,
},
{
name: '会员反馈',
icon: '../../../images/btn_fsnkui@2x.png',
url: '/pages/feedback/feedback',
code: '9104',
reLaunch: false,
},
{
name: '服务费明细',
icon: '../../../images/btn_jiaona@2x.png',
url: '/pages/platformFee/platformFee',
code: '9105',
reLaunch: false,
},
{
name: '退出登录',
icon: '../../../images/btn_Sign_out@2x.png',
url: '/pages/index/index?logout=true',
reLaunch: true,
},
];
var app = getApp(); var app = getApp();
Component({ Component({
lifetimes: { lifetimes: {
attached: function () { attached: function () {
console.log(app.globalData.userInfo); console.log(app.globalData.userInfo);
var itemList = [];
var showBalance = false;
var pageItem = app.globalData.userRoles.find(function (menu) { return menu.menuCode === '9002'; });
if (pageItem) {
itemList = pageItem.childs
.map(function (item) { return navList.find(function (menu) { return menu.code === item.menuCode; }); })
.filter(function (menu) { return (menu ? true : false); });
if (pageItem.childs.find(function (item) { return item.menuCode === '9101'; }))
showBalance = true;
}
itemList.push(navList[navList.length - 1]);
while (itemList.length % 3) {
itemList.push({});
}
this.setData({ this.setData({
userInfo: app.globalData.userInfo, userInfo: app.globalData.userInfo,
itemList: itemList,
showBalance: showBalance,
}); });
this.fetchPlatformFee();
}, },
}, },
data: { data: {
userInfo: app.globalData.userInfo, userInfo: app.globalData.userInfo,
itemList: [ itemList: [],
{ showBalance: false,
name: '月度运营分析',
icon: '../../../images/btn_yuedu@2x.png',
url: '/pages/monthOperator/monthOperator',
reLaunch: false,
},
{
name: '会员反馈',
icon: '../../../images/btn_fsnkui@2x.png',
url: '/pages/feedback/feedback',
reLaunch: false,
},
{
name: '退出登录',
icon: '../../../images/btn_Sign_out@2x.png',
url: '/pages/index/index',
reLaunch: true,
},
],
account: 0, account: 0,
platformFee: '0.00',
},
methods: {
fetchPlatformFee: function () {
var _this = this;
fetch_1.operatorFetch({
url: '/operateBalance/unpaidMoney',
})
.then(function (res) {
console.log(res);
_this.setData({
platformFee: res.data ? res.data.toFixed(2) : '0.00',
});
})
.catch(function (err) {
console.log(err);
});
},
showRechargeDialog: function () {
var dialog = this.selectComponent('#platformDialog');
dialog.fetchPlatformFee();
},
}, },
}); });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVwb3J0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBR0EsSUFBTSxHQUFHLEdBQUcsTUFBTSxFQUFVLENBQUM7QUFDN0IsU0FBUyxDQUFDO0lBQ1IsU0FBUyxFQUFFO1FBQ1QsUUFBUTtZQUNOLE9BQU8sQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLFVBQVUsQ0FBQyxRQUFRLENBQUMsQ0FBQztZQUNyQyxJQUFJLENBQUMsT0FBUSxDQUFDO2dCQUNaLFFBQVEsRUFBRSxHQUFHLENBQUMsVUFBVSxDQUFDLFFBQVE7YUFDbEMsQ0FBQyxDQUFDO1FBQ0wsQ0FBQztLQUNGO0lBSUQsSUFBSSxFQUFFO1FBQ0osUUFBUSxFQUFFLEdBQUcsQ0FBQyxVQUFVLENBQUMsUUFBUTtRQUNqQyxRQUFRLEVBQUU7WUFDUjtnQkFDRSxJQUFJLEVBQUUsUUFBUTtnQkFDZCxJQUFJLEVBQUUsa0NBQWtDO2dCQUN4QyxHQUFHLEVBQUUsb0NBQW9DO2dCQUN6Qy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1GZWU6ICcwLjAwJyxcbiAgfSxcbiAgbWV0aG9kczoge1xuICAgIGZldGNoUGxhdGZvcm1GZWUoKSB7XG4gICAgICBvcGVyYXRvckZldGNoKHtcbiAgICAgICAgdXJsOiAnL29wZXJhdGVCYWxhbmNlL3VucGFpZE1vbmV5JyxcbiAgICAgIH0pXG4gICAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgcGxhdGZvcm1GZWU6IHJlcy5kYXRhID8gcmVzLmRhdGEudG9GaXhlZCgyKSA6ICcwLjAwJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSlcbiAgICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgfSk7XG4gICAgfSxcbiAgICBzaG93UmVjaGFyZ2VEaWFsb2coKSB7XG4gICAgICBsZXQgZGlhbG9nID0gdGhpcy5zZWxlY3RDb21wb25lbnQoJyNwbGF0Zm9ybURpYWxvZycpO1xuICAgICAgZGlhbG9nLmZldGNoUGxhdGZvcm1GZWUoKTtcbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file \ No newline at end of file
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
"navigationBarTitleText": "运营管理系统", "navigationBarTitleText": "运营管理系统",
"navigationBarBackgroundColor": "#f0f5ff", "navigationBarBackgroundColor": "#f0f5ff",
"usingComponents": { "usingComponents": {
"platform-dialog":"../components/PlatformFeeDialog/PlatformFeeDialog",
"nav-item": "../components/NavItem/NavItem" "nav-item": "../components/NavItem/NavItem"
} }
} }
\ No newline at end of file
import { IMyApp } from '../../app'; import { IMyApp } from '../../app';
import { operatorFetch } from '../../api/fetch';
const navList = [
{
name: '月度运营分析',
icon: '../../../images/btn_yuedu@2x.png',
url: '/pages/monthOperator/monthOperator',
code: '9102',
reLaunch: false,
},
// {
// name: '用户增长分析',
// icon: '../../../images/btn_yonghu@2x.png',
// url: '/pages/userGrowth/userGrowth',
// code:'9103',
// reLaunch: false,
// },
{
name: '会员反馈',
icon: '../../../images/btn_fsnkui@2x.png',
url: '/pages/feedback/feedback',
code: '9104',
reLaunch: false,
},
{
name: '服务费明细',
icon: '../../../images/btn_jiaona@2x.png',
url: '/pages/platformFee/platformFee',
code: '9105',
reLaunch: false,
},
// {
// name: '账户提现',
// icon: '../../../images/btn_tixian@2x.png',
// url: '',
// reLaunch: false,
// },
{
name: '退出登录',
icon: '../../../images/btn_Sign_out@2x.png',
url: '/pages/index/index?logout=true',
reLaunch: true,
},
];
// miniprogram/pages/report/report.js // miniprogram/pages/report/report.js
const app = getApp<IMyApp>(); const app = getApp<IMyApp>();
...@@ -6,9 +50,28 @@ Component({ ...@@ -6,9 +50,28 @@ Component({
lifetimes: { lifetimes: {
attached() { attached() {
console.log(app.globalData.userInfo); console.log(app.globalData.userInfo);
let itemList = [];
let showBalance = false;
let pageItem = app.globalData.userRoles.find(
menu => menu.menuCode === '9002',
);
if (pageItem) {
itemList = pageItem.childs
.map(item => navList.find(menu => menu.code === item.menuCode))
.filter(menu => (menu ? true : false));
if (pageItem.childs.find(item => item.menuCode === '9101'))
showBalance = true;
}
itemList.push(navList[navList.length - 1]);
while (itemList.length % 3) {
itemList.push({});
}
this.setData!({ this.setData!({
userInfo: app.globalData.userInfo, userInfo: app.globalData.userInfo,
itemList,
showBalance,
}); });
this.fetchPlatformFee();
}, },
}, },
/** /**
...@@ -16,46 +79,29 @@ Component({ ...@@ -16,46 +79,29 @@ Component({
*/ */
data: { data: {
userInfo: app.globalData.userInfo, userInfo: app.globalData.userInfo,
itemList: [ itemList: [],
{ showBalance: false,
name: '月度运营分析',
icon: '../../../images/btn_yuedu@2x.png',
url: '/pages/monthOperator/monthOperator',
reLaunch: false,
},
// {
// name: '用户增长分析',
// icon: '../../../images/btn_yonghu@2x.png',
// url: '/pages/userGrowth/userGrowth',
// reLaunch: false,
// },
{
name: '会员反馈',
icon: '../../../images/btn_fsnkui@2x.png',
url: '/pages/feedback/feedback',
reLaunch: false,
},
// {
// name: '服务费缴纳',
// icon: '../../../images/btn_jiaona@2x.png',
// url: '',
// reLaunch: false,
// },
// {
// name: '账户提现',
// icon: '../../../images/btn_tixian@2x.png',
// url: '',
// reLaunch: false,
// },
{
name: '退出登录',
icon: '../../../images/btn_Sign_out@2x.png',
url: '/pages/index/index',
reLaunch: true,
},
// {},
// {},
],
account: 0, account: 0,
platformFee: '0.00',
},
methods: {
fetchPlatformFee() {
operatorFetch({
url: '/operateBalance/unpaidMoney',
})
.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();
},
}, },
}); });
...@@ -24,9 +24,21 @@ ...@@ -24,9 +24,21 @@
<view class="report-header-accountItemValue">10000</view> <view class="report-header-accountItemValue">10000</view>
</view> </view>
</view> --> </view> -->
<view class="report-header-platform" wx:if="{{showBalance}}">
<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}}" bind:tap="showRechargeDialog">
缴费
</button>
</view>
<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" />
</view> </view>
\ No newline at end of file
...@@ -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;
......
{ {
"name": "demo", "name": "wx-manage-shell",
"version": "1.0.1", "version": "1.0.2",
"scripts": { "scripts": {
"compile": "./node_modules/typescript/bin/tsc", "compile": "./node_modules/typescript/bin/tsc",
"tsc": "node ./node_modules/typescript/lib/tsc.js" "tsc": "node ./node_modules/typescript/lib/tsc.js"
......
...@@ -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
} }
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment