Giter Club home page Giter Club logo

demo_cart's Introduction

DEMO CART

1.备注

  1. UI 组件库集成 Ant Design Mobile RN, 集成了 axios 和 react-query 作用请求库

  2. 采用购物车 UI(screens)层和逻辑层(context/cartProvider)分离,购物车数据是一个全局的状态,所以放在了 context 里面, 然后用 hooks 暴露出去。

  3. 购物车是根据品规作为分类标准的

  4. 因总计是统计所有购物车数据,如果前端 mock 分页加载,总计就会随着页数的增加而增加,这样逻辑就不对,因此没有用分页处理。

2.expo 地址

https://expo.dev/@pengxw/DemoCart?serviceType=classic&distribution=expo-go

3.安卓下载地址

https://expo.dev/artifacts/eas/b4Hfa7FLWofuBqEq4ucq7g.aab

demo_cart's People

Watchers

Ernie Dubrow 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.