公众号项目
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.

48 lines
949 B

1 year ago
  1. import Vue from 'vue'
  2. import App from './App'
  3. import '@/common/components'
  4. // import util from '@/common/utils/common'
  5. import {
  6. API_URL
  7. } from './env.js'//这里是接口api
  8. import api from '@/request/index'
  9. import com from '@/common/com.js'
  10. Vue.prototype.$api = api;
  11. Vue.prototype.$API_URL = API_URL;
  12. Vue.prototype.$com = com;
  13. Vue.config.productionTip = false
  14. import uView from "uview-ui";
  15. import store from './store/index.js'
  16. import jweixin from 'jweixin-module'
  17. Vue.prototype.$jweixin = jweixin
  18. Vue.prototype.$store = store
  19. Vue.prototype.$base_img = 'https://bag.3iot.top'
  20. // Vue.prototype.$util = util
  21. Vue.use(uView);
  22. Vue.prototype.$Toast = function(title) {
  23. return uni.showToast({
  24. title:title,
  25. icon:'none'
  26. })
  27. }
  28. //全局混入
  29. Vue.mixin({
  30. data() {
  31. return {
  32. }
  33. },
  34. onTabItemTap(e){
  35. let token = uni.getStorageSync('userToken')
  36. },
  37. })
  38. App.mpType = 'app'
  39. const app = new Vue({
  40. store,
  41. ...App
  42. })
  43. app.$mount()