1.0.3 • Published 7 years ago

wxsk v1.0.3

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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
1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago