|
|
@ -24,16 +24,16 @@
|
|
|
|
<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-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-button type="primary" @click="openAccount" size="mini" round>修改</el-button></el-descriptions-item>
|
|
|
|
<el-descriptions-item label="支付密码" v-if="userInfo != null && userInfo.set_pwd_flag==='Y'">********** <el-button type="primary" @click="resetPayPassword" size="mini" round>修改</el-button></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-else><el-button type="primary" @click="setPayPassword" size="mini" round>设置</el-button></el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-descriptions title="绑卡信息">
|
|
|
|
<el-descriptions title="绑卡信息">
|
|
|
|
<el-descriptions-item label="开户行" v-if="bankCard != null && bankCard.bind_card_flag==='Y'">{{bankCard.bank_name}} <el-button type="primary" @click="openAccount" size="mini" round>解绑</el-button></el-descriptions-item>
|
|
|
|
<el-descriptions-item label="开户行" v-if="bankCard != null && bankCard.bind_card_flag==='Y'">{{bankCard.bank_name}} <el-button type="primary" @click="unbindCard" size="mini" round>解绑</el-button></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-else><el-button type="primary" @click="bindCard" size="mini" round>绑卡</el-button></el-descriptions-item>
|
|
|
|
<el-descriptions-item label="开户姓名" v-if="bankCard != null && bankCard.bind_card_flag==='Y'">{{bankCard.card_user_name}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="开户姓名" v-if="bankCard != null && bankCard.bind_card_flag==='Y'">{{bankCard.card_user_name}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="开户姓名" v-else>--</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="开户姓名" v-else>--</el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
@ -116,21 +116,63 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
console.log('submit!');
|
|
|
|
console.log('submit!');
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
resetPayPassword() {
|
|
|
|
|
|
|
|
axios.post('/account/reset-pay-password', {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!');
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
setPayPassword() {
|
|
|
|
|
|
|
|
axios.post('/account/set-pay-password', {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', {token: window.sessionStorage.getItem('token')})
|
|
|
|
.then( (response) => {
|
|
|
|
.then( (response) => {
|
|
|
|
console.log(response);
|
|
|
|
console.log(response);
|
|
|
|
let result = response.data
|
|
|
|
let result = response.data
|
|
|
|
if (result.code != 1000) {
|
|
|
|
if (result.code != 1000) {
|
|
|
|
return this.$message.error(response.data.message);
|
|
|
|
return this.$message.error(response.data.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.bindConfirmVisible = false;
|
|
|
|
window.open(result.data.url)
|
|
|
|
this.$message.success('支付成功');
|
|
|
|
})
|
|
|
|
this.$alert('请记住您的订单号:' + result.data.bizData.outOrderNo , '支付成功', {
|
|
|
|
.catch((error) => {
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
this.$message.error('请求错误');
|
|
|
|
callback: action => {
|
|
|
|
console.log(error);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
console.log('submit!');
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
unbindCard() {
|
|
|
|
|
|
|
|
axios.post('/account/unbind-card', {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.location.href = window.location.href;
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((error) => {
|
|
|
|
.catch((error) => {
|
|
|
|
this.$message.error('请求错误');
|
|
|
|
this.$message.error('请求错误');
|
|
|
|