Skip to content

defypro/vue-wx-jssdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-wx-jssdk Author Downloads Version License

Installation

You can install it via npm.

$ npm i @defy/wx-jssdk @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

About

以Vue插件形式引用@defy/wx-jssdk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published