recharge query
This commit is contained in:
parent
9e47591016
commit
b3d480f01e
@ -48,3 +48,11 @@ export function getGameMall(data, cursor, pagesize) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getRecharge(data, cursor, pagesize) {
|
||||||
|
return request({
|
||||||
|
url: '/player/rechargequery?cursor=' + cursor + '&page_size=' + pagesize,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
@ -282,6 +282,12 @@ export const asyncRoutes = [
|
|||||||
name: 'gamemallquery',
|
name: 'gamemallquery',
|
||||||
meta: { title: '游戏内商品查询', pername: 'gamemallquery' },
|
meta: { title: '游戏内商品查询', pername: 'gamemallquery' },
|
||||||
hidden: false
|
hidden: false
|
||||||
|
}, {
|
||||||
|
path: 'rechargequery',
|
||||||
|
component: () => import('@/views/player/rechargequery'),
|
||||||
|
name: 'rechargequery',
|
||||||
|
meta: { title: '充值查询', pername: 'rechargequery' },
|
||||||
|
hidden: false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}, {
|
}, {
|
||||||
|
@ -155,7 +155,6 @@ export default {
|
|||||||
// this.getList()
|
// this.getList()
|
||||||
},
|
},
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
console.log(row)
|
|
||||||
this.form.blocked = row.blocked
|
this.form.blocked = row.blocked
|
||||||
this.form.account_id = row.account_id
|
this.form.account_id = row.account_id
|
||||||
this.dialogStatus = 'update'
|
this.dialogStatus = 'update'
|
||||||
@ -189,16 +188,13 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
console.log('curpage ', this.curpage)
|
|
||||||
const data = {
|
const data = {
|
||||||
'page_dto': {
|
'page_dto': {
|
||||||
'page': this.curpage,
|
'page': this.curpage,
|
||||||
'pageSize': this.page_size
|
'pageSize': this.page_size
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log('data', data)
|
|
||||||
getBlockPlayerList(data).then(response => {
|
getBlockPlayerList(data).then(response => {
|
||||||
console.log(response)
|
|
||||||
this.blockplayerList = response.data
|
this.blockplayerList = response.data
|
||||||
this.totalpage = response.total_page
|
this.totalpage = response.total_page
|
||||||
this.curpage = response.cur_page
|
this.curpage = response.cur_page
|
||||||
@ -228,7 +224,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
createData() {
|
createData() {
|
||||||
console.log('add ', this.form)
|
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
addBlockPlayer(this.form).then(response => {
|
addBlockPlayer(this.form).then(response => {
|
||||||
@ -247,7 +242,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
updateData() {
|
updateData() {
|
||||||
console.log('update', this.form)
|
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
updateBlockPlayer(this.form).then(response => {
|
updateBlockPlayer(this.form).then(response => {
|
||||||
|
263
src/views/player/rechargequery.vue
Normal file
263
src/views/player/rechargequery.vue
Normal file
@ -0,0 +1,263 @@
|
|||||||
|
<template>
|
||||||
|
<div class="createPost-container">
|
||||||
|
<el-form ref="postForm" :model="postForm" :rules="rules" class="form-container">
|
||||||
|
<div class="createPost-main-container">
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="8">
|
||||||
|
<el-form-item label-width="270px" label="账号id/email/钱包地址/passport:" class="postInfo-container-item" prop="identity">
|
||||||
|
<el-input v-model="postForm.identity" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-button style="margin-left: 10px;" type="success" @click="submitForm()">
|
||||||
|
查询
|
||||||
|
</el-button>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table
|
||||||
|
v-table-scroll-load="nextStream"
|
||||||
|
:empty-text="emptytext"
|
||||||
|
height="400"
|
||||||
|
:data="rechargeinfo"
|
||||||
|
border
|
||||||
|
fit
|
||||||
|
highlight-current-row
|
||||||
|
style="width: 100%;"
|
||||||
|
>
|
||||||
|
<el-table-column
|
||||||
|
prop="idx"
|
||||||
|
label="ID"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="order_id"
|
||||||
|
label="订单号"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="short_order_id"
|
||||||
|
label="短订单号"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="account_address"
|
||||||
|
label="钱包地址"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="passport_address"
|
||||||
|
label="passport地址"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="currency_address"
|
||||||
|
label="货币地址"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="currency_name"
|
||||||
|
label="货币名称"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="item_id"
|
||||||
|
label="item_id"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="item_num"
|
||||||
|
label="item_num"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="createtime"
|
||||||
|
label="创建时间"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="modifytime"
|
||||||
|
label="修改时间"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="diamond"
|
||||||
|
label="diamond"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="pay_status"
|
||||||
|
label="0:支付中 1:支付成功"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="pay_time"
|
||||||
|
label="支付成功时间"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="delivery_status"
|
||||||
|
label="0:未发货 1:发货成功"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="delivery_time"
|
||||||
|
label="发货成功时间"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="receiver_account_id"
|
||||||
|
label="收货人account_id"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="net_id"
|
||||||
|
label="net_id"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="txhash"
|
||||||
|
label="txhash"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="lower_case_email"
|
||||||
|
label="email"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="present_diamond"
|
||||||
|
label="充值赠送钻石"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="return_contribution"
|
||||||
|
label="return_contribution"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { getRecharge } from '@/api/player'
|
||||||
|
|
||||||
|
const pagesize = 10
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'RechargeInfo',
|
||||||
|
data() {
|
||||||
|
var validatequery = (rule, value, callback) => {
|
||||||
|
if (!this.postForm.identity) {
|
||||||
|
callback(new Error('请填写玩家账号id/email/钱包地址/passport'))
|
||||||
|
} else {
|
||||||
|
callback()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
postForm: {
|
||||||
|
identity: ''
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
identity: [{ required: true, validator: validatequery, trigger: 'blur' }]
|
||||||
|
},
|
||||||
|
emptytext: ' ',
|
||||||
|
rechargeinfo: [],
|
||||||
|
cursor: 0,
|
||||||
|
remaining: 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
submitForm() {
|
||||||
|
try {
|
||||||
|
this.$refs['postForm'].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
const querydata = JSON.parse(JSON.stringify(this.postForm))
|
||||||
|
getRecharge(querydata, 0, pagesize).then(response => {
|
||||||
|
if (response.code === 0) {
|
||||||
|
console.log('response', response)
|
||||||
|
this.rechargeinfo = response.data
|
||||||
|
if (this.rechargeinfo === undefined || this.rechargeinfo.length <= 0) {
|
||||||
|
this.emptytext = 'No data'
|
||||||
|
}
|
||||||
|
this.cursor = response.page.next_cursor
|
||||||
|
this.remaining = response.page.remaining
|
||||||
|
this.$message({
|
||||||
|
message: '收到回应',
|
||||||
|
type: 'success',
|
||||||
|
duration: 1200,
|
||||||
|
onClose: () => {
|
||||||
|
// this.$router.push('index')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}).catch(error => {
|
||||||
|
console.log('error', error)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
nextStream() {
|
||||||
|
if (this.remaining > 0) {
|
||||||
|
this.remaining = 0
|
||||||
|
const querydata = JSON.parse(JSON.stringify(this.postForm))
|
||||||
|
getRecharge(querydata, this.cursor, pagesize).then(response => {
|
||||||
|
if (response.code === 0) {
|
||||||
|
console.log('next response', response)
|
||||||
|
this.rechargeinfo = this.rechargeinfo.concat(response.data)
|
||||||
|
this.cursor = response.page.next_cursor
|
||||||
|
this.remaining = response.page.remaining
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
@import "~@/styles/mixin.scss";
|
||||||
|
|
||||||
|
.createPost-container {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.createPost-main-container {
|
||||||
|
padding: 40px 45px 20px 50px;
|
||||||
|
|
||||||
|
.postInfo-container {
|
||||||
|
position: relative;
|
||||||
|
@include clearfix;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
|
||||||
|
.postInfo-container-item {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.word-counter {
|
||||||
|
width: 40px;
|
||||||
|
position: absolute;
|
||||||
|
right: 10px;
|
||||||
|
top: 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.article-textarea ::v-deep {
|
||||||
|
textarea {
|
||||||
|
padding-right: 40px;
|
||||||
|
resize: none;
|
||||||
|
border: none;
|
||||||
|
border-radius: 0px;
|
||||||
|
border-bottom: 1px solid #bfcbd9;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
@ -144,7 +144,6 @@ export default {
|
|||||||
// this.getList()
|
// this.getList()
|
||||||
},
|
},
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
console.log(row)
|
|
||||||
this.form.type = row.type
|
this.form.type = row.type
|
||||||
this.form.account_id = row.account_id
|
this.form.account_id = row.account_id
|
||||||
this.dialogStatus = 'update'
|
this.dialogStatus = 'update'
|
||||||
@ -178,16 +177,13 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
console.log('curpage ', this.curpage)
|
|
||||||
const data = {
|
const data = {
|
||||||
'page_dto': {
|
'page_dto': {
|
||||||
'page': this.curpage,
|
'page': this.curpage,
|
||||||
'pageSize': this.page_size
|
'pageSize': this.page_size
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log('data', data)
|
|
||||||
getWhiteList(data).then(response => {
|
getWhiteList(data).then(response => {
|
||||||
console.log(response)
|
|
||||||
this.whitelist = response.data
|
this.whitelist = response.data
|
||||||
this.totalpage = response.total_page
|
this.totalpage = response.total_page
|
||||||
this.curpage = response.cur_page
|
this.curpage = response.cur_page
|
||||||
@ -217,7 +213,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
createData() {
|
createData() {
|
||||||
console.log('add ', this.form)
|
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
addWhiteList(this.form).then(response => {
|
addWhiteList(this.form).then(response => {
|
||||||
|
@ -118,7 +118,6 @@ export default {
|
|||||||
// this.getList()
|
// this.getList()
|
||||||
},
|
},
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
console.log(row)
|
|
||||||
this.form.enable = row.enable
|
this.form.enable = row.enable
|
||||||
this.form.user_identity = row.user_identity
|
this.form.user_identity = row.user_identity
|
||||||
this.dialogStatus = 'update'
|
this.dialogStatus = 'update'
|
||||||
@ -129,16 +128,13 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
console.log('curpage ', this.curpage)
|
|
||||||
const data = {
|
const data = {
|
||||||
'page_dto': {
|
'page_dto': {
|
||||||
'page': this.curpage,
|
'page': this.curpage,
|
||||||
'pageSize': this.page_size
|
'pageSize': this.page_size
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log('data', data)
|
|
||||||
getSuperWhiteList(data).then(response => {
|
getSuperWhiteList(data).then(response => {
|
||||||
console.log(response)
|
|
||||||
this.superwhitelist = response.data
|
this.superwhitelist = response.data
|
||||||
this.totalpage = response.total_page
|
this.totalpage = response.total_page
|
||||||
this.curpage = response.cur_page
|
this.curpage = response.cur_page
|
||||||
@ -168,7 +164,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
createData() {
|
createData() {
|
||||||
console.log('add ', this.form)
|
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
addSuperWhiteList(this.form).then(response => {
|
addSuperWhiteList(this.form).then(response => {
|
||||||
@ -187,7 +182,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
updateData() {
|
updateData() {
|
||||||
console.log('update', this.form)
|
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
updateSuperWhiteList(this.form).then(response => {
|
updateSuperWhiteList(this.form).then(response => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user