Commit 876a0654 by 姜雷

修改问题

parent faaae9a4
......@@ -59,28 +59,19 @@ function findMaxIndex(list, key) {
return maxIndex;
}
Component({
lifetimes: {
attached: function () {
var _this = this;
var query = wx.createSelectorQuery().in(this);
query
.select('#PlatformFeeChart')
.boundingClientRect(function (res) {
console.log(res);
_this.setData({
x: res.left,
y: res.top,
});
})
.exec();
},
},
properties: {
dataList: {
type: Array,
value: [],
observer: function (newVal) {
platforFeeChart && platforFeeChart.changeData(newVal);
if (platforFeeChart) {
platforFeeChart.changeData(newVal);
}
else {
setTimeout(function () {
platforFeeChart.changeData(newVal);
}, 1000);
}
if (platforFeeChart) {
var index = findMaxIndex(newVal, 'totalMoney');
if (index !== -1) {
......@@ -103,18 +94,21 @@ Component({
opts: {
onInit: initChart,
},
x: 0,
y: 0,
},
methods: {
clickHandle: function (e) {
console.log(e.detail);
var x = e.detail.x - this.data.x;
var y = e.detail.y - this.data.y;
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGxhdGZvcm1GZWVDaGFydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlBsYXRmb3JtRmVlQ2hhcnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLElBQUksZUFBZSxHQUFHLElBQUksQ0FBQztBQUMzQixJQUFJLEtBQUssR0FBRyxFQUFFLENBQUM7QUFFZixtQkFBbUIsTUFBTSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsRUFBRTtJQUMxQyxJQUFNLElBQUksR0FBRyxFQUFFLENBQUM7SUFDaEIsZUFBZSxHQUFHLElBQUksRUFBRSxDQUFDLEtBQUssQ0FBQztRQUM3QixFQUF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XNbMF0ueDtcbiAgICAgICAgeSA9IHRvdWNoZXNbMF0ueTtcbiAgICAgIH1cbiAgICAgIGNvbnN0IG9iakFyciA9IHBsYXRmb3JGZWVDaGFydC5nZXRTbmFwUmVjb3Jkcyh7IHgsIHkgfSk7XG4gICAgICBpZiAob2JqQXJyLmxlbmd0aCkgdGhpcy50cmlnZ2VyRXZlbnQoJ3NlbGVjdGVkRGF0YScsIG9iakFyclswXS5fb3JpZ2luKTtcbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
......@@ -62,29 +62,35 @@ function findMaxIndex(list, key) {
}
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();
},
},
// 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) {
platforFeeChart && platforFeeChart.changeData(newVal);
if (platforFeeChart) {
platforFeeChart.changeData(newVal);
} else {
setTimeout(() => {
platforFeeChart.changeData(newVal);
}, 1000);
}
if (platforFeeChart) {
let index = findMaxIndex(newVal, 'totalMoney');
if (index !== -1) {
......@@ -107,14 +113,18 @@ Component({
opts: {
onInit: initChart,
},
x: 0,
y: 0,
},
methods: {
clickHandle(e) {
console.log(e.detail);
let x = e.detail.x - this.data.x;
let y = e.detail.y - this.data.y;
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 }}" bind:tap="clickHandle" />
\ No newline at end of file
<ff-canvas id="PlatformFeeChart" canvas-id="PlatformFeeChart" opts="{{ opts }}" bindcanvastouch="clickHandle" />
\ No newline at end of file
/* pages/components/PlatformFeeChart/PlatformFeeChart.wxss */
\ No newline at end of file
/* pages/components/PlatformFeeChart/PlatformFeeChart.wxss */
.PlatformFeeChart {
width: 660rpx;
height: 350rpx;
}
......@@ -3,6 +3,7 @@ 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: {
......@@ -171,6 +172,9 @@ Component({
if (this.data.type === 2) {
this.fetchRechargeOrderQRcode();
}
else {
payTimer && clearInterval(payTimer);
}
},
fetchRechargeOrderQRcode: function () {
var _this = this;
......@@ -204,7 +208,7 @@ Component({
})
.then(function (res) {
wx.hideLoading();
var payQrUrl = res.payQrUrl;
var payQrUrl = res.payQrUrl, orderNum = res.orderNum;
_this.setData({
payQrUrl: payQrUrl,
});
......@@ -227,6 +231,30 @@ Component({
});
}
}, 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();
......@@ -257,4 +285,4 @@ Component({
},
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGxhdGZvcm1GZWVEaWFsb2cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQbGF0Zm9ybUZlZURpYWxvZy50cyJdLCJu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2V0RGF0YSh7XG4gICAgICAgICAgICBpc1NraXAsXG4gICAgICAgICAgICByZWNoYXJnZUJhbGFuY2UsXG4gICAgICAgICAgICBwYXlUaW1lTGltaXQsXG4gICAgICAgICAgICBzaG93RGlhbG9nOiByZWNoYXJnZUJhbGFuY2UgPiAwID8gdHJ1ZSA6IGZhbHNlLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIGZldGNoZWRQbGF0Zm9ybSA9IHRydWU7XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIH0pO1xuICAgIH0sXG4gICAgY2FuY2VsU2hvdygpIHtcbiAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgIHNob3dEaWFsb2c6IGZhbHNlLFxuICAgICAgfSk7XG4gICAgfSxcbiAgICBmZXRjaFJlY2hhcmdlSW5mbygpIHtcbiAgICAgIGNvbnNvbGUubG9nKCdpbiBmZXRjaFJlY2hhcmdlSW5mbycpO1xuICAgICAgd3guc2hvd0xvYWRpbmcoe1xuICAgICAgICB0aXRsZTogJycsXG4gICAgICB9KTtcbiAgICAgIHd4LmxvZ2luKHtcbiAgICAgICAgc3VjY2VzczogcmVzID0+IHtcbiAgICAgICAgICBpZiAocmVzLmNvZGUpIHtcbiAgICAgICAgICAgIGNvbnN0IGVudGl0eSA9IHtcbiAgICAgICAgICAgICAgYmlsbFR5cGU6IHRoaXMuZGF0YS5iaWxsVHlwZSxcbiAgICAgICAgICAgICAgaXNBZ3JlZTogMSxcbiAgICAgICAgICAgICAganNDb2RlOiByZXMuY29kZSxcbiAgICAgICAgICAgICAgb3BlcmF0ZUlkOiB0aGlzLmRhdGEudXNlckluZm8ub3BlcmF0ZUlkLFxuICAgICAgICAgICAgICBvcGVyYXRlTmFtZTogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVOYW1lLFxuICAgICAgICAgICAgICByZWNoYXJnZVR5cGU6ICcyJyxcbiAgICAgICAgICAgICAgdHlwZTogMixcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICBvcGVyYXRvckZldGNoKHtcbiAgICAgICAgICAgICAgdXJsOiAnL29wZXJhdGVCYWxhbmNlL3JlY2hhZ2Uvb3JkZXIvZm9ybWluaScsXG4gICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgICBkYXRhOiBlbnRpdHksXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgY29uc3QgeyBwYXlJbmZvIH0gPSByZXM7XG4gICAgICAgICAgICAgICAgd3gucmVxdWVzdFBheW1lbnQoe1xuICAgICAgICAgICAgICAgICAgdGltZVN0YW1wOiBwYXlJbmZvLnRpbWVTdGFtcC50b1N0cmluZygpLFxuICAgICAgICAgICAgICAgICAgbm9uY2VTdHI6IHBheUluZm8ubm9uY2VTdHIsXG4gICAgICAgICAgICAgICAgICBwYWNrYWdlOiBwYXlJbmZvLnBhY2thZ2UsXG4gICAgICAgICAgICAgICAgICBzaWduVHlwZTogcGF5SW5mby5zaWduVHlwZSxcbiAgICAgICAgICAgICAgICAgIHBheVNpZ246IHBheUluZm8ucGF5U2lnbixcbiAgICAgICAgICAgICAgICAgIHN1Y2Nlc3M6IHJlcyA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICAgICAgdGl0bGU6ICfmlK/ku5jmiJDlip/vvIEnLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgICAgICAgICBzaG93RGlhbG9nOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgZmFpbChyZXMpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogJ+aUr+S7mOWksei0pe+8gScsXG4gICAgICAgICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgICAgdGl0bGU6IGVyci5tc2cgfHwgJ+ivt+axguWksei0pScsXG4gICAgICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgdGl0bGU6IHJlcy5lcnJNc2cgfHwgJ+ivt+axguWksei0pScsXG4gICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgZmFpbChyZXMpIHtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICB0aXRsZTogcmVzLmVyck1zZyB8fCAn6K+35rGC5aSx6LSlJyxcbiAgICAgICAgICAgIGljb246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lY2hhcmdlT3JkZXJRUmNvZGUoKSB7XG4gICAgICB3eC5zaG93TG9hZGluZyh7XG4gICAgICAgIHRpdGxlOiAnJyxcbiAgICAgIH0pO1xuICAgICAgaWYgKHRpbWVyKSB7XG4gICAgICAgIGNsZWFySW50ZXJ2YWwodGltZXIpO1xuICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgIHBheVFyVXJsOiAnJyxcbiAgICAgICAgICBjb3VudERvd246IDYwMCxcbiAgICAgICAgICBjb3VudERvd25TdHJpbmc6ICcw56eSJyxcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgICB3eC5sb2dpbih7XG4gICAgICAgIHN1Y2Nlc3M6IHJlcyA9PiB7XG4gICAgICAgICAgaWYgKHJlcy5jb2RlKSB7XG4gICAgICAgICAgICBjb25zdCBlbnRpdHkgPSB7XG4gICAgICAgICAgICAgIGJpbGxUeXBlOiB0aGlzLmRhdGEuYmlsbFR5cGUsXG4gICAgICAgICAgICAgIGlzQWdyZWU6IDEsXG4gICAgICAgICAgICAgIGpzQ29kZTogcmVzLmNvZGUsXG4gICAgICAgICAgICAgIG9wZXJhdGVJZDogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVJZCxcbiAgICAgICAgICAgICAgb3BlcmF0ZU5hbWU6IHRoaXMuZGF0YS51c2VySW5mby5vcGVyYXRlTmFtZSxcbiAgICAgICAgICAgICAgcmVjaGFyZ2VUeXBlOiAnMicsXG4gICAgICAgICAgICAgIHR5cGU6IDIsXG4gICAgICAgICAgICB9O1xuICAgICAgICAgICAgb3BlcmF0b3JGZXRjaCh7XG4gICAgICAgICAgICAgIHVybDogJy9vcGVyYXRlQmFsYW5jZS9yZWNoYWdlL29yZGVyL2ZvcmNvZGVpbWcnLFxuICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgICAgICAgZGF0YTogZW50aXR5LFxuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHsgcGF5UXJVcmwgfSA9IHJlcztcbiAgICAgICAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgICAgICAgcGF5UXJVcmwsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgdGltZXIgPSBzZXRJbnRlcnZhbCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgICBsZXQgY291bnQgPSB0aGlzLmRhdGEuY291bnREb3duO1xuICAgICAgICAgICAgICAgICAgaWYgKGNvdW50ID09PSAwKSB7XG4gICAgICAgICAgICAgICAgICAgIGNsZWFySW50ZXJ2YWwodGltZXIpO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgICAgICAgICAgIHBheVFyVXJsOiAnJyxcbiAgICAgICAgICAgICAgICAgICAgICBjb3VudERvd246IDYwMCxcbiAgICAgICAgICAgICAgICAgICAgICBjb3VudERvd25TdHJpbmc6ICcw56eSJyxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBsZXQgbmV3Q291bnQgPSBjb3VudCAtIDE7XG4gICAgICAgICAgICAgICAgICAgIGxldCBjb3VudFN0cmluZyA9XG4gICAgICAgICAgICAgICAgICAgICAgTWF0aC5mbG9vcihuZXdDb3VudCAvIDYwKSArICfliIYnICsgKG5ld0NvdW50ICUgNjApICsgJ+enkic7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAgICAgICAgICAgY291bnREb3duOiBuZXdDb3VudCxcbiAgICAgICAgICAgICAgICAgICAgICBjb3VudERvd25TdHJpbmc6IGNvdW50U3RyaW5nLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LCAxMDAwKTtcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgICAgdGl0bGU6IGVyci5tc2cgfHwgJ+ivt+axguWksei0pScsXG4gICAgICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICB0aXRsZTogcmVzLmVyck1zZyB8fCAn6K+35rGC5aSx6LSlJyxcbiAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBmYWlsKHJlcykge1xuICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6IHJlcy5lcnJNc2cgfHwgJ+ivt+axguWksei0pScsXG4gICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGxhdGZvcm1GZWVEaWFsb2cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQbGF0Zm9ybUZlZURpYWxvZy50cyJdLCJuYW1lcyI6W10sIm1hcH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AgICAgIHR5cGU6IDIsXG4gICAgICAgICAgICB9O1xuICAgICAgICAgICAgb3BlcmF0b3JGZXRjaCh7XG4gICAgICAgICAgICAgIHVybDogJy9vcGVyYXRlQmFsYW5jZS9yZWNoYWdlL29yZGVyL2Zvcm1pbmknLFxuICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgICAgICAgZGF0YTogZW50aXR5LFxuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHsgcGF5SW5mbyB9ID0gcmVzO1xuICAgICAgICAgICAgICAgIHd4LnJlcXVlc3RQYXltZW50KHtcbiAgICAgICAgICAgICAgICAgIHRpbWVTdGFtcDogcGF5SW5mby50aW1lU3RhbXAudG9TdHJpbmcoKSxcbiAgICAgICAgICAgICAgICAgIG5vbmNlU3RyOiBwYXlJbmZvLm5vbmNlU3RyLFxuICAgICAgICAgICAgICAgICAgcGFja2FnZTogcGF5SW5mby5wYWNrYWdlLFxuICAgICAgICAgICAgICAgICAgc2lnblR5cGU6IHBheUluZm8uc2lnblR5cGUsXG4gICAgICAgICAgICAgICAgICBwYXlTaWduOiBwYXlJbmZvLnBheVNpZ24sXG4gICAgICAgICAgICAgICAgICBzdWNjZXNzOiByZXMgPT4ge1xuICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiAn5pSv5LuY5oiQ5Yqf77yBJyxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAgICAgICAgICAgc2hvd0RpYWxvZzogZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICAgICAgdGl0bGU6ICfmlK/ku5jlpLHotKXvvIEnLFxuICAgICAgICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIubXNnIHx8ICfor7fmsYLlpLHotKUnLFxuICAgICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgIHRpdGxlOiByZXMuZXJyTXNnIHx8ICfor7fmsYLlpLHotKUnLFxuICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6IHJlcy5lcnJNc2cgfHwgJ+ivt+axguWksei0pScsXG4gICAgICAgICAgICBpY29uO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YgY2xlYXJJbnRlcnZhbChwYXlUaW1lcik7XG4gICAgICB9XG4gICAgfSxcbiAgICBmZXRjaFJlY2hhcmdlT3JkZXJRUmNvZGUoKSB7XG4gICAgICB3eC5zaG93TG9hZGluZyh7XG4gICAgICAgIHRpdGxlOiAnJyxcbiAgICAgIH0pO1xuICAgICAgaWYgKHRpbWVyKSB7XG4gICAgICAgIGNsZWFySW50ZXJ2YWwodGltZXIpO1xuICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgIHBheVFyVXJsOiAnJyxcbiAgICAgICAgICBjb3VudERvd246IDYwMCxcbiAgICAgICAgICBjb3VudERvd25TdHJpbmc6ICcw56eSJyxcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgICB3eC5sb2dpbih7XG4gICAgICAgIHN1Y2Nlc3M6IHJlcyA9PiB7XG4gICAgICAgICAgaWYgKHJlcy5jb2RlKSB7XG4gICAgICAgICAgICBjb25zdCBlbnRpdHkgPSB7XG4gICAgICAgICAgICAgIGJpbGxUeXBlOiB0aGlzLmRhdGEuYmlsbFR5cGUsXG4gICAgICAgICAgICAgIGlzQWdyZWU6IDEsXG4gICAgICAgICAgICAgIGpzQ29kZTogcmVzLmNvZGUsXG4gICAgICAgICAgICAgIG9wZXJhdGVJZDogdGhpcy5kYXRhLnVzZXJJbmZvLm9wZXJhdGVJZCxcbiAgICAgICAgICAgICAgb3BlcmF0ZU5hbWU6IHRoaXMuZGF0YS51c2VySW5mby5vcGVyYXRlTmFtZSxcbiAgICAgICAgICAgICAgcmVjaGFyZ2VUeXBlOiAnMicsXG4gICAgICAgICAgICAgIHR5cGU6IDIsXG4gICAgICAgICAgICB9O1xuICAgICAgICAgICAgb3BlcmF0b3JGZXRjaCh7XG4gICAgICAgICAgICAgIHVybDogJy9vcGVyYXRlQmFsYW5jZS9yZWNoYWdlL29yZGVyL2ZvcmNvZGVpbWcnLFxuICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgICAgICAgZGF0YTogZW50aXR5LFxuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHsgcGF5UXJVcmwsIG9yZGVyTnVtIH0gPSByZXM7XG4gICAgICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgICAgIHBheVFyVXJsLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIHRpbWVyID0gc2V0SW50ZXJ2YWwoKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgbGV0IGNvdW50ID0gdGhpcy5kYXRhLmNvdW50RG93bjtcbiAgICAgICAgICAgICAgICAgIGlmIChjb3VudCA9PT0gMCkge1xuICAgICAgICAgICAgICAgICAgICBjbGVhckludGVydmFsKHRpbWVyKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgICAgICAgICBwYXlRclVybDogJycsXG4gICAgICAgICAgICAgICAgICAgICAgY291bnREb3duOiA2MDAsXG4gICAgICAgICAgICAgICAgICAgICAgY291bnREb3duU3RyaW5nOiAnMOenkicsXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgbGV0IG5ld0NvdW50ID0gY291bnQgLSAxO1xuICAgICAgICAgICAgICAgICAgICBsZXQgY291bnRTdHJpbmcgPVxuICAgICAgICAgICAgICAgICAgICAgIE1hdGguZmxvb3IobmV3Q291bnQgLyA2MCkgKyAn5YiGJyArIChuZXdDb3VudCAlIDYwKSArICfnp5InO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgICAgICAgICAgIGNvdW50RG93bjogbmV3Q291bnQsXG4gICAgICAgICAgICAgICAgICAgICAgY291bnREb3duU3RyaW5nOiBjb3VudFN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSwgMTAwMCk7XG4gICAgICAgICAgICAgICAgcGF5VGltZXIgPSBzZXRJbnRlcnZhbCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZygnaW4gc2V0SW50ZXJ2YWwnKTtcbiAgICAgICAgICAgICAgICAgIG9wZXJhdG9yRmV0Y2goe1xuICAgICAgICAgICAgICAgICAgICB1cmw6ICcvb3BlcmF0ZUJhbGFuY2UvcmVjaGFnZS9zdXJlJyxcbiAgICAgICAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgICAgICAgICAgICAgIGRhdGE6IHsgb3JkZXJOdW06IG9yZGVyTnVtIH0sXG4gICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHsgcmVjaGFyZ2VTdGF0ZSB9ID0gcmVzO1xuICAgICAgICAgICAgICAgICAgICAgIGlmIChyZWNoYXJnZVN0YXRlID09PSAnMScpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiByZXMubXNnIHx8ICcnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBpY29uOiAnc3VjY2VzcycsXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsZWFySW50ZXJ2YWwocGF5VGltZXIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgc2hvd0RpYWxvZzogZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH0sIDMwMDApO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICB0aXRsZTogZXJyLm1zZyB8fCAn6K+35rGC5aSx6LSlJyxcbiAgICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgIHRpdGxlOiByZXMuZXJyTXNnIHx8ICfor7fmsYLlpLHotKUnLFxuICAgICAgICAgICAgICBpY29uOiAnbm9uZScsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGZhaWwocmVzKSB7XG4gICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICB0aXRsZTogcmVzLmVyck1zZyB8fCAn6K+35rGC5aSx6LSlJyxcbiAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSxcbiAgICAgIH0pO1xuICAgIH0sXG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file
......@@ -3,6 +3,7 @@ import { IMyApp } from '../../../app';
const app = getApp<IMyApp>();
let timer = null;
let payTimer = null;
let fetchedPlatform = false;
// pages/components/PlatformFeeDialog/PlatformFeeDialog.js
Component({
......@@ -177,6 +178,8 @@ Component({
});
if (this.data.type === 2) {
this.fetchRechargeOrderQRcode();
} else {
payTimer && clearInterval(payTimer);
}
},
fetchRechargeOrderQRcode() {
......@@ -210,7 +213,7 @@ Component({
})
.then(res => {
wx.hideLoading();
const { payQrUrl } = res;
const { payQrUrl, orderNum } = res;
this.setData({
payQrUrl,
});
......@@ -233,6 +236,30 @@ Component({
});
}
}, 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();
......
......@@ -12,6 +12,7 @@
<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>
......
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