收藏
回答

H5页面跳转到公众关注页面,没有 ‘关注’按钮?

1.没有关注过的用户,在页面中使用以下代码,'关注'按钮 显示不出来: window.location.href = https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzU4OTQxNjkxMw==&scene=110#wechat_redirect

2.没有关注过的用户,用户在微信中直接访问以下链接,'关注' 按钮可以正常显示: https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzU4OTQxNjkxMw==&scene=110#wechat_redirect

请问'关注'按钮 显示不出来,是怎么回事呢?

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

6 个回答

  • christian
    christian
    2023-09-02

    你们看我的代码就知道了。搞了2个小时呢。                           

    if ($shop["SI_ID"] == '1016') {

                                    trace("跳转url:"."https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzUzMjg4MTI3OQ==&scene=123&from=singlemessage#wechat_redirect");

                                    //$url="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzUzMjg4MTI3OQ==&scene=123&from=singlemessage#wechat_redirect";

                                    //return redirect($url);

                                    //echo "<script>window.location.href = 'https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzUzMjg4MTI3OQ==&from=singlemessage#wechat_redirect';</script>";

                                    header("Location: https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzUzMjg4MTI3OQ==&from=singlemessage#wechat_redirect");

                                    exit();

                                } else {

                                    $this->error("请关注公众号", "weixin/login/fail");

                                }

    2023-09-02
    有用 1
    回复
  • .
    .
    发表于移动端
    2023-05-18
    请问一下,你这个解决了吗,联系我下微18632383238
    2023-05-18
    有用
    回复
  • 📍丑八怪 ._
    📍丑八怪 ._
    2022-09-20

    大佬,解决了么

    2022-09-20
    有用
    回复 2
    • eamon3695
      eamon3695
      2023-04-27
      打个卡,2023年了,这个问题还没解决
      2023-04-27
      回复
    • christian
      christian
      2023-09-02
      算了。我回复一下。用header. 不要用 js
      2023-09-02
      回复
  • 酷
    2022-03-08

    大佬有解决这个问题吗

    2022-03-08
    有用
    回复 1
    • 小豪豪
      小豪豪
      2022-04-01
      没有。通过A链接 就是不能跳转!
      2022-04-01
      回复
  • 叮叮旅游,邬小洪@17780522239
    叮叮旅游,邬小洪@17780522239
    2022-03-02

    我也遇到同样的问题,关注中!

    2022-03-02
    有用
    回复 1
    • 小豪豪
      小豪豪
      2022-04-01
      没有。通过A链接 就是不能跳转!
      2022-04-01
      回复
  • 😶
    😶
    2022-01-16

    这边测试,都可以显示哈

    2022-01-16
    有用
    回复 4
    • 小豪豪
      小豪豪
      2022-01-18
      2022-01-18
      回复
    • 我就是我
      我就是我
      2022-04-19回复小豪豪
      官方估计是链接直接打开的,不是通过h5页面跳转的,所以关注按钮是有的
      2022-04-19
      回复
    • christian
      christian
      2023-09-02
      算了。我回复一下。用header
      2023-09-02
      回复
    • Mr.FUจุ๊บ
      Mr.FUจุ๊บ
      2023-09-11回复christian
      header?什么意思,能具体说下吗
      2023-09-11
      回复
登录 后发表内容