prize.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>电子奖状</title>
  5. <!--#include virtual="/h5v2/htm2/head.htm" -->
  6. <style type="text/css">
  7. body {
  8. background-image: url(img/canPrizePopup.jpg);
  9. }
  10. .btn_focus_btn {
  11. border: 3px solid #fff;
  12. border-radius: 20px;
  13. box-shadow: 0px 0px 10px #3794e2;
  14. }
  15. </style>
  16. </head>
  17. <body>
  18. <div id="buttonDiv"></div>
  19. <!--#include virtual="/h5v2/htm2/foot.htm" -->
  20. <!--#include virtual="activity_cfg.htm" -->
  21. <script type="text/javascript">
  22. var linkImage = CONFIG.SPACER; //透明图片
  23. var buttons = []; //按钮数组
  24. var act_id = ACTIVITY_CFG.ACT_ID,
  25. act_code = ACTIVITY_CFG.ACT_CODE; //活动id及code
  26. var dudu_is_vip = PageH5.cookie.get('activity_is_vip');
  27. var uid = PageH5.cookie.get('activity_userid');
  28. function init() {
  29. var html = '';
  30. html += '<div style="position:absolute;left:421px;top:644px;"><img id="btn0" src="./img/btn_back.png"/></div>';
  31. html += '<div style="position:absolute;left:711px;top:644px;"><img id="btn1" src="./img/btn_phoneNum.png"/></div>';
  32. G('buttonDiv').innerHTML = html;
  33. for (var i = 0; i < 2; i++) {
  34. var obj = {
  35. id: 'btn' + i,
  36. action: goAction,
  37. index: i,
  38. left: 'btn' + (i - 1),
  39. right: 'btn' + (i + 1),
  40. up: '',
  41. down: '',
  42. focusClass: 'btn',
  43. };
  44. buttons.push(obj);
  45. }
  46. PageH5.btn.init('btn1', buttons, '', true);
  47. }
  48. function goAction(button) {
  49. if (button.index == 1) {
  50. location.href = './phone.html?from=medalInfo';
  51. } else {
  52. if (PageH5.getParam('from') == 'winningInfo') {
  53. location.href = './winningInfo.html';
  54. } else if (PageH5.getParam('from') == 'medalInfo') {
  55. location.href = './medalInfo.html';
  56. } else {
  57. location.href = './index.html';
  58. }
  59. }
  60. }
  61. function back() {
  62. if (PageH5.getParam('from') == 'winningInfo') {
  63. location.href = './winningInfo.html';
  64. } else if (PageH5.getParam('from') == 'medalInfo') {
  65. location.href = './medalInfo.html';
  66. } else {
  67. location.href = './index.html';
  68. }
  69. }
  70. window.onload = function() {
  71. init();
  72. }
  73. </script>
  74. </body>
  75. </html>