In the past two years, small program has gradually become an industry outlet of the Internet, has been concerned about the industry, the major factories have also launched their own small program. Recently, JINGdong also launched a small program: Jingdong small program. Taro, as a framework focused on multi-end unified development, is the first time to adapt the small program of Jingdong. Friends who use Taro are lucky, as long as the code written with Taro before can be easily converted into jingdong small program. Next, follow the editor to learn how to use Taro to quickly develop jingdong small program.

background

Jingdong Mini program

Jingdong Mini Program platform is an open platform for JINGdong to develop its own technology (ability). The platform integrates the featured functions of JINGdong and connects merchants and users. Provide extended services for users and bring new opportunities to businesses. Jingdong mini program platform not only supports self-run inventory and automatic opening of POP merchants, but also supports new non-e-commerce merchants to participate in the mini program ecosystem.

Merchants who join jingdong mini Program open platform can make use of the complete marketing, transaction, payment, membership, logistics and other capabilities of jingdong platform to build their own characteristic service scenes more conveniently. Help merchants to realize the “transition” in the ecological scene, and quickly provide users with one-stop service experience.

Jingdong mini program only needs one development to run in jingdong APP, JINGdong Finance APP and Jingmai APP. Jingdong APP and JINGdong Financial APP will open specific capabilities, and multiple high-traffic entrances will be opened to high-quality small programs, including code scanning, search, messaging and other ways of access. Jingmai APP applet is mainly used for the development and customization of business tool plug-ins.

Taro

Taro is a multi-terminal unified development solution launched by Bump Lab that follows the React syntax specification and is also an official development framework recommended by JINGdong Miniprogram.

Use Taro to develop tools that allow you to code more formally and efficiently and enjoy the React/Vue ecosystem. More importantly, you only need to write a code to run it on various platforms: JINGdong/wechat/Baidu/Alipay/Bytedance /QQ mini program, Kuaiapp, H5, React-Native, etc.

Now Taro is being widely used in jingdong big business, such as jingdong shopping (WeChat), jing xi (WeChat, H5, RN), jingdong good street (WeChat, baidu beat, bytes), jingdong home (WeChat, H5), large business in the industry has also been the widely used, such as: 58 city, like tea, tencent vomit slot community and so on.

Use Taro to quickly develop jingdong mini programs

Enter jingdong small program

Enter jingdong mini program official website, submit relevant information to complete the entry.

The development of

1. Install the Taro CLI tool:

npm install -g @tarojs/cli
Copy the code

Students who have installed Taro please note the updated version of Taro. Since 1.3.20, Taro supports the conversion of jingdong mini program.

2. Create a project using the CLI:

taro init [projectName]
Copy the code

3. Access the project root directory, use the CLI to compile the project, and develop the project according to the Taro documentation:

taro build --type jd [--watch]
Copy the code

4. The debugging

After successful application, JINGdong Applet will issue invitation codes to developers and provide developer tools to download. After downloading, developers can use developer tools for debugging.

Taro has been fully adapted to JINGdong mini program

Taro has 100% completed the conversion of JD Applet and fully supports the various features of JD Applet.

If you encounter any problems or difficulties during development, please feel free to give feedback on Github Issues and Taro community, or contact [email protected]. We will reply and support you as soon as possible.

Example project transformation renderings

Small series try to Taro Github learning resources in the excellent open source projects: yan yan selected multi-terminal project respectively converted into wechat small program and jingjing small program, the comparison shows that the conversion is very perfect, the performance is basically the same.

Wechat applet end

Jingdong small program end

The future planning

Taro team is full of expectations and confidence for jingdong mini program. For our discussion and planning a series of work, adapted by the underlying framework, fall to the ground, to the secondary business expand jingdong small ecological program, and then to jingdong small program visualization of self-help structures, such as, the current market part of the finished material material adapted to verify and tag support jingdong small programs, experience visualization self-help structures, please click on the link in accordance with the guide to application experience.

I look forward to your participation

If you have any comments, suggestions, business support and cooperation appeals, please send email to [email protected], we will reply as soon as possible.

Start using Taro to develop your jingdong app now

Learn more about JINGdong mini program

Jingdong Mini Program Platform, Here he Comes


Welcome to the bump Lab blog: AOtu.io

Or pay attention to the bump Laboratory public account (AOTULabs), push the article from time to time: