一、前端总结
1.开发前必读:轻应用JSAPI的流程。
2.引入线上的JSAPI
<html>
<head></head>
<body>
<!--你的业务逻辑代码-->
<!-- your html code here-->
<!-- 直接引用官方提供的hwh5-cloudonline.js,也可根据自己需要新建一个本地文件来引用-->
<script src="https://open-doc.welink.huaweicloud.com/docs/jsapi/2.0.3/hwh5-cloudonline.js"></script>
<!-- 引入Vconsole用于调试,生产环境时请去掉 -->
<script src="https://wechatfe.github.io/vconsole/lib/vconsole.min.js?v=3.2.0"></script>
<script>window.vConsole = new window.VConsole();</script>
</body>
</html>
3.H5轻应用免登流程
3.1获取code
根据流程图,我们需要从H5中获取code值。再将code传入后台。
ES6版本
HW