gift.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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/prizePopup.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. var prizeName = unescape(PageH5.cookie.get('activity_prize_name', ''));
  29. var prizeImg = PageH5.getParam('prizeImg');
  30. function init() {
  31. var html = '<div style="position:absolute;left:546px;top:278px;"><img src="' + prizeImg + '" width="188" height="189"/></div>'; //奖品图片
  32. html += '<div style="position:absolute;left:501px;top:480px;width:280px;height:30px;line-height:30px;text-align:center;font-size:24px;overflow:hidden;color:red;">' + prizeName + '</div>';
  33. html += '<div style="position:absolute;left: 580px;top:644px;"><img id="btn" src="./img/btn_back.png"/></div>';
  34. G('buttonDiv').innerHTML = html;
  35. buttons.push({
  36. id: 'btn',
  37. action: back,
  38. left: '',
  39. right: '',
  40. up: '',
  41. down: '',
  42. focusClass: 'btn',
  43. });
  44. PageH5.btn.init('btn', buttons, '', true);
  45. }
  46. function back() {
  47. location.href = './index.html?f=' + PageH5.getParam('f') + '&titleIdx=' + PageH5.getParam('titleIdx');
  48. }
  49. window.onload = function() {
  50. init();
  51. }
  52. </script>
  53. </body>
  54. </html>