houwei 4 роки тому
коміт
acdfae570f

+ 24 - 0
README.md

@@ -0,0 +1,24 @@
+# matcherweb
+
+## Project setup
+```
+npm install
+```
+
+### Compiles and hot-reloads for development
+```
+npm run serve
+```
+
+### Compiles and minifies for production
+```
+npm run build
+```
+
+### Lints and fixes files
+```
+npm run lint
+```
+
+### Customize configuration
+See [Configuration Reference](https://cli.vuejs.org/config/).

+ 5 - 0
babel.config.js

@@ -0,0 +1,5 @@
+module.exports = {
+  presets: [
+    '@vue/cli-plugin-babel/preset'
+  ]
+}

Різницю між файлами не показано, бо вона завелика
+ 12065 - 0
package-lock.json


+ 48 - 0
package.json

@@ -0,0 +1,48 @@
+{
+  "name": "matcherweb",
+  "version": "0.1.0",
+  "private": true,
+  "scripts": {
+    "serve": "vue-cli-service serve",
+    "build": "vue-cli-service build",
+    "lint": "vue-cli-service lint"
+  },
+  "dependencies": {
+    "core-js": "^3.6.5",
+    "element-ui": "^2.14.1",
+    "vant": "^2.11.3",
+    "vue": "^2.6.11",
+    "vue-router": "^3.2.0",
+    "vuex": "^3.4.0"
+  },
+  "devDependencies": {
+    "@vue/cli-plugin-babel": "~4.5.0",
+    "@vue/cli-plugin-eslint": "~4.5.0",
+    "@vue/cli-plugin-router": "^4.5.9",
+    "@vue/cli-plugin-vuex": "^4.5.9",
+    "@vue/cli-service": "~4.5.0",
+    "babel-eslint": "^10.1.0",
+    "eslint": "^6.7.2",
+    "eslint-plugin-vue": "^6.2.2",
+    "vue-template-compiler": "^2.6.11"
+  },
+  "eslintConfig": {
+    "root": true,
+    "env": {
+      "node": true
+    },
+    "extends": [
+      "plugin:vue/essential",
+      "eslint:recommended"
+    ],
+    "parserOptions": {
+      "parser": "babel-eslint"
+    },
+    "rules": {}
+  },
+  "browserslist": [
+    "> 1%",
+    "last 2 versions",
+    "not dead"
+  ]
+}

BIN
public/favicon.ico


+ 17 - 0
public/index.html

@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="utf-8">
+    <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><%= htmlWebpackPlugin.options.title %></title>
+  </head>
+  <body>
+    <noscript>
+      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
+    </noscript>
+    <div id="app"></div>
+    <!-- built files will be auto injected -->
+  </body>
+</html>

+ 32 - 0
src/App.vue

@@ -0,0 +1,32 @@
+<template>
+  <div id="app">
+    <!-- <div id="nav">
+      <router-link to="/">Home</router-link> |
+      <router-link to="/about">About</router-link>
+    </div> -->
+    <router-view/>
+  </div>
+</template>
+
+<style>
+#app {
+  font-family: Avenir, Helvetica, Arial, sans-serif;
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
+  text-align: center;
+  color: #2c3e50;
+}
+
+#nav {
+  padding: 30px;
+}
+
+#nav a {
+  font-weight: bold;
+  color: #2c3e50;
+}
+
+#nav a.router-link-exact-active {
+  color: #42b983;
+}
+</style>

BIN
src/assets/active_bar1.png


BIN
src/assets/active_bar2.png


BIN
src/assets/active_bar3.png


BIN
src/assets/activeimg.png


BIN
src/assets/activephoto.png


BIN
src/assets/cardModel.png


BIN
src/assets/demo.png


BIN
src/assets/di.png


BIN
src/assets/ewm.png


BIN
src/assets/ewmbj.png


BIN
src/assets/gou.png


BIN
src/assets/gray.png


BIN
src/assets/heart.png


BIN
src/assets/icon1.png


BIN
src/assets/icon2.png


BIN
src/assets/icon3.png


BIN
src/assets/icon4.png


BIN
src/assets/icon5.png


BIN
src/assets/icon6.png


BIN
src/assets/lb.png


BIN
src/assets/logo.png


BIN
src/assets/love.png


BIN
src/assets/person_bj.png


BIN
src/assets/photo.jpg


BIN
src/assets/show.png


BIN
src/assets/unactive_bar1.png


BIN
src/assets/unactive_bar2.png


BIN
src/assets/unactive_bar3.png


+ 39 - 0
src/components/tabbar.vue

@@ -0,0 +1,39 @@
+<template>
+  <div class="tabbar">
+    <div class="t1">
+      <img src="../assets/active_bar1.png" alt="" />
+      <p>首页</p>
+    </div>
+    <div class="t1">红娘</div>
+    <div class="t1">我的</div>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "tabbar",
+};
+</script>
+<style scoped>
+.tabbar {
+  width: 100%;
+  height: 50px;
+  background-color: #fff;
+  box-shadow: 0 0 10rpx 10rpx #eceafa;
+  display: flex;
+  position: fixed;
+  bottom: 0;
+  left: 0;
+  border: 1px solid red;
+}
+.t1 {
+  width: 33%;
+  height: 100%;
+  border: 1px solid red;
+  text-align: center;
+}
+.t1 img{
+  width: 30px;
+  height:30px;
+}
+</style>

+ 18 - 0
src/main.js

@@ -0,0 +1,18 @@
+import Vue from 'vue'
+import App from './App.vue'
+import router from './router'
+import store from './store'
+import ElementUI from 'element-ui'
+import 'element-ui/lib/theme-chalk/index.css'
+import Vant from 'vant';
+import 'vant/lib/index.css';
+
+Vue.config.productionTip = false;
+Vue.use(ElementUI);
+Vue.use(Vant);
+
+new Vue({
+  router,
+  store,
+  render: h => h(App)
+}).$mount('#app')

+ 27 - 0
src/router/index.js

@@ -0,0 +1,27 @@
+import Vue from 'vue'
+import VueRouter from 'vue-router'
+import index from '../views/index.vue'
+
+Vue.use(VueRouter)
+
+const routes = [
+  {
+    path: '/',
+    name: 'index',
+    component: index
+  },
+  {
+    path: '/about',
+    name: 'About',
+    // route level code-splitting
+    // this generates a separate chunk (about.[hash].js) for this route
+    // which is lazy-loaded when the route is visited.
+    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
+  }
+]
+
+const router = new VueRouter({
+  routes
+})
+
+export default router

+ 15 - 0
src/store/index.js

@@ -0,0 +1,15 @@
+import Vue from 'vue'
+import Vuex from 'vuex'
+
+Vue.use(Vuex)
+
+export default new Vuex.Store({
+  state: {
+  },
+  mutations: {
+  },
+  actions: {
+  },
+  modules: {
+  }
+})

+ 5 - 0
src/views/About.vue

@@ -0,0 +1,5 @@
+<template>
+  <div class="about">
+    <h1>This is an about page</h1>
+  </div>
+</template>

+ 13 - 0
src/views/index.vue

@@ -0,0 +1,13 @@
+<template>
+  <div class="home">
+    <tabbaar></tabbaar>
+  </div>
+</template>
+
+<script>
+import tabbaar from '../components/tabbar'
+export default {
+  name: 'Home',
+  components: {tabbaar}
+}
+</script>