xxjnh.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. <!--#include virtual="/h5v2/htm2/head.htm" -->
  6. <style type="text/css">
  7. </style>
  8. </head>
  9. <body>
  10. <div id="buttonDiv"></div>
  11. <!--#include virtual="/h5v2/htm2/foot.htm" -->
  12. <!--#include virtual="activity_cfg.htm" -->
  13. <script type="text/javascript">
  14. var linkImage = CONFIG.SPACER;//透明图片
  15. var buttons = [];//按钮数组
  16. var act_id = ACTIVITY_CFG.ACT_ID, act_code = ACTIVITY_CFG.ACT_CODE;//活动id及code
  17. var is_vips = PageH5.cookie.get('activity_is_vip','0,0');
  18. var uid = PageH5.cookie.get('activity_userid','1234567'),
  19. dudu_is_vip = parseInt(is_vips.split(',')[0]),
  20. child_is_vip = parseInt(is_vips.split(',')[1]);
  21. function init(){
  22. var html = '';
  23. if(child_is_vip==1){
  24. html+='<div style="position:absolute;left:0px;top:0px;"><img src="img/xxjnh.jpg" width="1280" height="720"/></div>';
  25. html+='<div style="position:absolute;left:510px;top:267px;width:370px;height:30px;line-height:30px;text-align:center;font-size:20px;color:red;">'+hex_md5(uid)+'</div>';
  26. html+='<div style="position:absolute;left:572px;top:645px;"><img id="btn0" src="'+linkImage+'"/></div>';
  27. buttons.push({id: 'btn0', action: goAction,left: '',right: '',up: '',down: '',focusImage:'img/back_focus.png'});
  28. }else{
  29. html+='<div style="position:absolute;left:0px;top:0px;"><img src="img/xxjnh_free.jpg" width="1280" height="720"/></div>';
  30. html+='<div style="position:absolute;left:426px;top:613px;"><img id="btn0" src="'+linkImage+'"/></div>';
  31. html+='<div style="position:absolute;left:716px;top:613px;"><img id="btn1" src="'+linkImage+'"/></div>';
  32. buttons.push({id: 'btn0', action: goAction,left: '',right: 'btn1',up: '',down: '',focusImage:'img/order_focus.png'});
  33. buttons.push({id: 'btn1', action: goAction,left: 'btn0',right: '',up: '',down: '',focusImage:'img/back_focus.png'});
  34. }
  35. G('buttonDiv').innerHTML = html;
  36. PageH5.btn.init([PageH5.getParam('f'), 'btn0'], buttons, '', true);
  37. }
  38. function goAction(button){
  39. if(button.id=='btn0'){
  40. if(child_is_vip==1){
  41. back();
  42. }else{
  43. goMyCommonOrder(ACTIVITY_CFG.CHILD_PRODUCT_ID,back_url+"?childsBag="+uid);
  44. }
  45. }else{
  46. back();
  47. }
  48. }
  49. function back(){
  50. location.href = url_prefix + 'index.html?f='+PageH5.getParam('f');
  51. }
  52. window.onload = function(){
  53. init();
  54. }
  55. </script>
  56. </body>
  57. </html>