收藏
回答

网页内嵌微信登录二维码,使用href自定义样式不生效

https://developers.weixin.qq.com/doc/oplatform/Website_App/WeChat_Login/Wechat_Login.html

new WxLogin({
          self_redirect:true,
          id:"qr_code",
          appid: res.data.appId,
          scope: res.data.scope,
          redirect_uri: res.data.redirectUri,
          state: res.data.state,
          style: "black",
          stylelite: 0,
          fast_login: 0,
          href: 'https://****dev.oss-cn-hangzhou.aliyuncs.com/test/WxQrcode.css'
        })


配置参数如上,js使用的http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js


二维码样式始终没有变化,根据网络建议href使用base64格式的css也是无效,请官方指导


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

1 个回答

  • 阿白
    阿白
    04-23

    看看network里有没有这个css的请求?方便的话提供下页面url

    04-23
    有用
    回复 1
    • W.FV
      W.FV
      04-23
      变更了state的值,就可以了。是应为相同的state值会有缓存吗?
      04-23
      回复
登录 后发表内容