收藏
回答

想实现通过微信扫码登录我自己的系统?

var obj = new WxLogin({
  id:"login_container", 
  appid:"wx3d7759f91e07b027", 
  scope:"snsapi_login", 
  redirect_uri:encodeURIComponent("http://www.bjjpkj.com/JumpinAnswering/WeChat/wechatLogin"),
  state:"STATE",
  style:"white",
  href:"data:text/css;base64,LmluZm8gI3d4X2RlZmF1bHRfdGlwIHA6bGFzdC1jaGlsZCB7CQ0KCWRpc3BsYXk6bm9uZTsNCn0NCg0KI3d4X2RlZmF1bHRfdGlwIHB7DQoJY29sb3I6YmxhY2s7DQp9DQoubG9naW5QYW5lbCAudGl0bGV7DQoJZGlzcGxheTpub25lOw0KCQ0KfQ0KQG1lZGlhIHNjcmVlbiBhbmQgKG1heC13aWR0aDogMTM2NnB4KSB7DQogLmltcG93ZXJCb3ggLnFyY29kZSB7DQogICAgIHdpZHRoOiAxODNweDsNCiAgICAgbWFyZ2luLXRvcDogNXB4Ow0KIH0NCn0NCkBtZWRpYSBzY3JlZW4gYW5kIChtaW4td2lkdGg6IDEzNjZweCkgew0KIC5pbXBvd2VyQm94IC5xcmNvZGUgew0KICAgICB3aWR0aDogMjgzcHg7DQogICAgIG1hcmdpbi10b3A6IDVweDsNCiB9DQp9"

})这样不对么 不走我的回调地址 报错;

回答关注问题邀请回答
收藏

1 个回答

  • 星跃
    星跃
    06-17

    吧网站放到线上试试;还有就是毁掉地址是否和微信后台配置的一致

    06-17
    有用
    回复
登录 后发表内容