vip bind & vip user
This commit is contained in:
parent
b07f2bc077
commit
bc91098589
@ -56,3 +56,19 @@ export function getRecharge(data, cursor, pagesize) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getVipBind(data) {
|
||||||
|
return request({
|
||||||
|
url: '/player/vipbindquery',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getVipUser(data) {
|
||||||
|
return request({
|
||||||
|
url: '/player/vipuserquery',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
@ -288,6 +288,18 @@ export const asyncRoutes = [
|
|||||||
name: 'rechargequery',
|
name: 'rechargequery',
|
||||||
meta: { title: '充值查询', pername: 'rechargequery' },
|
meta: { title: '充值查询', pername: 'rechargequery' },
|
||||||
hidden: false
|
hidden: false
|
||||||
|
}, {
|
||||||
|
path: 'vipbindquery',
|
||||||
|
component: () => import('@/views/player/vipbindquery'),
|
||||||
|
name: 'vipbindquery',
|
||||||
|
meta: { title: 'vip绑定查询', pername: 'vipbindquery' },
|
||||||
|
hidden: false
|
||||||
|
}, {
|
||||||
|
path: 'vipuserquery',
|
||||||
|
component: () => import('@/views/player/vipuserquery'),
|
||||||
|
name: 'vipuserquery',
|
||||||
|
meta: { title: 'vip信息查询', pername: 'vipuserquery' },
|
||||||
|
hidden: false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}, {
|
}, {
|
||||||
|
146
src/views/player/vipbindquery.vue
Normal file
146
src/views/player/vipbindquery.vue
Normal file
@ -0,0 +1,146 @@
|
|||||||
|
<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="钱包地址/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
|
||||||
|
:empty-text="emptytext"
|
||||||
|
height="400"
|
||||||
|
:data="vipbindinfo"
|
||||||
|
border
|
||||||
|
fit
|
||||||
|
highlight-current-row
|
||||||
|
style="width: 100%;"
|
||||||
|
>
|
||||||
|
<el-table-column
|
||||||
|
prop="account_address"
|
||||||
|
label="钱包地址"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="passport_address"
|
||||||
|
label="passport"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="lower_case_email"
|
||||||
|
label="Email"
|
||||||
|
/>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { getVipBind } from '@/api/player'
|
||||||
|
|
||||||
|
const pagesize = 10
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'VipBindInfo',
|
||||||
|
data() {
|
||||||
|
var validatequery = (rule, value, callback) => {
|
||||||
|
if (!this.postForm.identity) {
|
||||||
|
callback(new Error('请填写钱包地址/passport'))
|
||||||
|
} else {
|
||||||
|
callback()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
postForm: {
|
||||||
|
identity: ''
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
identity: [{ required: true, validator: validatequery, trigger: 'blur' }]
|
||||||
|
},
|
||||||
|
emptytext: ' ',
|
||||||
|
vipbindinfo: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
submitForm() {
|
||||||
|
try {
|
||||||
|
this.$refs['postForm'].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
const querydata = JSON.parse(JSON.stringify(this.postForm))
|
||||||
|
getVipBind(querydata, 0, pagesize).then(response => {
|
||||||
|
if (response.code === 0) {
|
||||||
|
console.log('response', response)
|
||||||
|
this.vipbindinfo = response.data
|
||||||
|
if (this.vipbindinfo === undefined || this.vipbindinfo.length <= 0) {
|
||||||
|
this.emptytext = 'No data'
|
||||||
|
}
|
||||||
|
this.$message({
|
||||||
|
message: '收到回应',
|
||||||
|
type: 'success',
|
||||||
|
duration: 1200,
|
||||||
|
onClose: () => {
|
||||||
|
// this.$router.push('index')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}).catch(error => {
|
||||||
|
console.log('error', error)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</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>
|
179
src/views/player/vipuserquery.vue
Normal file
179
src/views/player/vipuserquery.vue
Normal file
@ -0,0 +1,179 @@
|
|||||||
|
<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="钱包地址:" class="postInfo-container-item" prop="account_address">
|
||||||
|
<el-input v-model="postForm.account_address" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-button style="margin-left: 10px;" type="success" @click="submitForm()">
|
||||||
|
查询
|
||||||
|
</el-button>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table
|
||||||
|
:empty-text="emptytext"
|
||||||
|
height="400"
|
||||||
|
:data="rechargeinfo"
|
||||||
|
border
|
||||||
|
fit
|
||||||
|
highlight-current-row
|
||||||
|
style="width: 100%;"
|
||||||
|
>
|
||||||
|
<el-table-column
|
||||||
|
prop="account_address"
|
||||||
|
label="钱包地址"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="vip_lv"
|
||||||
|
label="vip等级"
|
||||||
|
width="100"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="escec_balance"
|
||||||
|
label="escec_balance"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="escec_stacking"
|
||||||
|
label="escec_stacking"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="escec_convert"
|
||||||
|
label="escec_convert"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="escec_total"
|
||||||
|
label="escec_total"
|
||||||
|
/>
|
||||||
|
<!-- <el-table-column
|
||||||
|
prop="stacking_last_src_idx"
|
||||||
|
label="stacking_last_src_idx"
|
||||||
|
width="200"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="escec_transfer_last_src_idx"
|
||||||
|
label="escec_transfer_last_src_idx"
|
||||||
|
width="200"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="vester_deposit_last_src_idx"
|
||||||
|
label="vester_deposit_last_src_idx"
|
||||||
|
width="200"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="vester_withdraw_last_src_idx"
|
||||||
|
label="vester_withdraw_last_src_idx"
|
||||||
|
width="200"
|
||||||
|
/> -->
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { getVipUser } from '@/api/player'
|
||||||
|
|
||||||
|
const pagesize = 10
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'VipUserInfo',
|
||||||
|
data() {
|
||||||
|
var validatequery = (rule, value, callback) => {
|
||||||
|
if (!this.postForm.account_address) {
|
||||||
|
callback(new Error('请填钱包地址'))
|
||||||
|
} else {
|
||||||
|
callback()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
postForm: {
|
||||||
|
account_address: ''
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
account_address: [{ required: true, validator: validatequery, trigger: 'blur' }]
|
||||||
|
},
|
||||||
|
emptytext: ' ',
|
||||||
|
rechargeinfo: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
submitForm() {
|
||||||
|
try {
|
||||||
|
this.$refs['postForm'].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
const querydata = JSON.parse(JSON.stringify(this.postForm))
|
||||||
|
getVipUser(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.$message({
|
||||||
|
message: '收到回应',
|
||||||
|
type: 'success',
|
||||||
|
duration: 1200,
|
||||||
|
onClose: () => {
|
||||||
|
// this.$router.push('index')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}).catch(error => {
|
||||||
|
console.log('error', error)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</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>
|
Loading…
x
Reference in New Issue
Block a user