Giter VIP home page Giter VIP logo

atfu-web's Introduction

atfu-web项目

配套SpringBoot后台项目

本项目主要演示

  1. Vue.js的使用
  2. element-ui的使用

界面如下,使用css @media针对手机端做了很简单的自适应

PC端首页界面 手机端首页界面 PC端产品搜索界面 手机端产品搜索界面

安装依赖包,可能要等待比较久

yarn install

编译和热部署启动,或者使用WebStorm导入项目,点击运行

yarn run serve

编译打包项目,用于生产环境 ps: 如果使用Nginx,需设置nginx.conf,参考链接设置

yarn run build

路由配置

import Contact from "@/components/Contact";
import Main from "@/components/Main";
import Products from "@/components/Products";
import Partners from "@/components/Partners";

const routes = [
    {path: '/', name: "/", component: Main},
    {path: '/products', name: "products", component: Products},
    {path: '/partners', name: "partners", component: Partners},
    {path: '/contact', name: "contact", component: Contact},
    {path: '*', name: "/"}
]

export default routes;

vuex的使用

这里只存储了接口的url

import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);
const state = {
    devUrl: "http://127.0.0.1:8010/atfu"
};
const store = new Vuex.Store({
    state
});

export default store;

atfu-web's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.