GithubHelp home page GithubHelp logo

du1wu2lzlz / shuyibao_bookstore Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 109.15 MB

vue2.x+vue-router+vuex+axios+elementUi+webpack+Babel

Home Page: http://www.atschool.com.cn

JavaScript 31.19% HTML 0.20% Vue 68.62%

shuyibao_bookstore's Introduction

 项目地址

   www.atschool.com.cn    

二手书交易系统前端

二手书交易系统前端

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run all tests
npm test

二手书交易系统后台

环境配置

  1. 安装JDK8(推荐8u111及以上),环境变量配置

  2. 安装Tomcat(7.0.53),用exe安装则不需要进行环境变量配置

  3. 安装maven(3.3.9),环境变量配置。从coding网站下载配置文件,修改本地库路径

  4. 项目导入eclipse,导入安装的JRE系统库以及Tomcat库

  5. 修改tomcat的配置文件:server.xml,修改段应该位于该文件的最下方,

    修改前:

        <Context docBase="reusebook" path="/reusebook" reloadable="true" source="org.eclipse.jst.j2ee.server:reusebook"/>
    

    修改后:

        <Context docBase="reusebook" debug="0" path="" reloadable="true" source="org.eclipse.jst.j2ee.server:reusebook"/>
    

    需要注意的是,修改的属性只有docBase,path,之后增加debug属性,别的属性维持原状,比如source以各自的为准

  6. 数据库配置    reusebook/Java Resources/src/main/resources/conf/constant.properties

前端引入jquery

首先在package.json里的dependencies加入"jquery" : "^2.2.3",
然后npm install或者用cnpm install --registry=http://registry.npm.taobao.org安装的会更快一点  

在webpack.base.conf.js里加入   

var webpack = require("webpack")  

在module.exports的最后加入

plugins: [
            new webpack.optimize.CommonsChunkPlugin('common.js'),
            new webpack.ProvidePlugin({
            jQuery: "jquery",
            $: "jquery"
            })
          ]

然后一定要重新npm  run dev  

在main.js 引入就ok了import $ from 'jquery'  

更新记录

+ 18/5/5 更新
  本次更新:  
    1. 首页布局UI优化 间距问题 双滚动条等问题修复
    2. 登录页面修改 引入element-UI 新增登录提示信息
    3. 注册页面修改 验证加入 提示信息增加
    4. 验证码点击刷新 
    5. 新增 jQuery   element-UI  支持全局使用 
+ 18/5/6 更新
   本次更新:
    1. 首页 店铺页 推荐商品支持跳转
    2. 权限不同 登陆成功后跳转的页面不同
       (超级管理员,卖家,用户)
    3. 未登陆用户重定向至登陆界面 并附提示信息
    4. 个人中心 密码修改 信息校验以及提示

说明

  上线时候记得更改url路径,上线打包的war包数据库密码要与线上数据库密码保持一致
  验证码线上 url: 'http://www.atschool.com.cn'
        本地 url: 'http://localhost:8080'
  预览账号(买家):     账号:du1wu2lzlz
  密码:602602
  超级管理员和卖家账号就不公布了
 

Todo

+ 实现无效路由(404)的友好提示

shuyibao_bookstore's People

Contributors

du1wu2lzlz avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

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.