main.js 376 B

123456789101112131415161718192021222324
  1. import Vue from 'vue'
  2. import App from './App'
  3. import store from './store'
  4. import uView from "uview-ui"
  5. Vue.use(uView)
  6. Vue.config.productionTip = false
  7. Vue.prototype.$store = store
  8. App.mpType = 'app'
  9. /*
  10. * 打电话
  11. */
  12. Vue.prototype.callPhone = function (phone) {
  13. uni.makePhoneCall({
  14. phoneNumber: phone
  15. });
  16. }
  17. const app = new Vue({
  18. store,
  19. ...App
  20. })
  21. app.$mount()