This commit is contained in:
liushiwei
2023-08-14 17:21:31 +08:00
parent 55d2684c52
commit e99a18a90f
2 changed files with 77 additions and 9 deletions

View File

@@ -234,12 +234,16 @@
pageSize: 100,
currentPage: 1,
step: 400,
randomValue: 400,
timer: [],
loadMallIndex: 0,
loadMode: 0, // 加载模式0表示单个店铺加载1表示一键加载
robMode: 0, // 抢仓模式0表示普通抢仓1表示极速抢仓
isCreateDeliveryBill: false,
// 网络超时次数
networkErrorCount: 0,
successDlgShow: false,
successMallId: '',
successList: []
@@ -314,6 +318,7 @@
},
handleRobClick (e) {
this.networkErrorCount = 0
if (e === 'normal') {
this.robMode = 0
} else if (e === 'faster') {
@@ -476,10 +481,13 @@
if (this.isBegin) {
setTimeout(() => {
this.rob(sn, mallId)
}, this.choosedList.length * this.step)
}, this.choosedList.length * this.step + Math.floor((Math.random() * this.randomValue) + 1))
}
}
}
if (40002 == res.error_code) {
}
})
},
createDeliveryBill(sn, mallId) {