Commit 94389d55 by chenrui@bdideal.com

新建

parent 6dfc5001
......@@ -8,10 +8,17 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^0.19.0",
"core-js": "^3.1.2",
"element-ui": "^2.12.0",
"lib-flexible": "^0.3.2",
"postcss-px2rem-exclude": "0.0.6",
"reset-css": "^4.0.1",
"vant": "^2.2.10",
"vue": "^2.6.10",
"vue-awesome-swiper": "^3.1.3",
"vue-router": "^3.0.6",
"vuex": "^3.0.1"
"vuex": "^3.1.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.0.0",
......@@ -35,14 +42,21 @@
"plugin:vue/essential",
"eslint:recommended"
],
"rules": {},
"rules": {
"no-console": 0
},
"parserOptions": {
"parser": "babel-eslint"
}
},
"postcss": {
"plugins": {
"autoprefixer": {}
"autoprefixer": {},
"postcss-px2rem-exclude": {
"remUnit": 75,
"remPrecision": 2,
"exclude": "/node_modules|floder_name/i"
}
}
},
"browserslist": [
......
......@@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>dabai</title>
<title>融创中国</title>
</head>
<body>
<noscript>
......
<template>
<div id="app">
<div id="nav">
<router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link>
</div>
<router-view/>
<back></back>
<Nav v-if="isShowNav"></Nav>
<keep-alive :include='clickState.where?clickState.where:"home"'>
<router-view/>
</keep-alive>
</div>
</template>
<script>
import { mapState } from 'vuex'
import back from '@/components/back'
import Nav from '@/components/nav'
// import {http} from './http/http'
// import {pramsArr} from './prams/prams'
export default {
name:'app',
data () {
return {
// include:'home'
}
},
components: {
back,
Nav
},
computed:{
...mapState({
isShowNav:state=>state.isShowNav,
clickState:state=>state.clickState
})
},
mounted(){
// console.log(this.$store.isNavShow)
},
methods:{
}
}
</script>
<style lang="scss">
html, body, #app{
width: 100%;
height: 100%;
}
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
background:url('./assets/icon/prepare-bg.png') no-repeat center/100%;
}
#nav {
......
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment