...
|
...
|
@@ -53,6 +53,7 @@ |
53
|
53
|
useShowToast
|
54
|
54
|
} from '@/plugins/utils.js'
|
55
|
55
|
import api from '@/api/index.js'
|
|
56
|
+ import {mapMutations} from "vuex";
|
56
|
57
|
|
57
|
58
|
export default {
|
58
|
59
|
components: {
|
...
|
...
|
@@ -86,17 +87,19 @@ |
86
|
87
|
this.getOpenId = getApp().globalData.openId;
|
87
|
88
|
},
|
88
|
89
|
methods: {
|
|
90
|
+ ...mapMutations(["setUserInfo", "setPlateInfo"]),
|
89
|
91
|
resetFunc() {
|
90
|
92
|
this.bindPhone = false;
|
91
|
93
|
for (let i in this.bindAccountForm) Reflect.set(this.bindAccountForm, i, "")
|
92
|
94
|
for (let i in this.bindPhoneForm) Reflect.set(this.bindPhoneForm, i, "")
|
93
|
95
|
},
|
94
|
96
|
async handleBindForm(loginMethod, bindAccountForm, toastText) {
|
|
97
|
+
|
95
|
98
|
const data = {
|
96
|
99
|
loginMethod,
|
97
|
100
|
...bindAccountForm,
|
98
|
101
|
platformName: 'WECHAT',
|
99
|
|
- thirdUserId: this.getOpenId
|
|
102
|
+ thirdUserId: getApp().globalData.openId
|
100
|
103
|
};
|
101
|
104
|
const res = await api.loginApi.postThirdLoginApi(data)
|
102
|
105
|
if (!res) return
|
...
|
...
|
@@ -184,4 +187,4 @@ |
184
|
187
|
|
185
|
188
|
<style lang="scss" scoped>
|
186
|
189
|
@import '../static/personal.scss';
|
187
|
|
-</style> |
|
|
\ No newline at end of file |
|
190
|
+</style> |
...
|
...
|
|