1.0.11 • Published 7 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 -S
import 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
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago
0.1.8
7 years ago
0.1.7
7 years ago
0.1.6
7 years ago
0.1.5
7 years ago
0.1.4
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