帧视界壹通告,付费看视频的微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.0 KiB

1 year ago
1 year ago
1 year ago
1 year ago
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. import './uni.promisify.adaptor'
  5. Vue.config.productionTip = false
  6. App.mpType = 'app'
  7. import store from '@/store/store'
  8. import i18n from './locale/index.js'
  9. import './config'
  10. import './utils/index.js'
  11. import uvUI from '@/uni_modules/uv-ui-tools'
  12. Vue.use(uvUI);
  13. uni.$uv.setConfig({
  14. // 修改$uv.config对象的属性
  15. config: {
  16. // 修改默认单位为rpx,相当于执行 uni.$uv.config.unit = 'rpx'
  17. unit: 'rpx'
  18. },
  19. })
  20. //组件注册
  21. import configPopup from '@/components/config/configPopup.vue'
  22. import changeLanguage from '@/components/base/changeLanguage.vue'
  23. import navbar from '@/components/base/navbar.vue'
  24. Vue.component('configPopup', configPopup)
  25. Vue.component('changeLanguage', changeLanguage)
  26. Vue.component('navbar', navbar)
  27. const app = new Vue({
  28. ...App,
  29. store,
  30. i18n
  31. })
  32. app.$mount()
  33. // #endif
  34. // #ifdef VUE3
  35. import {
  36. createSSRApp
  37. } from 'vue'
  38. export function createApp() {
  39. const app = createSSRApp(App)
  40. return {
  41. app
  42. }
  43. }
  44. // #endif