main.js 807 B

1234567891011121314151617181920212223242526272829303132
  1. import Vue from 'vue'
  2. import App from './App'
  3. import './uni.promisify.adaptor'
  4. import {
  5. http
  6. } from "./components/js_sdk/index";
  7. import alarModel from "./components/component/alarModel.vue";
  8. import tenMinutes from './components/component/tenMinutes.vue';
  9. Vue.component('alarModel', alarModel);
  10. Vue.component('tenMinutes', tenMinutes);
  11. Vue.prototype.$http = http;
  12. Vue.config.productionTip = false;
  13. if (__wxConfig.envVersion == 'develop') {
  14. Vue.prototype.uploadimg = 'https://api.radar-power.asia:4443';
  15. }
  16. if (__wxConfig.envVersion == 'trial') {
  17. Vue.prototype.upload = 'https://api.radar-power.asia:4443';
  18. }
  19. if (__wxConfig.envVersion == 'release') {
  20. Vue.prototype.uploadimg = 'https://api.radar-power.asia:4443';
  21. }
  22. App.mpType = "app";
  23. const app = new Vue({
  24. ...App,
  25. });
  26. app.$mount();