|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="login-container">
|
|
<div class="login-container">
|
|
|
<el-form ref="dataForm" :model="dataForm" :rules="ruleForm">
|
|
<el-form ref="dataForm" :model="dataForm" :rules="ruleForm">
|
|
|
- <el-row :gutter="30" class="el-bg-border">
|
|
|
|
|
|
|
+ <el-row :gutter="30">
|
|
|
<el-col :span="5">
|
|
<el-col :span="5">
|
|
|
<el-form-item label="游戏平台" prop="pid">
|
|
<el-form-item label="游戏平台" prop="pid">
|
|
|
<el-select v-model="dataForm.pid" placeholder="Select" class="filter-item">
|
|
<el-select v-model="dataForm.pid" placeholder="Select" class="filter-item">
|
|
@@ -167,8 +167,7 @@ export default {
|
|
|
thenAccountNum: 0, // 成功个数
|
|
thenAccountNum: 0, // 成功个数
|
|
|
catchAccount: '', // 失败账户
|
|
catchAccount: '', // 失败账户
|
|
|
catchAccountNum: 0 // 失败个数
|
|
catchAccountNum: 0 // 失败个数
|
|
|
- // loadingText: '处理中,请稍等。。。',
|
|
|
|
|
- // loadingTextNum: 0 // 操作百分比
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -176,6 +175,14 @@ export default {
|
|
|
this.getRechargePlatform(this.dataForm.pid)
|
|
this.getRechargePlatform(this.dataForm.pid)
|
|
|
this.getRechargeGame(this.dataForm.pid)
|
|
this.getRechargeGame(this.dataForm.pid)
|
|
|
this.updateUserMoney()
|
|
this.updateUserMoney()
|
|
|
|
|
+
|
|
|
|
|
+ this.$store.dispatch('user/getF5').then((res) => {
|
|
|
|
|
+ console.log('# getF5: ', res)
|
|
|
|
|
+ if (!res) {
|
|
|
|
|
+ this.$store.dispatch('user/setF5')
|
|
|
|
|
+ location.reload()
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
// 更新用户余额
|
|
// 更新用户余额
|
|
@@ -221,6 +228,8 @@ export default {
|
|
|
|
|
|
|
|
this.thenAccount = ''
|
|
this.thenAccount = ''
|
|
|
this.catchAccount = ''
|
|
this.catchAccount = ''
|
|
|
|
|
+ this.thenAccountNum = 0
|
|
|
|
|
+ this.catchAccountNum = 0
|
|
|
|
|
|
|
|
// TODO: 正式服务器未上线,暂时不需要
|
|
// TODO: 正式服务器未上线,暂时不需要
|
|
|
// if ((this.balanceMoney - this.dataForm.money) < 0) {
|
|
// if ((this.balanceMoney - this.dataForm.money) < 0) {
|
|
@@ -292,6 +301,7 @@ export default {
|
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
|
setTimeout((_data) => {
|
|
setTimeout((_data) => {
|
|
|
this.$store.dispatch('common/rechargePlayer', _data).then((res) => {
|
|
this.$store.dispatch('common/rechargePlayer', _data).then((res) => {
|
|
|
|
|
+ console.log('# then:', data.username)
|
|
|
const { code, status } = res
|
|
const { code, status } = res
|
|
|
if (code === 200 && status === true) {
|
|
if (code === 200 && status === true) {
|
|
|
this.thenAccount = this.thenAccount + _data.username + '\n'
|
|
this.thenAccount = this.thenAccount + _data.username + '\n'
|
|
@@ -303,11 +313,14 @@ export default {
|
|
|
resolve()
|
|
resolve()
|
|
|
}
|
|
}
|
|
|
}).catch((res) => {
|
|
}).catch((res) => {
|
|
|
|
|
+ console.log('# catch:', data.username)
|
|
|
|
|
+
|
|
|
this.catchAccount = this.catchAccount + _data.username + '\n'
|
|
this.catchAccount = this.catchAccount + _data.username + '\n'
|
|
|
this.catchAccountNum++
|
|
this.catchAccountNum++
|
|
|
resolve()
|
|
resolve()
|
|
|
})
|
|
})
|
|
|
- }, 2000 * index, data)
|
|
|
|
|
|
|
+ }, 2000 * (index + 1), data)
|
|
|
|
|
+ // 2000 * (index + 1): +1的原因是,这里是从第二条数据开始处理的,异步处理之前单独处理了一个,所以时间久点。
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -354,7 +367,6 @@ export default {
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|