|
@@ -85,7 +85,7 @@
|
|
<view class="cart-bottom">
|
|
<view class="cart-bottom">
|
|
<view class="inner u-flex u-row-between">
|
|
<view class="inner u-flex u-row-between">
|
|
<view class="left u-flex">
|
|
<view class="left u-flex">
|
|
- <view class="checkbox">
|
|
|
|
|
|
+ <view class="checkbox" @click="checkboxClick" style="padding: 10px;">
|
|
<u-checkbox-group @change="allCheckboxChange">
|
|
<u-checkbox-group @change="allCheckboxChange">
|
|
<u-checkbox shape="circle" :checked="allChecked" :name="allCheckbox.name" label="全选"></u-checkbox>
|
|
<u-checkbox shape="circle" :checked="allChecked" :name="allCheckbox.name" label="全选"></u-checkbox>
|
|
</u-checkbox-group>
|
|
</u-checkbox-group>
|
|
@@ -258,6 +258,14 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ checkboxClick(){
|
|
|
|
+ // console.log('checkboxClick',this.allChecked);
|
|
|
|
+ this.dataList.forEach(item => {
|
|
|
|
+ if(item.quantity<=item.stock){
|
|
|
|
+ item.checked = !this.allChecked
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
checkboxChange(n){
|
|
checkboxChange(n){
|
|
// console.log('checkboxChange',n);
|
|
// console.log('checkboxChange',n);
|
|
},
|
|
},
|
|
@@ -447,6 +455,7 @@
|
|
right: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
bottom: 0;
|
|
padding: 0 20rpx;
|
|
padding: 0 20rpx;
|
|
|
|
+ padding-left: 0;
|
|
.total-price{
|
|
.total-price{
|
|
font-size: 30rpx;
|
|
font-size: 30rpx;
|
|
color: #333;
|
|
color: #333;
|