使用vux的微信和ajax组件注册全局share方法
import Vue from 'vue'
import {
WechatPlugin,
AlertPlugin
} from 'vux'
Vue.use(WechatPlugin)
Vue.use(AlertPlugin)
//shareData 分享配置
//url 分享页面url
const wx = {
install(Vue) {
Vue.prototype.wxShare = function (shareData, url) {
this.$http.get('/api/pay/wechat/signature', { // 请求配置
params: {
url: url
}
}).then(res =>