123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- import App from './App'
- import uView from "uview-ui";
- // #ifndef VUE3
- import Vue from 'vue'
- import './uni.promisify.adaptor'
- Vue.config.productionTip = false
- Vue.use(uView);
- //自定义组件
- import My_listbox from './components/My_listbox.vue';
- Vue.component("My_listbox", My_listbox);
- import My_search from './components/My_search.vue';
- Vue.component("My_search", My_search);
- import filtrate from './components/filtrate.vue';
- Vue.component("filtrate", filtrate);
- import appList from './components/appList.vue';
- Vue.component("appList", appList);
- import floatBut from './components/floatBut.vue';
- Vue.component("floatBut", floatBut);
- import slideshow from './components/slideshow.vue';
- Vue.component("slideshow", slideshow);
- import storeInfo from './components/storeInfo.vue';
- Vue.component("storeInfo", storeInfo);
- import my_form from './components/my_form.vue';
- Vue.component("my_form", my_form);
- import My_upload from './components/my-upload.vue';
- Vue.component("My_upload", My_upload);
- import bottomForm from './components/bottomForm.vue';
- Vue.component("bottomForm", bottomForm);
- import displayCell from './components/displayCell.vue';
- Vue.component("displayCell", displayCell);
- //挂载接口
- let isDev = process.env.NODE_ENV === 'development';
- console.log('运行环境' + process.env.NODE_ENV, isDev ? '开发' : '生产');
- const http = {};
- // #ifdef H5
- http.baseUrl = isDev ? "/apis1" : "/apis";
- http.socket = isDev ? "/socket1" : "/socket";
- // #endif
- // #ifndef H5
- http.baseUrl = isDev ? "http://61.164.207.46:8900" : "http://61.164.207.46:8900";
- http.socket = isDev ? "ws://61.164.207.46:8900" : "wss://www.ibpchina.com.cn";
- // #endif
- console.log("接口地址", http)
- import {
- Login
- } from "./utils/login"
- Vue.prototype.$Login = new Login();
- Vue.prototype.$Login.wechatLogin()
- import {
- ApiModel
- } from './utils/api'
- Vue.prototype.$Http = new ApiModel(http);
- Vue.prototype.$Http.wechatLogin = Vue.prototype.$Login.wechatLogin;
- App.mpType = 'app'
- const app = new Vue({
- ...App
- })
- app.$mount()
- // #endif
- // #ifdef VUE3
- import {
- createSSRApp
- } from 'vue'
- export function createApp() {
- const app = createSSRApp(App)
- return {
- app
- }
- }
- // #endif
|