|
@@ -38,7 +38,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
|
|
- <el-col :span="4">
|
|
|
|
|
|
|
+ <el-col :span="3">
|
|
|
<el-form-item label="充值账户" prop="username" class="filter-item">
|
|
<el-form-item label="充值账户" prop="username" class="filter-item">
|
|
|
<span style="font-size: 5px; color: #67C23A;">:{{ accountNum }}</span>
|
|
<span style="font-size: 5px; color: #67C23A;">:{{ accountNum }}</span>
|
|
|
<el-input
|
|
<el-input
|
|
@@ -49,7 +49,17 @@
|
|
|
@change="setAccountNum"
|
|
@change="setAccountNum"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <span v-show="repeatNumList">重复账号:{{ repeatNumList }}</span>
|
|
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+
|
|
|
|
|
+ <el-col v-show="repeatNumList" :span="3">
|
|
|
|
|
+ <el-form-item label="重复账号:" class="filter-item">
|
|
|
|
|
+ <span style="font-size: 5px; color: #F56C6C;">:{{ repeatNumNum }}</span>
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="repeatNumList"
|
|
|
|
|
+ type="textarea"
|
|
|
|
|
+ :autosize="{ minRows: 15, maxRows: 100 }"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="5">
|
|
<el-col :span="5">
|
|
@@ -114,7 +124,6 @@ export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
// accountHandleSuccess: '', // 处理成功账号
|
|
// accountHandleSuccess: '', // 处理成功账号
|
|
|
- repeatNumList: [], // 重复账号
|
|
|
|
|
dataForm: {
|
|
dataForm: {
|
|
|
pid: 'd65aa6d7614589bffe62456b88e98811', // 游戏平台ID;默认魅族平台
|
|
pid: 'd65aa6d7614589bffe62456b88e98811', // 游戏平台ID;默认魅族平台
|
|
|
cid: '', // 渠道账号ID
|
|
cid: '', // 渠道账号ID
|
|
@@ -151,6 +160,9 @@ export default {
|
|
|
rechargeGame: [], // 游戏列表
|
|
rechargeGame: [], // 游戏列表
|
|
|
|
|
|
|
|
accountNum: 0, // 总账户个数
|
|
accountNum: 0, // 总账户个数
|
|
|
|
|
+ repeatNumList: '', // 重复账号列表
|
|
|
|
|
+ repeatNumNum: 0, // 重复账号个数
|
|
|
|
|
+
|
|
|
thenAccount: '', // 成功账户
|
|
thenAccount: '', // 成功账户
|
|
|
thenAccountNum: 0, // 成功个数
|
|
thenAccountNum: 0, // 成功个数
|
|
|
catchAccount: '', // 失败账户
|
|
catchAccount: '', // 失败账户
|
|
@@ -180,21 +192,28 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.accountNum = 0
|
|
this.accountNum = 0
|
|
|
this.repeatNumList = []
|
|
this.repeatNumList = []
|
|
|
|
|
+ this.repeatNumNum = 0
|
|
|
|
|
+
|
|
|
var newQuestion = this.dataForm.username.replace(/\n\n/, '\n')
|
|
var newQuestion = this.dataForm.username.replace(/\n\n/, '\n')
|
|
|
const list = newQuestion.split('\n')
|
|
const list = newQuestion.split('\n')
|
|
|
|
|
|
|
|
- var newList = [] // 处理重复数据
|
|
|
|
|
|
|
+ var newList = []
|
|
|
for (var i = 0; i < list.length; i++) {
|
|
for (var i = 0; i < list.length; i++) {
|
|
|
|
|
+ if (list[i] === '') {
|
|
|
|
|
+ continue
|
|
|
|
|
+ }
|
|
|
// 账户去重,并提示
|
|
// 账户去重,并提示
|
|
|
if (newList.indexOf(list[i]) === -1) {
|
|
if (newList.indexOf(list[i]) === -1) {
|
|
|
this.accountNum++
|
|
this.accountNum++
|
|
|
newList.push(list[i])
|
|
newList.push(list[i])
|
|
|
} else {
|
|
} else {
|
|
|
if (this.repeatNumList.indexOf(list[i]) === -1) {
|
|
if (this.repeatNumList.indexOf(list[i]) === -1) {
|
|
|
|
|
+ this.repeatNumNum++
|
|
|
this.repeatNumList.push(list[i])
|
|
this.repeatNumList.push(list[i])
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ this.repeatNumList = this.repeatNumList.join().replace(new RegExp(',', 'g'), '\n')
|
|
|
this.dataForm.username = newList.join().replace(new RegExp(',', 'g'), '\n')
|
|
this.dataForm.username = newList.join().replace(new RegExp(',', 'g'), '\n')
|
|
|
},
|
|
},
|
|
|
async onSubmit() {
|
|
async onSubmit() {
|
|
@@ -323,8 +342,10 @@ export default {
|
|
|
this.$store.dispatch('common/rechargeGame', pid).then((res) => {
|
|
this.$store.dispatch('common/rechargeGame', pid).then((res) => {
|
|
|
this.rechargeGame = res
|
|
this.rechargeGame = res
|
|
|
|
|
|
|
|
- // TODO: 判断当前账户是否有默认选项,没有则选中第一条。
|
|
|
|
|
- this.dataForm.gfid = 42670
|
|
|
|
|
|
|
+ // 设置默认游戏
|
|
|
|
|
+ if (res.find(item => item.id === 54252)) {
|
|
|
|
|
+ this.dataForm.gfid = 54252
|
|
|
|
|
+ }
|
|
|
}).catch((res) => {
|
|
}).catch((res) => {
|
|
|
return Message({
|
|
return Message({
|
|
|
message: res,
|
|
message: res,
|