提交 5b97bfaa9379e8af65951e83c03c52a457773c0f

作者 guomingshu
1 个父辈 999fbd96

feat: fix bug

@@ -102,7 +102,7 @@ @@ -102,7 +102,7 @@
102 }, 102 },
103 "quickapp" : {}, 103 "quickapp" : {},
104 "mp-weixin" : { 104 "mp-weixin" : {
105 - "appid" : "wx6cd2152282abd34c", 105 + "appid" : "wxac18386e35824192",
106 "setting" : { 106 "setting" : {
107 "urlCheck" : false, 107 "urlCheck" : false,
108 "es6" : true, 108 "es6" : true,
@@ -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() {
@@ -5,9 +5,9 @@ import home from './modules/home' @@ -5,9 +5,9 @@ import home from './modules/home'
5 Vue.use(Vuex) 5 Vue.use(Vuex)
6 6
7 let lifeData = {}; 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 try { 13 try {
注册登录 后发表评论