1.2.3 • Published 2 years ago

wx-callapp v1.2.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

wx-callapp

微信唤起客户端

安装

使用 npm 安装:

npm i wx-callapp --save
<script src="./callApp.js"></script>
var news_id = 'xxx'
        const options = {
            scheme: {
                protocol: 'xxx' //URL Scheme 的 scheme 字段,要打开的 APP 的标识
            },
            intent: {
                package: 'xxx',
                scheme: 'xxx',
            },
            wx: {
                jsSDK: 'xxx',
                appid: 'xxx',
                extinfo: {
                    artLink: 'xxxx'
                }
            },
            clipboard:{
                text:'xxxxx'
            },
            timeout: 1000,
            appstore: 'xxxxx',
            yingyongbao: '',
            fallback: 'xxxx',
        };
        // 第一种方式
        callApp(options);
        // 第二种方式(js向指定dom节点插入微信开放标签的节点)
        callApp.wxOpen({ extinfo: 'xxxx' }, '#openApp')

使用

<a id="openApp">前往 App 查看</a>
<a onclick="callApp.open({})">前往 App 查看</a>
    <span>
        打开APP
        <wx-open-launch-app 
        class="launch-btn"
        >
            <template  type="text/wxtag-template">
            <div style="height:2.58rem;">打开APP</div>
            </template>
        </wx-open-launch-app>
    </span>
1.2.3

2 years ago

1.2.2

2 years ago

1.2.0

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.2.1

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.0.6

2 years ago

1.1.4

2 years ago

1.0.5

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago