|
|
@@ -1,48 +1,45 @@
|
|
|
-import Vue from 'vue'
|
|
|
-import App from './App.vue'
|
|
|
-import vuex from 'vuex'
|
|
|
+import Vue from "vue";
|
|
|
+import App from "./App.vue";
|
|
|
+import vuex from "vuex";
|
|
|
+
|
|
|
+import router from "./router";
|
|
|
+import "@/assets/theme/theme.less";
|
|
|
+import { axios, serverName, orginLink } from "./config/http";
|
|
|
+
|
|
|
+import { $showBroadcast, $hideBroadcast } from "./components/popupLayout";
|
|
|
|
|
|
-import router from './router'
|
|
|
-import '@/assets/theme/theme.less'
|
|
|
-import {axios, serverName,orginLink} from './config/http'
|
|
|
|
|
|
-import {
|
|
|
- $showBroadcast,
|
|
|
- $hideBroadcast,
|
|
|
-} from './components/popupLayout'
|
|
|
|
|
|
Vue.mixin({
|
|
|
methods: {
|
|
|
$showBroadcast,
|
|
|
- $hideBroadcast
|
|
|
- }
|
|
|
-})
|
|
|
-Vue.use(vuex)
|
|
|
-Vue.prototype.$http = axios
|
|
|
-Vue.prototype.$serverName = serverName
|
|
|
-Vue.prototype.$orginLink = orginLink
|
|
|
-Vue.prototype.$cdn = 'https://houseoss.4dkankan.com/chuanshan'
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-Vue.config.productionTip = false
|
|
|
-Vue.prototype.$bus = new Vue()
|
|
|
-
|
|
|
-let tmpYear = {}
|
|
|
+ $hideBroadcast,
|
|
|
+ },
|
|
|
+});
|
|
|
+Vue.use(vuex);
|
|
|
+Vue.prototype.$http = axios;
|
|
|
+Vue.prototype.$serverName = serverName;
|
|
|
+Vue.prototype.$orginLink = orginLink;
|
|
|
+Vue.prototype.$cdn = "https://houseoss.4dkankan.com/chuanshan";
|
|
|
+
|
|
|
+Vue.config.productionTip = false;
|
|
|
+Vue.prototype.$bus = new Vue();
|
|
|
+
|
|
|
+let tmpYear = {};
|
|
|
for (let i = 2000; i <= 2050; i++) {
|
|
|
- tmpYear[i] = i+'年'
|
|
|
+ tmpYear[i] = i + "年";
|
|
|
}
|
|
|
|
|
|
-Vue.prototype.$linear ={
|
|
|
+Vue.prototype.$linear = {
|
|
|
0: "linear-gradient(180deg, #828A8E 0%, #CBCCCD 100%)",
|
|
|
1: "linear-gradient(180deg, #868990 0%, #EEEEEE 100%)",
|
|
|
2: "linear-gradient(180deg, #403F3D 0%, #F3F3F3 100%)",
|
|
|
- 'r': "linear-gradient(180deg, #EF4539 0%, #CB2C20 100%)",
|
|
|
- 'w': "linear-gradient(180deg, #F3F3F3 0%, #E3E3E3 100%)"
|
|
|
+ r: "linear-gradient(180deg, #EF4539 0%, #CB2C20 100%)",
|
|
|
+ w: "linear-gradient(180deg, #F3F3F3 0%, #E3E3E3 100%)",
|
|
|
};
|
|
|
|
|
|
new Vue({
|
|
|
router,
|
|
|
- store: require('./store').default,
|
|
|
- render: h => h(App)
|
|
|
-}).$mount('#app')
|
|
|
+ store: require("./store").default,
|
|
|
+ render: (h) => h(App),
|
|
|
+}).$mount("#app");
|