@defy/vue-wx-jssdk

0.1.2 • Public • Published

vue-wx-jssdk Author Downloads Version License

Installation

You can install it via npm.

$ npm i @defy/vue-wx-jssdk -S
import Vue from 'vue';
import WxJssdk from '@defy/wx-jssdk'
import VueWxJssdk from '@defy/vue-wx-jssdk';

Vue.use(VueWxJssdk, WxJssdk);

Usage

// ...
mounted() {
  this.$wx.configAsync({debug = false, appId:'', timestamp:'', nonceStr:'', signature:'', jsApiList = []}).then(res => {
    console.log(res);
  }).catch(e => {
    console.log(e);
  )
}

Trigger

// ...
methods: {
  scanQRCode() {
    this.$wx.scanQRCodeAsync().then(res=>{
    	console.log(res)
    })
  }
}

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @defy/vue-wx-jssdk

Weekly Downloads

3

Version

0.1.2

License

MIT

Unpacked Size

6.77 kB

Total Files

9

Last publish

Collaborators

  • defy