|
@@ -57,8 +57,8 @@ import { mapState, mapActions } from "vuex"; |
|
@@ -57,8 +57,8 @@ import { mapState, mapActions } from "vuex"; |
57
|
export default {
|
57
|
export default {
|
58
|
data() {
|
58
|
data() {
|
59
|
return {
|
59
|
return {
|
60
|
- isDisable: true,
|
|
|
61
|
- checked: [],
|
60
|
+ isDisable: false,
|
|
|
61
|
+ checked: [""],
|
62
|
service: "https://hropublic.oss-cn-beijing.aliyuncs.com/agreement/%E6%A0%A1%E8%81%8C%E9%80%9A%E6%9C%8D%E5%8A%A1%E5%8D%8F%E8%AE%AE.html",
|
62
|
service: "https://hropublic.oss-cn-beijing.aliyuncs.com/agreement/%E6%A0%A1%E8%81%8C%E9%80%9A%E6%9C%8D%E5%8A%A1%E5%8D%8F%E8%AE%AE.html",
|
63
|
policy: "https://hropublic.oss-cn-beijing.aliyuncs.com/agreement/%E6%A0%A1%E8%81%8C%E9%80%9A%E9%9A%90%E7%A7%81%E5%8D%8F%E8%AE%AE.html",
|
63
|
policy: "https://hropublic.oss-cn-beijing.aliyuncs.com/agreement/%E6%A0%A1%E8%81%8C%E9%80%9A%E9%9A%90%E7%A7%81%E5%8D%8F%E8%AE%AE.html",
|
64
|
form: {
|
64
|
form: {
|
|
@@ -112,31 +112,36 @@ export default { |
|
@@ -112,31 +112,36 @@ export default { |
112
|
getUserProfile() {
|
112
|
getUserProfile() {
|
113
|
// 推荐使用wx.getUserProfile获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认
|
113
|
// 推荐使用wx.getUserProfile获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认
|
114
|
// 开发者妥善保管用户快速填写的头像昵称,避免重复弹窗
|
114
|
// 开发者妥善保管用户快速填写的头像昵称,避免重复弹窗
|
115
|
- wx.getUserProfile({
|
|
|
116
|
- desc: "用于完善会员资料", // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
|
|
|
117
|
- success: (res) => {
|
|
|
118
|
- console.log("getUserProfile...", res);
|
|
|
119
|
- // this.$store.commit('setWenxinUserInfo', res);
|
|
|
120
|
- this.$u.vuex("vuex_weixinUserInfo", res.userInfo);
|
|
|
121
|
- },
|
|
|
122
|
- });
|
115
|
+ if (this.isDisable) {
|
|
|
116
|
+ return
|
|
|
117
|
+ }
|
|
|
118
|
+ // wx.getUserProfile({
|
|
|
119
|
+ // desc: "用于完善会员资料", // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
|
|
|
120
|
+ // success: (res) => {
|
|
|
121
|
+ // console.log("getUserProfile...", res);
|
|
|
122
|
+ // // this.$store.commit('setWenxinUserInfo', res);
|
|
|
123
|
+ // this.$u.vuex("vuex_weixinUserInfo", res.userInfo);
|
|
|
124
|
+ // },
|
|
|
125
|
+ // });
|
123
|
},
|
126
|
},
|
124
|
|
127
|
|
125
|
getPhoneNumber(e) {
|
128
|
getPhoneNumber(e) {
|
126
|
- console.log(e);
|
|
|
127
|
-
|
|
|
128
|
- wx.login({
|
|
|
129
|
- success: (res) => {
|
|
|
130
|
- console.log(res);
|
|
|
131
|
-
|
|
|
132
|
- this.$store.dispatch(`user/login`, {
|
|
|
133
|
- way: "wechat_code",
|
|
|
134
|
- type: "teacher",
|
|
|
135
|
- jsCode: res.code,
|
|
|
136
|
- code: e.detail.code,
|
|
|
137
|
- });
|
|
|
138
|
- },
|
|
|
139
|
- });
|
129
|
+ if (this.isDisable) {
|
|
|
130
|
+ return
|
|
|
131
|
+ }
|
|
|
132
|
+
|
|
|
133
|
+ // wx.login({
|
|
|
134
|
+ // success: (res) => {
|
|
|
135
|
+ // console.log(res);
|
|
|
136
|
+
|
|
|
137
|
+ // this.$store.dispatch(`user/login`, {
|
|
|
138
|
+ // way: "wechat_code",
|
|
|
139
|
+ // type: "teacher",
|
|
|
140
|
+ // jsCode: res.code,
|
|
|
141
|
+ // code: e.detail.code,
|
|
|
142
|
+ // });
|
|
|
143
|
+ // },
|
|
|
144
|
+ // });
|
140
|
},
|
145
|
},
|
141
|
|
146
|
|
142
|
handelMobileLogin() {
|
147
|
handelMobileLogin() {
|