引入js:

<script src="https://appx/web-view.min.js"></script>

 

自定义:

if (my) {

      my.getEnv(function(res) {

        //支付宝小程序环境下

        if (res.miniprogram) {

          my.postMessage({

            //action固定share

            action: "share",

            //自定义内容

            extra: {

              title: "",

              url: location.origin + location.pathname,

              //自定义分享小图 icon 元素,支持:网络图片路径;apFilePath 路径;相对路径。

              imageUrl:"",

              content: "",

              //自定义分享描述:由于分享到微博只支持最大长度 140 个字,因此建议长度不要超过该限制

              desc: "",

              //自定义分享预览大图,建议尺寸750x825,支持:网络图片路径;apFilePath路径(客户端10.1.58版本开始支持);

              bgImgUrl:""

            }

          });

        }

      });

    }

相关文章:

  • 2022-12-23
  • 2022-02-07
  • 2021-12-16
  • 2022-12-23
  • 2021-06-27
  • 2021-07-09
  • 2021-12-29
  • 2021-10-07
猜你喜欢
  • 2022-01-26
  • 2021-11-23
  • 2021-05-16
  • 2021-06-05
相关资源
相似解决方案