vue-插件 引用ali.JS,

 

 

 

 

 

const wx = require('./1.3.2.js').wx

const plugin = {
  install (Vue) {
    Vue.prototype.$wechat = wx
    Vue.wechat = wx
  },
  $wechat: wx
}

export default plugin
export const install = plugin.install

 

 

 

 

 

/**
 * Created by cuiyang on 2018/7/3.
 */

const alipay = require('./alipayjsapi.min')

const plugin = {
    intall(){
        Vue.prototype.$alipay = alipay
        Vue.alipay = alipay
    },
    alipay: alipay
}

export default plugin
export const install = plugin.install

 

posted @ 2018-07-03 11:12  MR崔  阅读(486)  评论(0)    收藏  举报