Code Monkey home page Code Monkey logo

jingdong's Introduction

jingdong

移动端项目:京东到家

线上演示

Project setup

npm install
npm run serve
npm run build
npm run lint

项目页面

  • 注册
  • 登录
  • 首页
  • 购物车页
  • 商家详情页
  • 商家详情页-遮罩
  • 确认订单
  • 选择收货地址
  • 确认提交弹框
  • 我的订单
  • 个人中心
  • 地址列表
  • 新建地址
  • 修改地址

注册 登录 首页 购物车页 商家详情页 商家详情页-遮罩 确认订单 选择收货地址 确认提交弹框 我的订单 个人中心 地址列表 新建地址 修改地址

stylesheets

  • 1rem == 1 * html 元素的 font-size
  • BEM 命名: block__element--modifier 语义化的css编码

npm packages

npm i -S normalize.css

js code snippet

  code-for-project git:(cwy-branch)  node
Welcome to Node.js v12.16.2.
// Returns a string consisting of the elements of the object repeated count times.
> 'js'.repeat(5)
'jsjsjsjsjs'

参考

  • Flex 布局教程:语法篇

  • flex container

    • flex-direction
    • flex-wrap
    • flex-flow
    • justify-content
    • align-items
    • align-content
  • flex item

    • order
    • flex-grow
    • flex-shrink
    • flex-basis
    • flex
    • align-self

flex-basis 属性定义了在分配多余空间之前,项目占据的主轴空间(main size),设置元素的初始长度

// scss
  .position {
    // ...
    &__icon {
      // ...
    }
    .position__notice {
      // ...
    }
  }

// scss 编译后生成的 css
.position {
  // ...
}
.position__icon {
  // ...
}
.position .position__notice {
  // ...
}
  • css hack 避免图片下面内容的抖动
.banner {
  height: 0;
  overflow: hidden;
  // padding 的值为百分数时,是相对于容器的宽度 width 来计算的
  padding-bottom: 25.4%; // 这里 25.4% 是通过容器的 height/width 计算得到的
  &__img {
    width: 100%;
  }
}

jingdong's People

Contributors

cwy007 avatar

Stargazers

 avatar  avatar

Watchers

 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.