|
@@ -83,10 +83,12 @@
|
|
|
-
|
|
|
</view>
|
|
|
<input
|
|
|
+ @click.stop
|
|
|
type="number"
|
|
|
min="1"
|
|
|
class="number"
|
|
|
value="1"
|
|
|
+ @input="printDigitNum(item.cart_id,$event, i,index)"
|
|
|
v-model="item.goods_num"
|
|
|
readonly="true"
|
|
|
/>
|
|
@@ -165,7 +167,11 @@ export default {
|
|
|
saveSelectedCartGoods: 'saveSelectedCartGoods',
|
|
|
saveVoucher: 'saveVoucher'
|
|
|
}),
|
|
|
-
|
|
|
+ printDigitNum(id,e,i,index){
|
|
|
+ if(e.detail.value != ''){
|
|
|
+ this.updateCartQuantity(id, e.detail.value, i, index)
|
|
|
+ }
|
|
|
+ },
|
|
|
/*
|
|
|
* getCartList: 获取购物车列表
|
|
|
*/
|