1.0.11 • Published 8 years ago
@defy/wx-jssdk v1.0.11
wx-jssdk

提取微信官方JSSDK,部分api接口使用Promise包装,后期根据使用添加.
根据微信JS-SDK说明文档在对应API后面加上Async
Installation
You can install it via npm.
$ npm i @defy/wx-jssdk -Simport Vue from 'vue';
import WxJssdk from '@defy/wx-jssdk'
Vue.prototype.$wx = 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
1.0.11
8 years ago
1.0.10
8 years ago
1.0.9
8 years ago
1.0.8
8 years ago
1.0.7
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago
0.1.8
8 years ago
0.1.7
8 years ago
0.1.6
8 years ago
0.1.5
8 years ago
0.1.4
8 years ago
0.0.4
8 years ago
0.0.3
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago