正在显示
3 个修改的文件
包含
32 行增加
和
27 行删除
| ... | ... | @@ -57,8 +57,8 @@ import { mapState, mapActions } from "vuex"; |
| 57 | 57 | export default { |
| 58 | 58 | data() { |
| 59 | 59 | return { |
| 60 | - isDisable: true, | |
| 61 | - checked: [], | |
| 60 | + isDisable: false, | |
| 61 | + checked: [""], | |
| 62 | 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 | 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 | 64 | form: { |
| ... | ... | @@ -112,31 +112,36 @@ export default { |
| 112 | 112 | getUserProfile() { |
| 113 | 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 | 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 | 147 | handelMobileLogin() { | ... | ... |
| ... | ... | @@ -5,9 +5,9 @@ import home from './modules/home' |
| 5 | 5 | Vue.use(Vuex) |
| 6 | 6 | |
| 7 | 7 | let lifeData = {}; |
| 8 | -let appId = 'wx6cd2152282abd34c'; | |
| 8 | +// let appId = 'wx6cd2152282abd34c'; | |
| 9 | 9 | // 新华网 |
| 10 | -// let appId = 'wxac18386e35824192'; | |
| 10 | +let appId = 'wxac18386e35824192'; | |
| 11 | 11 | |
| 12 | 12 | |
| 13 | 13 | try { | ... | ... |
请
注册
或
登录
后发表评论