I checked a lot of information to solve the problem, and attached a screenshot, hoping to help everyone.
Table of contents
1. What stages do you need to go through when developing a smart applet?
2. Run the uniapp project on the Baidu applet development tool
Note: Import the generated packaged product directly, and the mp-baidu folder will do
3. Baidu applet package and upload
foreword
If you do not understand the request , method , etc., you can read the Baidu document, and the typesetting function of the uniapp document is similar to the Baidu smart applet document
提示:以下是本篇文章正文内容,下面案例可供参考
1. What stages do you need to go through when developing a smart applet?
2. Run the uniapp project on the Baidu applet development tool
1. run
2. Find the correct folder
Note: Import the generated packaged product directly, and the mp-baidu folder will do
wrong choice:
If you directly import the project into the Baidu applet development tool, an error will be reported
3. Baidu applet package and upload
Pay attention to avoid pits:
When publishing the applet, it prompts: "Please scan the code to preview first, and publish it after confirming the effect."
Obviously, it has been previewed as required, but after clicking publish, it still prompts.
Solution:
After clicking publish, click preview, and then use the mobile phone Baidu APP to scan and preview.
Be sure to use the Baidu app on your mobile phone. After scanning the preview with other devices, the result will still keep prompting that it cannot be published, remember! ! !
Finally, the package upload is successful.