瀏覽代碼

功能完善

ahjwen@163.com 4 年之前
父節點
當前提交
95211a212a
共有 2 個文件被更改,包括 10 次插入12 次删除
  1. 二進制
      dist.zip
  2. 10 12
      src/views/recharge/index.vue

二進制
dist.zip


+ 10 - 12
src/views/recharge/index.vue

@@ -235,19 +235,17 @@ export default {
                 })
 
                 // 成功后处理剩下账号数据
-                // const loadingNum = userLists.length - 1
-                console.log('# AAA:', userLists)
+                const loadingNum = userLists.length - 2
                 userLists = LodashArray.drop(userLists)
-                console.log('# BBBB:', userLists)
-                loading.close()
-                // userLists.forEach(async(item, index) => {
-                //   var _data = { pid: this.dataForm.pid, cid: this.dataForm.cid, gfid: this.dataForm.gfid, paypwd: value, username: item, money: this.dataForm.money, recharge: this.dataForm.recharge, payway: this.dataForm.payway, type: this.dataForm.type }
-                //   await this.rechargePlayer(_data, index)
-                //   if (loadingNum === index) {
-                //     loading.close()
-                //     this.updateUserMoney()
-                //   }
-                // })
+                userLists.forEach(async(item, index) => {
+                  var _data = { pid: this.dataForm.pid, cid: this.dataForm.cid, gfid: this.dataForm.gfid, paypwd: value, username: item, money: this.dataForm.money, recharge: this.dataForm.recharge, payway: this.dataForm.payway, type: this.dataForm.type }
+                  await this.rechargePlayer(_data, index)
+                  // console.log('# forEach:', loadingNum, index)
+                  if (loadingNum === index) {
+                    loading.close()
+                    this.updateUserMoney()
+                  }
+                })
               } else {
                 this.catchAccount = this.catchAccount + oneData.username + '\n'
                 this.catchAccountNum++