0.1.2 • Published 7 years ago

@defy/vue-wx-jssdk v0.1.2

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

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

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago