1. <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <%@ include file="/common/includeResource.jsp"%>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  9. <meta content="yes" name="apple-mobile-web-app-capable"/>
  10. <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
  11. <meta content="telephone=no" name="format-detection"/>
  12. <meta http-equiv="Content-Language" content="zh-CN"/>
  13. <meta name="Keywords" content="微恋网,免费交友, 免费交友网, 免费征婚交友, 免费征婚, 免费征婚网, 免费征婚交友网, 免费交友中心, 免费婚恋交友">
  14. <meta name="Description" content="微恋网—完全免费的手机婚恋交友平台!">
  15. <title>Insert title here</title>
  16. <link type="text/css" rel="stylesheet" href="<%=ossPath%>/marriage/css/voteCss.css">
  17. <script type="text/javascript" src="<%=ossPath%>/marriage/web/js/jquery-1.8.3.min.js"></script>
  18. <script type="text/javascript">
  19. $(document).ready(function() {
  20. //取标签值转int型
  21. var i = new Number($("#piao").text());
  22. $("#confirm").click(function() {
  23. //GET请求
  24. $.ajax({
  25. url : "${common_basePath}/vote/cede.do?userId=${user.id}",
  26. type : "GET",
  27. cache : false,
  28. success : function(data) {
  29. alert(data);
  30. }
  31. });
  32. //POST请求
  33. $.ajax({
  34. url : "${common_basePath}/vote/phone.do",
  35. type : "POST",
  36. data : {
  37. phone : phone,
  38. userId : "${user.id}"
  39. },
  40. cache : false,
  41. success : function(data) {
  42. alert(data);
  43. }
  44. });
  45. return false;
  46. });
  47. //跳转
  48. $("#index").click(function() {
  49. window.location.href=\'${common_basePath}/vote/introduction.do\';
  50. });
  51. });
  52. </script>
  53. <style>
  54.  
  55. </style>
  56. </head>
  57. <body>
  58. <div style="display: none;">
  59. <img src="<%=ossPath%>/marriage/images/share_vote.jpg"/>
  60. </div>
  61. </body>
  62. </html>

 

版权声明:本文为king-原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/king-/p/4887005.html