微信登录app(Wechat login app)

// 微信登录 APP wxLogin() {

  this.auths.authorize((e) => {     console.log(e);     this.auths.login(e1 => {     console.log(e1, 2);     // this.auths.getUserInfo(info=>{     // console.log(info,3);     // })     let data = {       form:{       partyData: {       code: e.code,       oauth: ‘APP-WEIXIN’,       userInfo: e1.userInfo       },     refereeId: this.$store.getters.refereeId     }   }

LoginApi.loginAppWx(data).then(res => {   console.log(‘res:’,res);   }).catch(err=>{     console.log(‘err:’,err);     })

    })   })

},

————————

//Wechat login app wxLogin() {

this. auths. authorize((e) => {     console. log(e);     this. auths. login(e1 => {     console. log(e1, 2);     // this. auths. getUserInfo(info=>{     // console. log(info,3);     // })     let data = {       form:{       partyData: {       code: e.code,       oauth: ‘APP-WEIXIN’,       userInfo: e1. userInfo       },     refereeId: this.$ store. getters. refereeId     }   }

LoginApi.loginAppWx(data).then(res => {   console.log(‘res:’,res);   }).catch(err=>{     console.log(‘err:’,err);     })

})   })

},