WeChat applet (component – form: button WeChat open capability and customer service)
foreword
This section mainly explains the open-type of the button component—the common attribute value of WeChat’s open capability
①contact customer session
②share sharing and forwarding
③getPhoneNumber to obtain the user’s mobile phone number
④getUserInfo to obtain user information
⑤openSetting authorization setting page
⑥feedback feedback page
form component
open-type of the button component — the common attribute value of WeChat’s open capability
The open-type WeChat open capability attribute value of the button component----contact customer service session
Note:
①Developer tools do not support opening customer service sessions at the moment, so a real device test is required
②Chat is the same as ordinary dialogue, it will be placed in the customer service message bar of the applet
Enable customer service message push needs to be configured in the background of the applet, and will be explained later in combination with customer feedback
open-type WeChat open capability attribute value—share forwarding
Precautions for forwarding: Appear on demand and respect wishes.
Forwarding Notes
Precautions for forwarding:
① Appear on demand: Not all pages are suitable for placing forward buttons. For non-public content involving user privacy, or scenarios that may interrupt the user's current operation experience, forwarding is not recommended. At the same time, because WeChat will capture the user's screen image as a picture during the forwarding process, it is necessary to pay attention to helping users shield their personal information.
②Respect wishes: Of course, not all users like to share your Mini Program with friends. Therefore, it should not be an inducement or mandatory behavior, such as retweeting to unlock a certain function, etc. Therefore, this kind of practice is not only not recommended, but also violates the "Operation Specifications" of the Mini Program.
form component
button component
open-type WeChat open capability attribute value—getPhoneNumber to obtain the user's mobile phone number
Note: This interface is currently only open to non-individual developers and mini programs that have completed certification.
open-type WeChat open capability attribute value—getUserInfo to obtain user information
After getUserInfo successfully obtains user information, the authorization pop-up box will not appear again. After successful authorization, the authorization pop-up box will no longer appear when you click again
open-type WeChat open capability attribute value—openSetting authorization setting page
openSetting opens the authorization setting page and finds that it is enabled at this time. After closing the switch, return to the previous page. At this time, relevant configuration information will be output on the console.
open-type WeChat open capability attribute value—openSetting authorization setting page
openSetting to open the authorization setting page and getUserInfo to obtain user information button comparison
Open the mini program tour After the authorization is successful, click openSetting to open the authorization setting page at this time, and you will find that the switch is on at this time; after the setting page is off, return to the previous one page, and when you click getUserInfo, the authorization prompt will pop up again.
Both can be switched to each other
open-type WeChat open capability attribute value—feedback Feedback
After the feedback is successful, the administrator can log in to the "Mini Program Background → User Feedback Interface" to view and click
the operation to bind the customer service account for communication
Customer service related
1. Web-side customer service
Note: The webpage customer service is similar to the webpage version of WeChat, but the two will not affect each other, that is, although the module exists as a chatter, it can be logged in at the same time
2. Mobile Mini Program Customer Service
In addition to web-side customer service, you can also log in to the mobile-side applet customer service