点击全选按钮
This commit is contained in:
parent
11ff80ec4c
commit
ac9b0c4d41
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
<!-- 底部结算栏 -->
|
<!-- 底部结算栏 -->
|
||||||
<view class="bottom">
|
<view class="bottom">
|
||||||
<radio :checked="selectAll" color="#E03440" class="select_btn" />
|
<radio @tap="selectAllChange" :checked="selectAll" color="#E03440" class="select_btn" />
|
||||||
<text class="select_text">全选</text>
|
<text class="select_text">全选</text>
|
||||||
<text class="total_text">合计:</text>
|
<text class="total_text">合计:</text>
|
||||||
<text class="price">{{totalPrice}}</text>
|
<text class="price">{{totalPrice}}</text>
|
||||||
@ -64,6 +64,11 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.cartList[index].goods_count += num
|
this.cartList[index].goods_count += num
|
||||||
|
},
|
||||||
|
// 更改全选状态
|
||||||
|
selectAllChange(){
|
||||||
|
let temp = !this.selectAll
|
||||||
|
this.cartList.forEach(item=>item.goods_select = temp)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//深度监听
|
//深度监听
|
||||||
|
Loading…
Reference in New Issue
Block a user