Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kxz-app-phone-h5
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huahua
kxz-app-phone-h5
Commits
4b3983ed
Commit
4b3983ed
authored
Feb 10, 2026
by
huahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
76ff4ccd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
pages/index/index_phone.vue
+6
-3
No files found.
pages/index/index_phone.vue
View file @
4b3983ed
...
...
@@ -2757,6 +2757,9 @@
* 部件旋转开始事件
*/
rotateStart
:
function
(
e
)
{
console
.
log
(
"sdxcs"
)
// 点击选中部件
this
.
itemClick
(
e
);
// 获取当前选中的部件
...
...
@@ -2815,15 +2818,15 @@
/**
* 部件旋转中事件
*/
rotateMove
:
function
(
e
)
{
rotateMove
:
function
(
e
)
{
//获取当前选中的部件
let
distanceX
=
(
this
.
windowWidth
-
this
.
$base
.
isPcWidth
)
/
2
+
this
.
$base
.
isPcWidth
/
2
-
this
.
data
.
editorWidth
/
2
;
let
distanceY
=
(
this
.
data
.
windowHeight
-
this
.
data
.
editorHeight
)
/
2
;
var
item
=
items
[
index
];
item
.
touchMoveX
=
e
.
touches
[
0
].
clientX
;
item
.
touchMoveY
=
e
.
touches
[
0
].
clientY
;
let
cx
=
item
.
x
+
distanceX
;
let
cy
=
item
.
y
+
distanceY
;
let
cx
=
item
.
x
;
let
cy
=
item
.
y
;
let
c1
=
Math
.
atan2
(
item
.
touchY
-
cy
,
item
.
touchX
-
cx
)
*
180
/
(
Math
.
PI
);
let
c2
=
Math
.
atan2
(
item
.
touchMoveY
-
cy
,
item
.
touchMoveX
-
cx
)
*
180
/
(
Math
.
PI
);
let
angleC
;
...
...
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