wxlogin.html 1.2 KB

123456789101112131415161718192021222324252627
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  5. <title>微信登录</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
  7. <script src="http://static.ydbimg.com/Scripts/jquery-1.9.1.js" type="text/javascript"></script>
  8. <script src="http://static.ydbimg.com/API/YdbOnline.js" type="text/javascript"></script>
  9. </head>
  10. <body>
  11. <div style="text-align: center;">
  12. <input type="button" value="微信登录" onclick="WxLogin()" style="width: 80px; height: 40px;" />
  13. <input type="button" value="分享" onclick="share()" style="width: 80px; height: 40px;" />
  14. </div>
  15. <script type="text/javascript">
  16. function WxLogin() {
  17. var YDB = new YDBOBJ();
  18. YDB.WXLogin(1, "http://site.appe.cc/wxlogin.aspx");
  19. //回调页面为文件中的wxlogin.php
  20. }
  21. function share() {
  22. var YDB = new YDBOBJ();
  23. YDB.Share('分享', '分享', 'https://br.kbc888.com/static/upload/image/b6099b384acd4e25a86a73b0877e9eb7.jpg', 'https://br.kbc888.com/addons/yun_shop/index1.html?menu#/newDiy?page_id=2&i=1', "Sharesback");
  24. }
  25. </script>
  26. </body>
  27. </html>