1 Star 0 Fork 0

Wells / baoyin_frontend_members

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

保银尊享平台-会员端

项目搭建


  • /src/assets 所有静态文件(图片、svg图标...)

  • /src/components 全局复用组件

  • /src/router/routes 路由分配 Index下的Children, 页面全部包含底部导航

  • /src/router/routes/Common 页面全部分配到根路由, 页面不包含底部导航

  • /src/scripts 封装Vue.prototype上的所有脚本

  • /src/store Vuex模块

  • /src/style 包含全局样式, quickly-css

  • /src/utils 工具方法, 不挂载到vue原型上

  • /src/vant vant组件库, 按需加载配置, 覆盖样式

  • /src/views/!Common 一级路由(包含底部导航菜单) 文件路径

  • /src/views/Common 二级路由(从导航菜单分离)

  • /src/plugin.js/src/scripts下的脚本统一挂载到vue上

介绍


基于vue-cli3,vue@2.6.6,vant@2.1.1 的一个高度可扩展、快速开发的模版

  • vue
  • vue-router
  • vant
  • sass
  • axios
  • quickly-css

关于打包


使用了 compression-webpack-plugin 对vue、vue-router、axios进行优化,打包后引入cdn加速

无业务代码打包后的体积:

  • Compiled successfully in 7145ms File -------------- Size --------- Gzipped dist/js/chunk-vendors.b9a3b2dc.js -- 23.13 KiB -- 6.86 KiB dist/js/app.6adf6c24.js -- 6.86 KiB -- 2.16 KiB dist/css/app.38c0b6af.css -- 73.33 KiB -- 14.01 KiB

使用


clone到本地:

git clone https://gitee.com/zj1024/baoyin_frontend_members.git

安装依赖:

cnpm install

运行:

npm run serve

打包:

npm run build
MIT License Copyright (c) 2019 张京 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

保银尊享平台会员端 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/zj1024/baoyin_frontend_members.git
git@gitee.com:zj1024/baoyin_frontend_members.git
zj1024
baoyin_frontend_members
baoyin_frontend_members
master

搜索帮助