|
|
@ -10,37 +10,73 @@
|
|
|
|
<div id="app">
|
|
|
|
<div id="app">
|
|
|
|
<el-container>
|
|
|
|
<el-container>
|
|
|
|
<el-main>
|
|
|
|
<el-main>
|
|
|
|
<el-row>
|
|
|
|
<el-tabs v-model="activeName">
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-tab-pane label="账户信息" name="user">
|
|
|
|
<el-descriptions title="用户信息">
|
|
|
|
<el-row>
|
|
|
|
<el-descriptions-item label="用户名">{{username}} <el-button type="primary" @click="logout" size="mini" round>退出登录</el-button></el-descriptions-item>
|
|
|
|
<el-col :span="24">
|
|
|
|
</el-descriptions>
|
|
|
|
<el-descriptions title="用户信息">
|
|
|
|
</el-col>
|
|
|
|
<el-descriptions-item label="用户名">{{username}} <el-button type="primary" @click="logout" size="mini" round>退出登录</el-button></el-descriptions-item>
|
|
|
|
</el-row>
|
|
|
|
</el-descriptions>
|
|
|
|
<el-row>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="24">
|
|
|
|
</el-row>
|
|
|
|
<el-descriptions title="开户信息">
|
|
|
|
<el-row>
|
|
|
|
<el-descriptions-item label="用户名" v-if="userInfo != null && userInfo.realname_flag==='Y'">{{userInfo.real_name}}</el-descriptions-item>
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-descriptions-item label="用户名" v-else><el-button type="primary" @click="openAccount" size="mini" round>开户</el-button></el-descriptions-item>
|
|
|
|
<el-descriptions title="开户信息">
|
|
|
|
<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.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.set_pwd_flag==='Y'">********** <el-button type="primary" @click="resetPayPassword" 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-else><el-button type="primary" @click="setPayPassword" size="mini" round>设置</el-button></el-descriptions-item>
|
|
|
|
<el-descriptions-item label="身份证号" v-else>--</el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
<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-col>
|
|
|
|
<el-descriptions-item label="支付密码" v-else><el-button type="primary" @click="setPayPassword" size="mini" round>设置</el-button></el-descriptions-item>
|
|
|
|
</el-row>
|
|
|
|
</el-descriptions>
|
|
|
|
<el-row>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="24">
|
|
|
|
</el-row>
|
|
|
|
<el-descriptions title="绑卡信息">
|
|
|
|
<el-row>
|
|
|
|
<el-descriptions-item label="开户行" v-if="bankCard != null && userInfo.bind_card_flag==='Y'">{{bankCard.bank_name}} <el-button type="primary" @click="unbindCard" size="mini" round>解绑</el-button></el-descriptions-item>
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-descriptions-item label="开户行" v-else><el-button type="primary" @click="bindCard" size="mini" round>绑卡</el-button></el-descriptions-item>
|
|
|
|
<el-descriptions title="绑卡信息">
|
|
|
|
<el-descriptions-item label="开户姓名" v-if="bankCard != null && userInfo.bind_card_flag==='Y'">{{bankCard.card_user_name}}</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="开户行" v-if="bankCard != null && userInfo.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-descriptions-item>
|
|
|
|
<el-descriptions-item label="开户行" v-else><el-button type="primary" @click="bindCard" size="mini" round>绑卡</el-button></el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
<el-descriptions-item label="开户姓名" v-if="bankCard != null && userInfo.bind_card_flag==='Y'">{{bankCard.card_user_name}}</el-descriptions-item>
|
|
|
|
</el-col>
|
|
|
|
<el-descriptions-item label="开户姓名" v-else>--</el-descriptions-item>
|
|
|
|
</el-row>
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
<el-tab-pane label="充值" name="recharge">
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<el-form ref="loginForm" :model="loginForm" label-width="80px">
|
|
|
|
|
|
|
|
<el-form-item label="金额">
|
|
|
|
|
|
|
|
<el-input v-model="loginForm.username"></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item>
|
|
|
|
|
|
|
|
<el-button type="primary" @click="transferPay">充值</el-button>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<h2>充值流程</h2>
|
|
|
|
|
|
|
|
<p>1. 输入金额,点击充值按钮</p>
|
|
|
|
|
|
|
|
<p>2. 按提示转转</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
</el-tabs>
|
|
|
|
</el-main>
|
|
|
|
</el-main>
|
|
|
|
</el-container>
|
|
|
|
</el-container>
|
|
|
|
|
|
|
|
<el-dialog title="转账信息" :visible.sync="payInfoVisible" width="30%">
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<h3>您可通过网银或手机银行app向专属打款账户进行转账,其中:</h3>
|
|
|
|
|
|
|
|
<p><el-tag type="success">订单号:{{outOrderNo}}</el-tag></p>
|
|
|
|
|
|
|
|
<p><el-tag type="success">户名:宝付网络科技(上海)有限公司</el-tag></p>
|
|
|
|
|
|
|
|
<p><el-tag type="success">银行:支付机构备付金集中存管账户</p>
|
|
|
|
|
|
|
|
<p><el-tag type="success">开户城市:上海</el-tag></p>
|
|
|
|
|
|
|
|
<p><el-tag type="success">开户网点:宝付网络-备付金账户</el-tag></p>
|
|
|
|
|
|
|
|
<p><el-tag type="success">行号:991290000793</el-tag></p>
|
|
|
|
|
|
|
|
<p><el-tag type="success">专属打款账户:{{acsNo}}</el-tag></p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
|
|
|
<el-button @click="payInfoVisible = false">确 定</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|
<!-- import Vue before Element -->
|
|
|
|
<!-- import Vue before Element -->
|
|
|
@ -53,7 +89,7 @@
|
|
|
|
el: '#app',
|
|
|
|
el: '#app',
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
activeName: 'register',
|
|
|
|
activeName: 'user',
|
|
|
|
username: '',
|
|
|
|
username: '',
|
|
|
|
userInfo: {
|
|
|
|
userInfo: {
|
|
|
|
realname_flag: '',
|
|
|
|
realname_flag: '',
|
|
|
@ -69,7 +105,10 @@
|
|
|
|
id: 0,
|
|
|
|
id: 0,
|
|
|
|
bank_name: '',
|
|
|
|
bank_name: '',
|
|
|
|
card_user_name: ''
|
|
|
|
card_user_name: ''
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
acsNo: '',
|
|
|
|
|
|
|
|
outOrderNo: '',
|
|
|
|
|
|
|
|
payInfoVisible: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
@ -201,13 +240,9 @@
|
|
|
|
if (result.code != 1000) {
|
|
|
|
if (result.code != 1000) {
|
|
|
|
return this.$message.error(response.data.message);
|
|
|
|
return this.$message.error(response.data.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.payConfirmVisible = false;
|
|
|
|
this.acsNo = result.data.acsNo;
|
|
|
|
this.$message.success('支付成功');
|
|
|
|
this.outOrderNo = result.data.outOrderNo;
|
|
|
|
this.$alert('请记住您的订单号:' + result.data.bizData.outOrderNo , '支付成功', {
|
|
|
|
this.payInfoVisible = true;
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
|
|
|
callback: action => {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((error) => {
|
|
|
|
.catch((error) => {
|
|
|
|
this.$message.error('请求错误');
|
|
|
|
this.$message.error('请求错误');
|
|
|
|