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').ap

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

export default plugin
export const install = plugin.install

猜你喜欢

转载自www.cnblogs.com/MR-cui/p/9257591.html
今日推荐