|
@@ -71,7 +71,8 @@ export default {
|
71
|
71
|
},
|
72
|
72
|
methods: {
|
73
|
73
|
...mapUserActions([
|
74
|
|
- 'AliShiMingRenZheng'
|
|
74
|
+ 'AliShiMingRenZheng',
|
|
75
|
+ 'NewBindAliPay'
|
75
|
76
|
]),
|
76
|
77
|
...mapUserMutations([
|
77
|
78
|
'EditShopInfo'
|
|
@@ -93,13 +94,7 @@ export default {
|
93
|
94
|
ToAliShiMingRenZheng () {
|
94
|
95
|
if (this.DataLock) return
|
95
|
96
|
this.DataLock = true
|
96
|
|
- this.AliShiMingRenZheng({
|
97
|
|
- urlData: { id: this.CurrentShopInfo.shopId },
|
98
|
|
- data: {
|
99
|
|
- alipayName: this.RealName,
|
100
|
|
- aliLoginId: this.AliAccount
|
101
|
|
- }
|
102
|
|
- }).then(() => {
|
|
97
|
+ this.NewBindAliPay({ urlData: { id: this.CurrentShopInfo.shopId }, data: { loginId: this.AliAccount, realName: this.RealName } }).then(() => {
|
103
|
98
|
this.EditShopInfo({ name: 'alipayName', value: this.RealName })
|
104
|
99
|
this.Toast('认证成功')
|
105
|
100
|
this.DataLock = false
|
|
@@ -110,6 +105,23 @@ export default {
|
110
|
105
|
this.Toast(res.data.message)
|
111
|
106
|
this.DataLock = false
|
112
|
107
|
})
|
|
108
|
+ // this.AliShiMingRenZheng({
|
|
109
|
+ // urlData: { id: this.CurrentShopInfo.shopId },
|
|
110
|
+ // data: {
|
|
111
|
+ // alipayName: this.RealName,
|
|
112
|
+ // aliLoginId: this.AliAccount
|
|
113
|
+ // }
|
|
114
|
+ // }).then(() => {
|
|
115
|
+ // this.EditShopInfo({ name: 'alipayName', value: this.RealName })
|
|
116
|
+ // this.Toast('认证成功')
|
|
117
|
+ // this.DataLock = false
|
|
118
|
+ // window.setTimeout(() => {
|
|
119
|
+ // this.$router.go(-1)
|
|
120
|
+ // }, 300)
|
|
121
|
+ // }).catch((res) => {
|
|
122
|
+ // this.Toast(res.data.message)
|
|
123
|
+ // this.DataLock = false
|
|
124
|
+ // })
|
113
|
125
|
}
|
114
|
126
|
}
|
115
|
127
|
}
|