Requirements: If the Enterprise WeChat application is opened by an Enterprise WeChat user, after submitting the form, the web page will be automatically closed and returned to the Enterprise WeChat chat window.
UA of Enterprise WeChat
With enterprise WeChatUA includes both WeChat user agent and enterprise WeChat user agent。 The reason for this is to be compatible with existing systems.
| Mobile phone system | example | | iPhone | Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 wxwork/2.2.0 MicroMessenger/6.3.2 | | Android | Mozilla/5.0 (Linux; Android 7.1.2; g3ds Build/NJH47F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.49 Mobile MQQBrowser/6.2 TBS/043508 Safari/537.36 wxwork/2.2.0 MicroMessenger/6.3.22 NetType/WIFI Language/ zh | | Windows | Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36 wxwork/2.1.3 (MicroMessenger/6.2) WindowsWechat QBCore/3.43.644.400 QQBrowser/9.0.2524.400 | | Mac | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) wxwork/2.2.0 (MicroMessenger/6.2) WeChat/2.0.4 |
Among them, wxwork is the enterprise WeChat keyword, and 2.1.0 is the WeChat version number installed by the user. MicroMessenger is the keyword of WeChat.
Close the window
On the webpage opened by Enterprise WeChat, when the user submits the completed form, the window will automatically close and return to the chat session interface. The js code is as follows:
Reference:The hyperlink login is visible. |