Slots company recruitment information: https://cnodejs.org/topic/5a915706653c43b914684f90
What can applets do?
A new widget feature was released on Tuesday night (March 13) – Widget Plugins. Initially thought to be widget plugins, widget plugins release nPm-like component management tools for developers to easily use components provided by others. Then I changed a function recently made to github address of the plug-in to generate sharing posters (that is, the function of downloading remote image rendering to canvas to generate images) and submitted it for review. Then I was brutally hit back by wechat, as follows:
I submitted the small program was hit back to the audit results
Then look back at the official introduction of small program plug-ins, at this time it suddenly realized that the original component is a component, plug-in is a plug-in, plug-ins can directly provide services, components are wheels for developers, can not directly provide services, are two different things.
Applets plugin official introduction
Plug-ins can be
- Provide express information query service
- Provide weather enquiry service
- Provide taxi service (Didi) – You can use the components provided by Didi to directly embed their own small programs to realize the taxi function)
- Take-away (Meituan take-away) service – such as restaurants need little program of each style is different, but he needs to delivery function, then can give restaurant is a small program tailored to the takeout part function can be used directly Meituan takeaway provide take-out plugin (* found behind the plugin doesn’t WeChat payments)
- Provide credit investigation services – for example, p2p small programs mostly use credit investigation. If someone provides a plug-in for credit investigation services, it is directly used to reduce the amount of development. Before there is no plug-in, you can do it yourself. Otherwise, you can use the small program Webview function to open the credit investigation website (need to add webView domain name allowed), but this experience is far better than the small program
There are many more things you can do, but applets currently limit the open scope and service category (open category)
How to use someone else’s plugin
There are two steps:
- Add plug-ins in the applets management background
-
- Use plug-ins in applets code
Small program developers can find needed plug-ins according to AppID in “Small program Management Background – Settings – third-party services – plug-in management” and apply for use. After the plugin developer passes the plugin within 24 hours, the applet developer can use the plugin within the applet. Here are three key points:
- You cannot search by keyword, only by ID
- There is no description of the plugin and how to use it, only the avatar and name (paving the way for the plugin market).
- It is not easy to search out and add it, but also need plug-in developersWithin 24 hoursTo use (so can you give me money, I will pass again)
1. Open the plug-in function conditions: enterprises, media, government and other organizations of the small program, personal small program is not a number: a small program can only open one plug-in
2. Fill in the development information and development restrictions: You cannot modify the basic information and profile picture of the plug-in after filling in the information
3. Submission review and release restrictions: only in the development category can you submit the official document that says “plug-ins can be searched and added by other small programs only after they are released”, but in fact they are not. Unpublished plug-ins can also be searched and added (I don’t know if they are bugs).
4. Manage the application for using plug-ins within 24 hours to choose “approve” or “reject” the application for using plug-ins
How to develop applets
This small program development document is detailed, and there are three places in the document that I have posted
- This section describes the functions of applets
- Small program plug-in development explained
- This article mainly explains the use of applets in developer tools
Add the content
- API can not be used in the small program plug-in, which is more important is that the small program plug-in can not achieve wechat payment
wx.login | The login |
wx.getUserInfo | Obtaining User information |
wx.chooseAddress | Gets the shipping address of the user |
wx.requestPayment | 【 initiate wechat Payment 】 |
wx.addCard | Add card voucher |
wx.openCard | Open the card voucher |
wx.saveFile | Save the file |
wx.getSavedFileList | Gets a list of saved files |
wx.getSavedFileInfo | Get the saved file information |
wx.removeSavedFile | Delete saved file information |
wx.openDocument | Open the file |
wx.getStorageInfo | Get information about the local cache |
wx.getStorageInfoSync | Get information about the local cache |
wx.clearStorage | Clear the local data cache |
wx.clearStorageSync | Clear the local data cache |
wx.setNavigationBarTitle | Set the current page title |
wx.showNavigationBarLoading | Displays navigation bar loading animation |
wx.hideNavigationBarLoading | Hide the navigation bar to load the animation |
wx.navigateTo | A new window opens the page |
wx.redirectTo | The original window opens the page |
wx.switchTab | Switch to the Tabbar page |
wx.navigateBack | Return to previous page |
wx.stopPullDownRefresh | Stop the pull-down refresh animation |
Recruitment information
Our company is looking for a small program engineer, If you are interested, click the link below: 👇 https://m.zhipin.com/weijd/v2/job/576b28e45da652041nN73929FFE~?date8=20180212&sid=self_jd&from=timeline&isappinstalled=0