|
@@ -3,7 +3,18 @@
|
3
|
3
|
<MainPageContainer :ShowMainHeader="true" :ShowMainHeaderBack="true" MainHeaderTitle="绑定支付宝" @UserInfoChange="Init">
|
4
|
4
|
<div class="PageContainer">
|
5
|
5
|
<div class="Form">
|
6
|
|
- <input type="text" placeholder="请输入支付宝账号" v-model="AliAccount">
|
|
6
|
+ <div class="flex-h">
|
|
7
|
+ <span>支付宝账号</span>
|
|
8
|
+ <div class="flex-item">
|
|
9
|
+ <input type="text" placeholder="请输入支付宝账号" v-model="AliAccount">
|
|
10
|
+ </div>
|
|
11
|
+ </div>
|
|
12
|
+ <div class="flex-h">
|
|
13
|
+ <span>真实姓名</span>
|
|
14
|
+ <div class="flex-item">
|
|
15
|
+ <input type="text" placeholder="请输入真实姓名" v-model="RealName">
|
|
16
|
+ </div>
|
|
17
|
+ </div>
|
7
|
18
|
</div>
|
8
|
19
|
<div class="Btn">
|
9
|
20
|
<a @click="ToBindIdCard">确认</a>
|
|
@@ -22,6 +33,7 @@ export default {
|
22
|
33
|
data () {
|
23
|
34
|
return {
|
24
|
35
|
AliAccount: '',
|
|
36
|
+ RealName: '',
|
25
|
37
|
DataLock: false
|
26
|
38
|
}
|
27
|
39
|
},
|
|
@@ -37,7 +49,6 @@ export default {
|
37
|
49
|
},
|
38
|
50
|
mounted () {
|
39
|
51
|
this.$nextTick(() => {
|
40
|
|
- this.AliAccount = (this.UserInfo || {}).alipayUser
|
41
|
52
|
})
|
42
|
53
|
},
|
43
|
54
|
methods: {
|
|
@@ -48,6 +59,8 @@ export default {
|
48
|
59
|
'UpdateUserInfo'
|
49
|
60
|
]),
|
50
|
61
|
Init () {
|
|
62
|
+ this.AliAccount = (this.UserInfo || {}).alipayUser
|
|
63
|
+ this.RealName = (this.UserInfo || {}).realName
|
51
|
64
|
},
|
52
|
65
|
ToBindIdCard () {
|
53
|
66
|
if (this.DataLock) return
|
|
@@ -57,9 +70,9 @@ export default {
|
57
|
70
|
this.DataLock = false
|
58
|
71
|
return false
|
59
|
72
|
}
|
60
|
|
- this.UpdateUserInfo({ urlData: { id: this.UserInfo.customerId }, data: { alipayUser: this.AliAccount } }).then(() => {
|
|
73
|
+ this.UpdateUserInfo({ urlData: { id: this.UserInfo.customerId }, data: { alipayUser: this.AliAccount, realName: this.RealName } }).then(() => {
|
61
|
74
|
this.Toast('绑定支付宝成功')
|
62
|
|
- this.EditUserInfo({ name: 'alipayUser', value: this.AliAccount })
|
|
75
|
+ this.EditUserInfo({ name: 'alipayUser', value: this.AliAccount }, { name: 'realName', value: this.RealName })
|
63
|
76
|
this.DataLock = false
|
64
|
77
|
this.$router.go(-1)
|
65
|
78
|
}).catch((res) => {
|