Commit fd8d37c2 by 姜雷

Merge branch 'develop' into test

parents f7508ced ad1491ba
...@@ -98,12 +98,12 @@ Component({ ...@@ -98,12 +98,12 @@ Component({
methods: { methods: {
clickHandle: function (e) { clickHandle: function (e) {
console.log(e); console.log(e);
var touches = e.detail.touches; var changedTouches = e.detail.changedTouches;
var x = 0; var x = 0;
var y = 0; var y = 0;
if (touches && touches.length) { if (changedTouches && changedTouches.length) {
x = touches[0].x; x = changedTouches[0].x;
y = touches[0].y; y = changedTouches[0].y;
} }
var objArr = platforFeeChart.getSnapRecords({ x: x, y: y }); var objArr = platforFeeChart.getSnapRecords({ x: x, y: y });
if (objArr.length) if (objArr.length)
...@@ -111,4 +111,4 @@ Component({ ...@@ -111,4 +111,4 @@ Component({
}, },
}, },
}); });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGxhdGZvcm1GZWVDaGFydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlBsYXRmb3JtRmVlQ2hhcnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLElBQUksZUFBZSxHQUFHLElBQUksQ0FBQztBQUMzQixJQUFJLEtBQUssR0FBRyxFQUFFLENBQUM7QUFFZixtQkFBbUIsTUFBTSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsRUFBRTtJQUMxQyxJQUFNLElBQUksR0FBRyxFQUFFLENBQUM7SUFDaEIsZUFBZSxHQUFHLElBQUksRUFBRSxDQUFDLEtBQUssQ0FBQztRQUM3QixFQUFFLEVBQUUsTUFBTTtRQUNWLEtBQUssT0FBQTtRQUNMLE1BQU0sUUFBQTtLQUNQLENBQUMsQ0FBQztJQUVILGVBQWUsQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFO1FBQzNCLEtBQUssRUFBRTtZQUNMLEdBQUcsRUFBRSxDQUFDO1lBQ04sR0FBRyxFQUFFLEVBQUU7U0FDUjtLQUNGLENBQUMsQ0F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gICAgfVxuICAgICAgY29uc3Qgb2JqQXJyID0gcGxhdGZvckZlZUNoYXJ0LmdldFNuYXBSZWNvcmRzKHsgeCwgeSB9KTtcbiAgICAgIGlmIChvYmpBcnIubGVuZ3RoKSB0aGlzLnRyaWdnZXJFdmVudCgnc2VsZWN0ZWREYXRhJywgb2JqQXJyWzBdLl9vcmlnaW4pO1xuICAgIH0sXG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file \ No newline at end of file
...@@ -117,13 +117,13 @@ Component({ ...@@ -117,13 +117,13 @@ Component({
methods: { methods: {
clickHandle(e) { clickHandle(e) {
console.log(e); console.log(e);
const { touches } = e.detail; const { changedTouches } = e.detail;
let x = 0; let x = 0;
let y = 0; let y = 0;
if (touches && touches.length) { if (changedTouches && changedTouches.length) {
x = touches[0].x; x = changedTouches[0].x;
y = touches[0].y; y = changedTouches[0].y;
} }
const objArr = platforFeeChart.getSnapRecords({ x, y }); const objArr = platforFeeChart.getSnapRecords({ x, y });
if (objArr.length) this.triggerEvent('selectedData', objArr[0]._origin); if (objArr.length) this.triggerEvent('selectedData', objArr[0]._origin);
......
<!-- pages/components/PlatformFeeChart/PlatformFeeChart.wxml --> <!-- pages/components/PlatformFeeChart/PlatformFeeChart.wxml -->
<ff-canvas id="PlatformFeeChart" canvas-id="PlatformFeeChart" opts="{{ opts }}" bindcanvastouch="clickHandle" /> <ff-canvas id="PlatformFeeChart" canvas-id="PlatformFeeChart" opts="{{ opts }}" bindcanvastouchend="clickHandle" />
\ No newline at end of file \ No newline at end of file
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