|
|
@ -74,8 +74,6 @@ |
|
|
|
class="cu-item flex-col" |
|
|
|
v-for="(subItem, subIndex) in item.sonProjectList" |
|
|
|
> |
|
|
|
<!-- @touchstart="start($event, index + '-' + subIndex)" --> |
|
|
|
<!-- <view :key="subItem.id" v-for="subItem in item.sonProjectList"> --> |
|
|
|
<view class="flex items-center justify-between p-3 w-full"> |
|
|
|
<u-icon class="mover" name="https://www.tall.wiki/staticrec/drag.svg" size="48"></u-icon> |
|
|
|
|
|
|
@ -243,12 +241,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
start(e, index) { |
|
|
|
if (!this.changeEvent) { |
|
|
|
return; |
|
|
|
} else { |
|
|
|
e.stopPropagation(); |
|
|
|
} |
|
|
|
console.log('开始'); |
|
|
|
console.log('开始', e); |
|
|
|
setTimeout(() => { |
|
|
|
this.getDate(); |
|
|
|
}, 300); |
|
|
@ -291,11 +284,6 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
move(e, length) { |
|
|
|
if (!this.changeEvent) { |
|
|
|
return; |
|
|
|
} else { |
|
|
|
e.stopPropagation(); |
|
|
|
} |
|
|
|
console.log('移动'); |
|
|
|
this.showMoveImage = true; //悬浮开始 |
|
|
|
const touch = e.touches[0]; |
|
|
@ -337,12 +325,6 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
stops(e, index, length) { |
|
|
|
if (!this.changeEvent) { |
|
|
|
return; |
|
|
|
} else { |
|
|
|
e.stopPropagation(); |
|
|
|
} |
|
|
|
|
|
|
|
console.log('结束'); |
|
|
|
const touch = e.mp.changedTouches[0]; |
|
|
|
let lastIndex = (lastIndex = this.findOverIndex(touch.pageY, length)); |
|
|
|