Dry goods: Want to make small programs? Don't step on these 30 pits


1. The name of the applet can be Chinese, numeric or English. The length is between 3-20 characters, and one Chinese character is equal to 2 characters.

2. The name of the applet shall not be the same as the existing subscription number and service number of the public platform. If you are prompted to have the same name, please change the name to set.

3. The name of the applet is completed when the account information is set. Please set it carefully. Once it is set, it is not supported to modify.

4. Change the name to set. If the company's trademark, organization name and other names are infringed, you can file a complaint through the public platform infringement complaint process to get the right to use the name.

5. Individual developers cannot apply for WeChat Mini Programs; currently, WeChat only supports applications from enterprises, governments, media, and other organizations.

6. A subject can register 30, and a developer with a bound identity can only create 5 WeChat Mini Programs.

* For employees, please don’t lend your boss your WeChat to register the WeChat Mini Program, because you will have no chance.

* For the boss, please don't lend your employee WeChat to register the WeChat Mini Program, because you may not want it back.

7. If you are not a special organization, you still have to spend 300 yuan for certification.

* Even if you have verified the public account, you still need to pay 300 yuan (WeChat payment is supported) for verification, so that you can turn on the audit switch and publish the applet.

* WeChat payment requires WeChat authentication before it can be used.

8. There are only 3 chances to modify the server configuration every month, save it, and be careful there is no chance.

* Don't mess around with the configuration below, be sure to move it again, and write it all at once, otherwise you will waste your chance if you change a small punctuation.

9. Your domain name, filing, and https should be ready, otherwise you can't do it. (The server domain name needs to be registered with ICP, and it takes 24 hours for the new registered domain name to be configured. The domain name format only supports uppercase and lowercase letters, numbers and "-" in Yawen, and does not support IP addresses and port numbers)

10. The mini program avatar and introduction can only be modified 5 times per month, and the service scope can only be modified once per month. The QR code of the Mini Program can only be obtained after the first version goes online.

11. When selecting a template message, you can use the template of the title with different keywords. After the configuration is submitted, the type and order of keywords cannot be modified.

12. When the template keyword cannot be found, you can apply for addition. New keywords can be submitted 5 times a month, and they will be shared after approval. (A good opportunity to pile up your own keywords!!)

13. There is only one administrator for a small program account (can be modified), and 10 developers can be bound.

14. Key points:

* Development version: Using developer tools, you can upload the code to the development version. The development version only retains the latest uploaded code per person. Click Submit for review to submit the code for review. The development version can be deleted without affecting the code of the online version and the version under review.

* Version under review: Only one copy of the code is under review. After the review results are available, they can be published online, or they can be directly resubmitted for review, overwriting the original review version.

* Online version: The code version used by all online users, the version code will be overwritten and updated after the new version code is released.

15. Only the administrator can view the applet AppSecret, and the platform will not save the AppSecret in plain text.

16. Data analysis only counts the values ​​used in the published online version, and provides real-time statistical data.

17. The developer tools currently provide windows 64, windows 32, and mac versions (the version is currently being updated and iterated, and you may need to go to update frequently).

18. During the internal testing stage, the code upload function can only be operated by the administrator's WeChat account.

19. After writing the code, the tool will automatically help the user to save the current code editing state, close the tool directly or switch to another project, and the edited file state will not be lost, but it should be noted that only saving the file and modifying the content Only then will it actually be written to the hard disk and trigger a real-time preview.

20. Get user input: You need to use the component's attribute bindchange to synchronize the user's input to the AppService.

21. Objects such as window cannot be used in scripts:

JsCore is an environment without window objects, so windows cannot be used in scripts, and components cannot be manipulated in scripts.

22. Zepto/jquery will use the window object and the document object, so it cannot be used.

23. An application can only open 5 pages at the same time. After 5 pages have been opened, wx.navigateTo cannot open a new page normally. Please avoid multi-level interactions, or use wx.redirectTo.

24. Cascading selectors are not supported in style sheets:

* WXSS supports class selectors starting with .; tag selectors can be used to control the styles of components of the same class.

25. Local resources cannot be obtained through css:

* background-image: You can use network images, or base64, or use tags.

26. Modify the background color of the window:

* Use the page tag selector to modify the style of the top-level node.

27. Definition of foreground and background:

* When the user clicks the upper left corner to close, or presses the home button of the device to leave WeChat, the applet is not destroyed directly, but enters the background;

* When the user enters WeChat again or opens the applet again, it will From the background to the foreground, only when the applet enters the background for a certain period of time, or the system resource usage is too high, will it be really destroyed.

28. App() must be registered in app.js, and more than one cannot be registered.

* Do not call getApp() in a function defined in App(), use this to get the app instance.

* Don't call getCurrentPage() in onLaunch when the page has not been generated yet.

* After obtaining the instance through getApp(), do not call the lifecycle function privately.

29. The tabBar is an array, which can only be configured with a minimum of 2 and a maximum of 5 tabs. The tabs are sorted in the order of the array. (bottom navigation bar)

30. You can set the timeout time of various network requests.

quote
This article comes from the "H5 Program Club" public account
"H5 Program Club" is a WeChat public account that focuses on WeChat applet learning and communication, and the release of relevant outsourcing/recruitment needs information



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326394210&siteId=291194637