98 lines
1.8 KiB
JavaScript
98 lines
1.8 KiB
JavaScript
// The Vue build version to load with the `import` command
|
|
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
|
|
// import "./assets/reset.css";
|
|
import "lib-flexible/flexible";
|
|
// import "@/assets/rem.js";
|
|
|
|
import "@/elementui";
|
|
import ElementUI from "element-ui";
|
|
import "element-ui/lib/theme-chalk/index.css";
|
|
|
|
import Vue from "vue";
|
|
import App from "./App";
|
|
import router from "./router";
|
|
import "@/assets/css/global.css";
|
|
import {
|
|
Button,
|
|
NavBar,
|
|
Cell,
|
|
CellGroup,
|
|
Notify,
|
|
PullRefresh,
|
|
Toast,
|
|
Overlay,
|
|
Collapse,
|
|
CollapseItem
|
|
} from "vant";
|
|
|
|
Vue.use(Collapse);
|
|
Vue.use(CollapseItem);
|
|
|
|
Vue.use(Button)
|
|
.use(NavBar)
|
|
.use(Cell)
|
|
.use(CellGroup);
|
|
Vue.use(PullRefresh);
|
|
Vue.use(Toast);
|
|
Vue.use(Overlay);
|
|
|
|
Vue.use(ElementUI);
|
|
|
|
Vue.use(Notify);
|
|
|
|
import { Image as VanImage } from "vant";
|
|
|
|
Vue.use(VanImage);
|
|
|
|
import { Col, Row } from "vant";
|
|
|
|
Vue.use(Col);
|
|
Vue.use(Row);
|
|
|
|
import { Grid, GridItem } from "vant";
|
|
|
|
Vue.use(Grid);
|
|
Vue.use(GridItem);
|
|
|
|
import { Icon } from "vant";
|
|
|
|
Vue.use(Icon);
|
|
|
|
import { List } from "vant";
|
|
|
|
Vue.use(List);
|
|
|
|
import { Divider } from "vant";
|
|
|
|
Vue.use(Divider);
|
|
|
|
Vue.config.productionTip = false;
|
|
import md5 from "js-md5";
|
|
Vue.prototype.$md5 = md5;
|
|
|
|
Vue.prototype.$bus = new Vue();
|
|
/* eslint-disable no-new */
|
|
let mode = ""
|
|
if (sessionStorage.getItem("mode") == "older") {
|
|
/* sessionStorage.setItem("mode", "normal");
|
|
this.$parent.$parent.mode = false; */
|
|
mode = false;
|
|
} else {
|
|
// 老年化模式
|
|
/* sessionStorage.setItem("mode", "older");
|
|
this.$parent.$parent.mode = true; */
|
|
mode = true;
|
|
}
|
|
const vm = new Vue({
|
|
el: "#app",
|
|
router,
|
|
data: function(){
|
|
return {
|
|
mode: mode, //false 代表青年年模式 ; true 代表老年年模式
|
|
}
|
|
},
|
|
components: { App },
|
|
template: "<App/>"
|
|
});
|
|
export default vm;
|