main.js 453 B

123456789101112131415161718192021222324252627282930313233
  1. import Vue from 'vue'
  2. import App from './App'
  3. // 引入color-ui自定义导航栏
  4. import cuCustom from './colorui/components/cu-custom.vue'
  5. Vue.component('cu-custom',cuCustom)
  6. Vue.config.productionTip = false
  7. Vue.mixin({
  8. data(){
  9. return {}
  10. },
  11. methods: {
  12. jumpTo(pathname) {
  13. uni.navigateTo({
  14. url: `/pages/${pathname}`
  15. })
  16. },
  17. },
  18. onLoad() {
  19. },
  20. onShow() {}
  21. })
  22. App.mpType = 'app'
  23. const app = new Vue({
  24. ...App
  25. })
  26. app.$mount()