Просмотр исходного кода

避免事件冒泡 更换选中区域

xiaohaizhao 1 год назад
Родитель
Сommit
d8629acbcd
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packageA/activity/selectProduct/index.wxml

+ 2 - 2
packageA/activity/selectProduct/index.wxml

@@ -1,8 +1,8 @@
 <van-search class="search" value="{{ params.content.where.condition }}" shape="round" placeholder="请输入搜索关键词" bind:search='startSearch' bind:clear='onClear' />
 <custom id="Custom" />
 <Yl_ListBox id='ListBox' bind:getlist='getList'>
-	<navigator url="#" wx:for="{{list}}" wx:key="itemid" class="item-box" data-id="{{item[idname]}}" data-item="{{item}}" bindtap="{{item.groupqty!=0 && item.maxQty<=0?'':'changeResult'}}">
-		<view class="top" bindtap="changeResults" data-item="{{item}}">
+	<navigator url="#" wx:for="{{list}}" wx:key="itemid" class="item-box" data-id="{{item[idname]}}" data-item="{{item}}">
+		<view class="top" bindtap="changeResults" data-item="{{item}}" bindtap="{{item.groupqty!=0 && item.maxQty<=0?'':'changeResult'}}">
 			<view class="image">
 				<van-image width="100%" height="100%" fit="cover" src="{{item.attinfos[0].subfiles[0].url||item.attinfos[0].url||item.cover}}" use-loading-slot use-error-slot lazy-load>
 					<van-loading slot="loading" type="spinner" size="20" vertical />