wxsk
v1.0.3
Published
### useage
Downloads
11
Readme
a jsconfig base on weixin-js-sdk for h5 sharing between different platforms
useage
npm i --save wxsk
import { wxConfig, wxReady } from 'wxsk'
1. 请求配置信息(appId,nonceStr,signature,timestamp),调用配置接口
wxConfig({
appId,
nonceStr,
signature,
timestamp
})
2. 调用wxReady
配置分享卡片的相关信息
const title = ''
const link = window.location.split('?')[0]
const imgUrl = ''
const desc = ''
wxReady({
title // 标题
link // 链接
imgUrl // 分享卡片中的图片
desc // 描述
})
// 具体可以查看微信SDK