Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-boss
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
wx-boss
Commits
fd8d37c2
Commit
fd8d37c2
authored
Feb 10, 2020
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into test
parents
f7508ced
ad1491ba
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
PlatformFeeChart.js
...ram/pages/components/PlatformFeeChart/PlatformFeeChart.js
+0
-0
PlatformFeeChart.ts
...ram/pages/components/PlatformFeeChart/PlatformFeeChart.ts
+4
-4
PlatformFeeChart.wxml
...m/pages/components/PlatformFeeChart/PlatformFeeChart.wxml
+2
-2
No files found.
miniprogram/pages/components/PlatformFeeChart/PlatformFeeChart.js
View file @
fd8d37c2
This diff is collapsed.
Click to expand it.
miniprogram/pages/components/PlatformFeeChart/PlatformFeeChart.ts
View file @
fd8d37c2
...
...
@@ -117,13 +117,13 @@ Component({
methods
:
{
clickHandle
(
e
)
{
console
.
log
(
e
);
const
{
t
ouches
}
=
e
.
detail
;
const
{
changedT
ouches
}
=
e
.
detail
;
let
x
=
0
;
let
y
=
0
;
if
(
touches
&&
t
ouches
.
length
)
{
x
=
t
ouches
[
0
].
x
;
y
=
t
ouches
[
0
].
y
;
if
(
changedTouches
&&
changedT
ouches
.
length
)
{
x
=
changedT
ouches
[
0
].
x
;
y
=
changedT
ouches
[
0
].
y
;
}
const
objArr
=
platforFeeChart
.
getSnapRecords
({
x
,
y
});
if
(
objArr
.
length
)
this
.
triggerEvent
(
'selectedData'
,
objArr
[
0
].
_origin
);
...
...
miniprogram/pages/components/PlatformFeeChart/PlatformFeeChart.wxml
View file @
fd8d37c2
<!-- pages/components/PlatformFeeChart/PlatformFeeChart.wxml -->
<ff-canvas id="PlatformFeeChart" canvas-id="PlatformFeeChart" opts="{{ opts }}" bindcanvastouch="clickHandle" />
\ No newline at end of file
<ff-canvas id="PlatformFeeChart" canvas-id="PlatformFeeChart" opts="{{ opts }}" bindcanvastouchend="clickHandle" />
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment