Login process: wx.login( )
front end:
Applet, wx.login() get code => wx.request() send code
rear end:
Developer server, => login credential verification interface appid appsecret code
WeChat interface service session key + openid, etc.
Loading by subcontract: the total package with subcontract does not exceed 20M, and the total package without subcontract does not exceed 2M
Use lazy loading to improve access speed and user experience
If there is no subpackage, it may be generated: the file is larger than 2M, and the upload is not allowed, and the preview is not allowed
Subcontract each file is not larger than 2M, solve
Subcontracting cannot be subcontracted. After subcontracting, it still exceeds 2M. Try to lose weight, eg: put videos and pictures on the server