Coder Social home page Coder Social logo

heavyplatform's Introduction

Hi there 👋

Visitors

  • 🎓 BJTU School of Software Engineering
  • 🔭 Working on ACH, a Minecraft Server Helper for AzurCraft
  • 🌱 Learning Rust

Top Langs

heavyplatform's People

Contributors

azurice avatar fooliqi avatar ypnbc avatar yxhxianyu avatar

Stargazers

 avatar

Watchers

 avatar  avatar

heavyplatform's Issues

[component] Order create modal

创建订单组件

难度较难,工作量中等

做成组件而非页面的原因是,组件方便传参,可以实现成一个 Modal(参考 /components/MenuItem/CreateMenuItemModal.tsx)。

const CreateOrderModal: Component<{show: Accessor<boolean>, cartItems: Accessor<CardItem[]>}> = (props) => {
    // ...
}

在这个组件里面同时再做一下支付和支付成功(支付成功才会创建订单)

就整体上是一个弹窗来创建订单,点下一步,内容变成支付,再点立即支付,内容变成支付成功,这个时候添加到订单列表里。

[page] Me page

我的页面:/pages/Main/Me
路由:/me

难度简单,工作量中等

[page] Cart page

购物车页面:/pages/Main/CartItems
路由:/cartitems

难度简单,工作量中等

[Component] Good Card

主页商品卡片:/components/GoodCard

难度简单,工作量少

显示在主页/搜索结果中的商品卡片,包含图片、名称、价格基础信息

const GoodCard: Component<{id: number}> = (props) => {
    // ...
}

在组件中通过 createAsync(() => getGood(id)) 调用 store 中使用 cached 包裹的 api 来获取商品。

例:

image

[page] Order list page

订单列表页面:/pages/Main/Orders
路由:/orders

难度简单,工作量中等

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.