# supermall **Repository Path**: XWenCode/supermall ## Basic Information - **Project Name**: supermall - **Description**: a vue.js supermall - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-05 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # supermall ## Project setup ``` npm install ``` ### Compiles and hot-reloads for development ``` npm run serve ``` ### Compiles and minifies for production ``` npm run build ``` ### Run your tests ``` npm run test ``` ### Lints and fixes files ``` npm run lint ``` ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). ### 基本配置 postcss.config.js 不同手机屏幕的配置相关 vue.config.js 路径配置相关 ### 公共资源管理 assets 存放css和img资源 common mixin.js和utils.js,公用工具类,例如防抖函数,时间格式处理,mixin(混入) components 分为2大类,common和content, common存放通用基本组件(可以拿到其他移动端项目引用,例如nav,swiper,scroll,tab) content存放只适合在本项目使用的组件 2大类都是存放多处调用的组件 network 网络请求相关,一个页面对应一个js文件,所有关于这个页面的请求都应在此js中(这里只写请求地址和传参,组件处理result) router和store 路由配置和vuex ### views cart 购物车页 (进度:100%) category 分类页 (进度:0%) detail 商品详情页 (进度:100%) home 主页 (进度:100%) profile 个人信息页 (进度:0%) 每个页面文件夹包含一个主视图和一个childcomps文件夹,childcomps里面存放主视图子组件