在子元素上添加点击事件:

1
2
3
4
5
6
@tap.stop="testFn($event)"

testFn (e) {

  e.preventDefault();
}

例子:

template:

1
2
3
<view class="orders-center-item" @click="see_more_msg(item)">
  <view class="tuikuan" @tap.stop="tuikuan($event, item)">退款</view>
</view>

methods:

1
2
3
4
5
tuikuan(e, item) {
  e.preventDefault();
  this.tuikuan_showModal = true;
  this.refundApplicationList = item;
},