<block v-for="(goods, index) in goodsList" :key="index">
<view
hover-class="goods-hover-class"
:class="[goodsStyleObject, 'u-one-line-three', 'dir-top-nowrap', 'box-grow-0']"
@click.stop="router(goods)"
>
<view class="u-bottom box-grow-1 dir-top-nowrap main-between">
<view v-if="(isDIY && showGoodsName) || isShowGoodsName" :class="[textAlign, 'box-grow-0', 'u-goods-name', 't-omit-two']">
{{ goods.name }}
</view>
<view class="box-grow-1 dir-top-nowrap main-right">
<view class="box-grow-0 u-price-margin dir-left-nowrap cross-center" :class="[!showGoodsPrice && textStyle !== 2 ? 'main-right' : 'main-between', textStyle === 2 ? 'main-center' : '']">
<view v-if="showGoodsPrice || isShowOriginalPrice(goods)" :class="[theme + '-m-text', theme, 'u-goods-price']">
<view v-if="showGoodsPrice" :class="textAlign">{{ goods.price_content }}</view>
<view v-if="isShowOriginalPrice(goods)" :class="[textAlign, 'u-original-price']">¥{{ goods.original_price }}</view>
<view v-if="!isDIY && goods.is_sales === 1 && goods.is_negotiable !== 1" :class="['u-goods-sales']">{{ goods.sales }}</view>
</view>
<view
v-if="isShowCart && goods.goods_stock !== 0 && goods.is_negotiable !== 1 || (isDIY && isShowBuyBtn(goods) && textStyle !== 2)"
:class="['u-cart-btn-icon', 'box-grow-0', 'u-cart-' + buyBtn, theme + '-m-back', theme]"
@click.stop="buyProduct(goods)"
/>
<view v-if="isDIY && isShowBuyBtn(goods) === 0 && textStyle !== 2 && showBuyBtn" class="u-cart-btn-icon" />
</view>
</view>
</view>
</view>
</block>
- 发布:2022-01-25 10:57
- 更新:2022-04-12 19:30
- 阅读:539
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 20H2
HBuilderX类型: 正式
HBuilderX版本号: 3.3.10
第三方开发者工具版本号: 1.05.2201240
基础库版本号: 2.21.4
项目创建方式: HBuilderX
示例代码:
操作步骤:
for循环下click.stop无法传参,click可以,不管是v-on:click.stop活是@click.stop都不行
for循环下click.stop无法传参,click可以,不管是v-on:click.stop活是@click.stop都不行
预期结果:
for循环下click.stop无法传参,click可以,不管是v-on:click.stop活是@click.stop都不行
for循环下click.stop无法传参,click可以,不管是v-on:click.stop活是@click.stop都不行
实际结果:
for循环下click.stop无法传参,click可以,不管是v-on:click.stop活是@click.stop都不行
for循环下click.stop无法传参,click可以,不管是v-on:click.stop活是@click.stop都不行
bug描述:
for循环下click.stop无法传参,click可以,不管是v-on:click.stop活是@click.stop都不行