preparation
- 1. The developer must have a public account (service number) with the permission of the card coupon and a verified mini program account; 2. The developer must apply for an open platform account, and bind the small program and the public account to the same open platform account. For the introduction of open platform, please refer to wechat Open Platform; 3. You can use the interface to create the card card and obtain the card_id. You can also use the interface to create the card card. In my opinion, the service number provides several default styles and configurations);
Specific call
Since I don’t really know what the next steps are, I see that the applet provides two interfaces for adding and displaying cards, so I’ll start with these interfaces.
- Wx. addCard(Object Object)
For details, see wechat