|
@@ -56,7 +56,8 @@ export default {
|
56
|
56
|
'EditUserInfo'
|
57
|
57
|
]),
|
58
|
58
|
...mapUserActions([
|
59
|
|
- 'UpdateUserInfo'
|
|
59
|
+ 'UpdateUserInfo',
|
|
60
|
+ 'NewBindAliPay'
|
60
|
61
|
]),
|
61
|
62
|
Init () {
|
62
|
63
|
this.AliAccount = (this.UserInfo || {}).alipayUser
|
|
@@ -70,11 +71,16 @@ export default {
|
70
|
71
|
this.DataLock = false
|
71
|
72
|
return false
|
72
|
73
|
}
|
73
|
|
- this.UpdateUserInfo({ urlData: { id: this.UserInfo.customerId }, data: { alipayUser: this.AliAccount, realName: this.RealName } }).then(() => {
|
74
|
|
- this.Toast('绑定支付宝成功')
|
75
|
|
- this.EditUserInfo({ name: 'alipayUser', value: this.AliAccount }, { name: 'realName', value: this.RealName })
|
76
|
|
- this.DataLock = false
|
77
|
|
- this.$router.go(-1)
|
|
74
|
+ this.NewBindAliPay({ urlData: { id: this.UserInfo.customerId }, data: { loginId: this.AliAccount, realName: this.RealName } }).then(() => {
|
|
75
|
+ this.UpdateUserInfo({ urlData: { id: this.UserInfo.customerId }, data: { alipayUser: this.AliAccount, realName: this.RealName } }).then(() => {
|
|
76
|
+ this.Toast('绑定支付宝成功')
|
|
77
|
+ this.EditUserInfo({ name: 'alipayUser', value: this.AliAccount }, { name: 'realName', value: this.RealName })
|
|
78
|
+ this.DataLock = false
|
|
79
|
+ this.$router.go(-1)
|
|
80
|
+ }).catch((res) => {
|
|
81
|
+ this.Toast(res.data.message)
|
|
82
|
+ this.DataLock = false
|
|
83
|
+ })
|
78
|
84
|
}).catch((res) => {
|
79
|
85
|
this.Toast(res.data.message)
|
80
|
86
|
this.DataLock = false
|