5***@qq.com
5***@qq.com
  • 发布:2018-12-21 09:34
  • 更新:2022-03-15 15:20
  • 阅读:7566

怎么处理微信小程序的catchtap事件

分类:uni-app

怎么处理微信小程序的catchtap事件

2018-12-21 09:34 负责人:无 分享
已邀请:
虫雪浓

虫雪浓 - 热爱生活,热爱编程

海米

海米 - 前端漫迷

@click.stop 失效 @click.navtive.stop也失效 查看微信开发者工具,并没有转换成catchtap

海米

海米 - 前端漫迷

<view @click="$emit('onClick', 2 index)" class="bg-white margin-bottom padding-xs radius" v-for="(item, index) of lrVal(0)" :key="index">
<!-- 商品图片 -->
<image lazy-load mode="widthFix" :src="item.thumb" style="width: 100%;"></image>
<!-- 商品详情 -->
<view class="info">{{ item.info }}</view>
<!-- 商品标签 -->
<view v-if="item.tag.length > 0" class="tag flex flex-wrap">
<view v-for="(itemB, indexB) of item.tag" :key="indexB" class="cu-tag line-red">{{ itemB }}</view>
</view>
<!-- 价格 -->
<view class="price">
<view>
<text class="text-price text-red text-xxl text-bold margin-right-xs">{{ item.price.now }}</text>
<text class="text-price text-grey margin-right-xs">{{ item.price.old }}</text>
<text v-if="item.price.vip" class="vip bg-yellow light padding-lr-xs block">
<text>会员价:</text>
<text class="text-price ">{{ item.price.vip }}</text>
</text>
</view>
</view>
<view class="relevance flex justify-between">
<text class="text-grey">{{ item.relevance.good }}</text>
<text @click.stop="$emit('relevance',2
index)">{{ item.relevance.btn }}</text>
</view>
</view>

海米

海米 - 前端漫迷

猜测:1.分包 2.底层代码父元素指向问题 但又感觉都不可能。

该问题目前已经被锁定, 无法添加新回复