优化商品加减数量的作用范围,减少误触可能
This commit is contained in:
parent
3115b45600
commit
71b2bc1d6b
@ -112,24 +112,23 @@
|
||||
</view>
|
||||
|
||||
<view class="GGList" v-if="item.isShow">
|
||||
<view class="GGItem" v-for="ite in item.commodity_goods_info_list" :key="ite.id"
|
||||
@click="goods(item)">
|
||||
<view class="GGItem_Image">
|
||||
<view class="GGItem" v-for="ite in item.commodity_goods_info_list" :key="ite.id">
|
||||
<view class="GGItem_Image" @click="goods(item)">
|
||||
<view class="tag tag-img" v-if="ite.is_same_day">当日达</view>
|
||||
<image :src="handleImageUrl(ite.commodity_pic)" mode="aspectFill"></image>
|
||||
</view>
|
||||
<view class="GGItem_Con">
|
||||
<view class="GGItem_Con_Tit">
|
||||
<view class="GGItem_Con_Tit" @click="goods(item)">
|
||||
<view class="tag tag-text" v-if="ite.is_same_day">当日达</view>
|
||||
{{ ite.goods_name }}
|
||||
</view>
|
||||
<view class="GGItem_Con_Msg">
|
||||
<view class="GGItem_Con_Msg_left">
|
||||
<view class="GGItem_Con_Msg_left" @click="goods(item)">
|
||||
<span>¥</span>{{ ite.sales_price }}
|
||||
</view>
|
||||
<view class="GGItem_Con_Msg_right">
|
||||
<u-number-box :value="ite.quantity || 0" :min="0"
|
||||
@change="(value) => handleQuantityChange(value, ite)">
|
||||
@change="(value) => handleQuantityChange.stop(value, ite)">
|
||||
<view slot="minus" class="minus">
|
||||
<u-icon name="minus" size="20"></u-icon>
|
||||
</view>
|
||||
@ -216,7 +215,6 @@ export default {
|
||||
this.$set(param, 'quantity', goods ? goods.count : 0);
|
||||
});
|
||||
}) || [];
|
||||
console.log("🚀 ~ commodityList:", commodityList)
|
||||
this.searchGoodsLisat = commodityList;
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user