Browse Source

议事厅 议题评论 滑动问题

master
chenteng 5 years ago
parent
commit
c9a811afb0
  1. 1
      pages/topics/interactive/topicArticle/index.js
  2. 2
      pages/topics/interactive/topicArticle/index.wxml

1
pages/topics/interactive/topicArticle/index.js

@ -283,6 +283,7 @@ Page({
const touchMoveY = e.changedTouches[0].clientY//滑动变化坐标
//获取滑动角度
const angle = that.angle({ X: startX, Y: startY }, { X: touchMoveX, Y: touchMoveY })
if (Math.abs(angle) > 30) return;
this.data.commentList.forEach((item,index) => {
item.isTouchMove = false
if (currentIndex == index) {

2
pages/topics/interactive/topicArticle/index.wxml

@ -68,7 +68,7 @@
</view>
</view>
</view>
<view class="del" data-index="{{index}}" data-id="{{item.id}}" catchtap="del">删除</view>deleteTopic
<view class="del" data-index="{{index}}" data-id="{{item.id}}" catchtap="del">删除</view>
</view>
</view>
</view>

Loading…
Cancel
Save