|
@@ -0,0 +1,69 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+<title></title>
|
|
|
+<!--#include virtual="/h5v2/htm2/head.htm" -->
|
|
|
+<style type="text/css">
|
|
|
+</style>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+
|
|
|
+<div id="buttonDiv"></div>
|
|
|
+
|
|
|
+<!--#include virtual="/h5v2/htm2/foot.htm" -->
|
|
|
+<!--#include virtual="activity_cfg.htm" -->
|
|
|
+<script type="text/javascript">
|
|
|
+ var linkImage = CONFIG.SPACER;//透明图片
|
|
|
+ var buttons = [];//按钮数组
|
|
|
+
|
|
|
+ var act_id = ACTIVITY_CFG.ACT_ID, act_code = ACTIVITY_CFG.ACT_CODE;//活动id及code
|
|
|
+ var is_vips = PageH5.cookie.get('activity_is_vip','0,0');
|
|
|
+ var uid = PageH5.cookie.get('activity_userid','1234567'),
|
|
|
+ dudu_is_vip = parseInt(is_vips.split(',')[0]),
|
|
|
+ child_is_vip = parseInt(is_vips.split(',')[1]);
|
|
|
+
|
|
|
+ function init(){
|
|
|
+ var html = '';
|
|
|
+ var uid_md5 = '';
|
|
|
+ try{
|
|
|
+ uid_md5 = hex_md5(uid);
|
|
|
+ }catch(e){
|
|
|
+ }
|
|
|
+ if(child_is_vip==1){
|
|
|
+ html+='<div style="position:absolute;left:0px;top:0px;"><img src="img/xxjnh.jpg" width="1280" height="720"/></div>';
|
|
|
+ html+='<div style="position:absolute;left:510px;top:267px;width:370px;height:30px;line-height:30px;text-align:center;font-size:20px;color:red;">'+uid_md5+'</div>';
|
|
|
+ html+='<div style="position:absolute;left:572px;top:645px;"><img id="btn0" src="'+linkImage+'"/></div>';
|
|
|
+ buttons.push({id: 'btn0', action: goAction,left: '',right: '',up: '',down: '',focusImage:'img/back_focus.png'});
|
|
|
+ }else{
|
|
|
+ html+='<div style="position:absolute;left:0px;top:0px;"><img src="img/xxjnh_free.jpg" width="1280" height="720"/></div>';
|
|
|
+ html+='<div style="position:absolute;left:426px;top:613px;"><img id="btn0" src="'+linkImage+'"/></div>';
|
|
|
+ html+='<div style="position:absolute;left:716px;top:613px;"><img id="btn1" src="'+linkImage+'"/></div>';
|
|
|
+ buttons.push({id: 'btn0', action: goAction,left: '',right: 'btn1',up: '',down: '',focusImage:'img/order_focus.png'});
|
|
|
+ buttons.push({id: 'btn1', action: goAction,left: 'btn0',right: '',up: '',down: '',focusImage:'img/back_focus.png'});
|
|
|
+ }
|
|
|
+ G('buttonDiv').innerHTML = html;
|
|
|
+ PageH5.btn.init([PageH5.getParam('f'), 'btn0'], buttons, '', true);
|
|
|
+ }
|
|
|
+
|
|
|
+ function goAction(button){
|
|
|
+ if(button.id=='btn0'){
|
|
|
+ if(child_is_vip==1){
|
|
|
+ back();
|
|
|
+ }else{
|
|
|
+ goMyCommonOrder(ACTIVITY_CFG.CHILD_PRODUCT_ID,back_url+"?childsBag="+uid);
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ back();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function back(){
|
|
|
+ location.href = url_prefix + 'index.html?f='+PageH5.getParam('f');
|
|
|
+ }
|
|
|
+
|
|
|
+ window.onload = function(){
|
|
|
+ init();
|
|
|
+ }
|
|
|
+</script>
|
|
|
+</body>
|
|
|
+</html>
|