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.

37 lines
847 B

6 months ago
4 months ago
6 months 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 uView from '@/uni_modules/uview-ui'
  8. Vue.use(uView)
  9. Vue.prototype.VITE_GLOB_API = 'https://admin.csnaicheng.com/h5-api/'
  10. // Vue.prototype.VITE_REDIRECT_URI = 'http://tairoudj.natapp1.cc'// 开发环境
  11. Vue.prototype.VITE_REDIRECT_URI = 'http://mall.csnaicheng.com'//type 0
  12. // Vue.prototype.VITE_REDIRECT_URI = 'http://new-mall.csnaicheng.com'//type 1
  13. Vue.prototype.VITE_APPID = 'wx15be4225a7e41a1e'
  14. import jweixin from './utils/jweixin-module.js'
  15. Vue.prototype.$jweixin = jweixin
  16. const app = new Vue({
  17. ...App
  18. })
  19. app.$mount()
  20. // #endif
  21. // #ifdef VUE3
  22. import { createSSRApp } from 'vue'
  23. export function createApp() {
  24. const app = createSSRApp(App)
  25. return {
  26. app
  27. }
  28. }
  29. // #endif