How to use WeChat mini program
1. Register a mini program development account:
WeChat Public Platform Enter the WeChat Public Platform and click to register now
(1) Choose small program development
(2) Fill in the information in serial numbers 1 2 3 in order
(3) Click to activate account
(4)Select the subject type
(5) Subject information registration
(After filling in the information, use WeChat to scan the administrator identity QR code below)
2. Obtain the APPID of the mini program after registration is completed.
(1)Login
(2) Click Development-----Development Management
(3) Click Development Settings and remember your APPID
(Everyone has a different APPID and uses their own APPID)
3Install WeChat developer tools
- Download the stable version of the developer tools (unzip the installation package and install it)
Click to complete the installation successfully. The QR code will pop up to indicate the installation is successful. Use WeChat to scan the QR code.
After successful login, the following content pops up:
4. Create a WeChat applet
(1.) Click the "Plus" button
(2) Create a new folder on the desktop, customize the project name, and fill in the folder name and address into the directory Use your own APPID Choose not to use the cloud The service development language is javascript
The following page pops up. Project creation is completed.
5. Page structure
(Each folder in pages includes files with the suffix .wxml .wxss .js .json)
wxml is equivalent to .html file
wxss is equivalent to .css file
Define data request backend interface in js
Local configuration files in json
app.js: Entry file of the mini program project
app.json: global configuration file (you can configure the page path, window appearance, bottom tabbar, etc...)
app.wxss: global style file
-----Development process (omitted... check the mini program API for specific syntax)
6. Run the code
(Click compile or real machine debugging. The real machine debugging pops up the QR code and use WeChat to scan the code)
7. Project release (cannot be released directly or go online. The official version can be released only after passing the test version)
The code does not exceed 10 MB
Click to upload (fill in the version number and project notes)
Prompt that the code upload is successful
After successfully uploading the code, open the WeChat developer platform and click Version Management
Submit for review. After the review is successful, the online version of the project will be released successfully.