main.js 698 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import Vue from 'vue'
  2. import App from './App'
  3. import home from './pages/home/index.vue'
  4. Vue.component('home',home)
  5. import my from './pages/my/index.vue'
  6. Vue.component('my', my)
  7. import screenTextScroll from './colorui/screenTextScroll.vue'
  8. Vue.component('textscroll',screenTextScroll)
  9. import cuCustom from './colorui/components/cu-custom.vue'
  10. Vue.component('cu-custom',cuCustom)
  11. import {msg,success} from "./static/util/globalFun";
  12. Vue.config.productionTip = false
  13. Vue.prototype.$msg = msg;
  14. Vue.prototype.$success = success;
  15. Vue.prototype.$loading = (title)=>{
  16. uni.showLoading({
  17. title:title
  18. });
  19. }
  20. App.mpType = 'app'
  21. const app = new Vue({
  22. ...App
  23. })
  24. app.$mount()