npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

lujing-fe-js-wxshare

v1.0.3

Published

lujing fe plugin for weixin share

Downloads

5

Readme

lujing-fe-js-wxshare

组件功能

实现微信sdk分享

组件部署

微信sdk

<script src="https://res.wx.qq.com/open/js/jweixin-1.1.0.js" charset="utf-8"></script>

测试地址

<script src='https://statictest.tf56.com/lujing/components/js-wxshare/1.0.0/index.js'></script>
    

生产地址

<script src='https://www.lujing56.com/components/js-wxshare/1.0.0/index.js'></script>

注:微信js必须在顶部;

组件用法(demo)

设置方法

<script>
    var appid = 'wx450248afa4895936';
        var url = '/lujingWechatApi/signaturecs/getSignature?datasource=weChatOwner'; // url如果为函数 会执行url(callback);
        /* url = function (fn) {
            request().then(d => fn(d));
        }*/
        setTimeout(function () {
            tencentShareConfig({
                title: '卡车之声电台-陆鲸', // 分享标题
                desc: '卡车之声,咱卡车人自己的电台!快来陆鲸货运圈收听吧~', // 分享描述
                link: location.href, // 分享链接,该链接域名必须与当前企业的可信域名一致
                imgUrl: 'https://www.lujing56.com/wechatdriver/images/[email protected]', // 分享图标协议保持一致
                type: 'link', // 分享类型,music、video或link,不填默认为link
                success: function () {
                    // console.log('分享成功')
                },
                cancel: function () {
                    // console.log('取消')
                }
            }, true, appid, url)
        }, 5000);
</script>

问题指引

http://qydev.weixin.qq.com/wiki/index.php?title=%E5%BE%AE%E4%BF%A1JS-SDK%E6%8E%A5%E5%8F%A3#.E6.AD.A5.E9.AA.A4.E4.BA.8C.EF.BC.9A.E9.80.9A.E8.BF.87config.E6.8E.A5.E5.8F.A3.E6.B3.A8.E5.85.A5.E6.9D.83.E9.99.90.E9.AA.8C.E8.AF.81.E9.85.8D.E7.BD.AE

更新log

author

@hanangjie