thirdpayment
elf 11 months ago
parent 548696c475
commit 04f7820458

@ -21,7 +21,7 @@
<el-col :span="24"> <el-col :span="24">
<el-descriptions title="开户信息"> <el-descriptions title="开户信息">
<el-descriptions-item label="用户名" v-if="userInfo != null && userInfo.realname_flag==='Y'">{{userInfo.real_name}}</el-descriptions-item> <el-descriptions-item label="用户名" v-if="userInfo != null && userInfo.realname_flag==='Y'">{{userInfo.real_name}}</el-descriptions-item>
<el-descriptions-item label="用户名" v-else>--</el-descriptions-item> <el-descriptions-item label="用户名" v-else><el-button type="primary" @click="openAccount" size="mini" round>开户</el-button></el-descriptions-item>
<el-descriptions-item label="身份证号" v-if="userInfo != null && userInfo.realname_flag==='Y'">{{userInfo.certificate_no}}</el-descriptions-item> <el-descriptions-item label="身份证号" v-if="userInfo != null && userInfo.realname_flag==='Y'">{{userInfo.certificate_no}}</el-descriptions-item>
<el-descriptions-item label="身份证号" v-else>--</el-descriptions-item> <el-descriptions-item label="身份证号" v-else>--</el-descriptions-item>
<el-descriptions-item label="支付密码" v-if="userInfo != null && userInfo.set_pwd_flag==='Y'">**********</el-descriptions-item> <el-descriptions-item label="支付密码" v-if="userInfo != null && userInfo.set_pwd_flag==='Y'">**********</el-descriptions-item>
@ -102,6 +102,22 @@
}); });
console.log('submit!'); console.log('submit!');
}, },
openAccount() {
axios.post('/account/pen-account', {token: window.sessionStorage.getItem('token')})
.then( (response) => {
console.log(response);
let result = response.data
if (result.code != 1000) {
return this.$message.error(response.data.message);
}
window.open(result.data.url)
})
.catch((error) => {
this.$message.error('请求错误');
console.log(error);
});
console.log('submit!');
},
bindCard() { bindCard() {
axios.post('/account/bind-card', this.bindConfirmForm) axios.post('/account/bind-card', this.bindConfirmForm)
.then( (response) => { .then( (response) => {

Loading…
Cancel
Save