[最新更新]

This commit is contained in:
2024-03-04 15:13:17 +08:00
parent 51a04d53ce
commit ee98f5921d
42 changed files with 1853 additions and 74 deletions

View File

@@ -172,13 +172,18 @@ Page({
if (goodsList[j].shop.mallState){
sellerLengh++
if (sellerLengh == goodsList.length){
console.log('全选')
allCheckbox = true
}else{
console.log('取消全选')
allCheckbox = false
}
}
}
if(sellerLengh == 0) {allCheckbox = false}
this.allCheckbox('checkbox')
this.setData({
@@ -192,6 +197,7 @@ Page({
* 全选
*/
allCheckbox(type){
console.log(type)
let goodsLenght = 0,
allCheckbox = this.data.allCheckbox,
goodsList = this.data.bags