The TDesign retail template sample applet is built using the TDesign enterprise-level design system applet solution and relies on the TDesign WeChat applet component library to cover complete basic retail scenario requirements.
Please use WeChat to scan the following QR code:
The retail industry template applet is a classic single-store e-commerce applet, covering the golden link process of e-commerce, from products -> shopping cart -> settlement -> orders, etc. The mini program contains a total of 28 complete pages, covering basic pages such as homepage, product details page, personal center, and after-sales process. Using mock data for display, it provides a complete retail product display, transaction and after-sales process. Page details:
Screenshots of the main pages are as follows:
The retail industry template applet is built using basic JavaScript + WXSS + ESLint, which lowers the threshold for use.
The project directory structure is as follows:
|-- tdesign-miniprogram-starter
|-- README.md
|-- app.js
|-- app.json
|-- app.wxss
|-- components // 公共组件库
|-- config // 基础配置
|-- custom-tab-bar // 自定义 tabbar
|-- model // mock 数据
|-- pages
| |-- cart // 购物车相关页面
| |-- coupon // 优惠券相关页面
| |-- goods // 商品相关页面
| |-- home // 首页
| |-- order // 订单售后相关页面
| |-- promotion-detail // 营销活动页面
| |-- usercenter // 个人中心及收货地址相关页面
|-- services // 请求接口
|-- style // 公共样式与iconfont
|-- utils // 工具库
The retail mini program uses real interface data to simulate back-end return logic, and displays complete shopping scenarios and shopping experience logic in the mini program.
pages
directory"pages"
array in the app.json
file"miniprogram-list"
in the project.config.json
file npm install
eslint
prettier
Minimum base library version ^2.6.5
Enterprise WeChat Group TDesign team will promptly release versions and problem fix information in the enterprise WeChat group, and there will also be some discussions on the construction of component libraries. Welcome to scan the QR code on WeChat or Enterprise WeChat to join the group for communication:
Email: [email protected]
TDesign follows the MIT license.