1.2.3 • Published 3 years ago

wx-callapp v1.2.3

Weekly downloads
-
License
ISC
Repository
-
Last release
3 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

3 years ago

1.2.2

3 years ago

1.2.0

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.2.1

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.0.6

3 years ago

1.1.4

3 years ago

1.0.5

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago