Commit 94389d55 by chenrui@bdideal.com

新建

parent 6dfc5001
...@@ -8,10 +8,17 @@ ...@@ -8,10 +8,17 @@
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint"
}, },
"dependencies": { "dependencies": {
"axios": "^0.19.0",
"core-js": "^3.1.2", "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": "^2.6.10",
"vue-awesome-swiper": "^3.1.3",
"vue-router": "^3.0.6", "vue-router": "^3.0.6",
"vuex": "^3.0.1" "vuex": "^3.1.1"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "^4.0.0", "@vue/cli-plugin-babel": "^4.0.0",
...@@ -35,14 +42,21 @@ ...@@ -35,14 +42,21 @@
"plugin:vue/essential", "plugin:vue/essential",
"eslint:recommended" "eslint:recommended"
], ],
"rules": {}, "rules": {
"no-console": 0
},
"parserOptions": { "parserOptions": {
"parser": "babel-eslint" "parser": "babel-eslint"
} }
}, },
"postcss": { "postcss": {
"plugins": { "plugins": {
"autoprefixer": {} "autoprefixer": {},
"postcss-px2rem-exclude": {
"remUnit": 75,
"remPrecision": 2,
"exclude": "/node_modules|floder_name/i"
}
} }
}, },
"browserslist": [ "browserslist": [
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>dabai</title> <title>融创中国</title>
</head> </head>
<body> <body>
<noscript> <noscript>
......
<template> <template>
<div id="app"> <div id="app">
<div id="nav"> <back></back>
<router-link to="/">Home</router-link> | <Nav v-if="isShowNav"></Nav>
<router-link to="/about">About</router-link> <keep-alive :include='clickState.where?clickState.where:"home"'>
</div> <router-view/>
<router-view/> </keep-alive>
</div> </div>
</template> </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"> <style lang="scss">
html, body, #app{
width: 100%;
height: 100%;
}
#app { #app {
font-family: 'Avenir', Helvetica, Arial, sans-serif; font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
text-align: center; text-align: center;
color: #2c3e50; color: #2c3e50;
background:url('./assets/icon/prepare-bg.png') no-repeat center/100%;
} }
#nav { #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