[最新更新]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user