|
@@ -1,35 +1,87 @@
|
|
<!DOCTYPE html>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<html lang="en">
|
|
-<head>
|
|
|
|
- <meta charset="UTF-8">
|
|
|
|
- <script src="http://g.tbcdn.cn/mtb/lib-flexible/0.3.4/??flexible_css.js,flexible.js"></script>
|
|
|
|
- <title>限时购</title>
|
|
|
|
- <link rel="stylesheet" href="<?php echo RESOURCE_SITE_URL; ?>/mobile/activity/css/count_down.css"/>
|
|
|
|
-</head>
|
|
|
|
-<body>
|
|
|
|
- <div class="maincontent" id="count_goods_box">
|
|
|
|
- <div class="count_down_content">
|
|
|
|
- <h3>限时购</h3>
|
|
|
|
- <div class="time_box">
|
|
|
|
- <div class="hour" id="hour"></div>
|
|
|
|
- <span>:</span>
|
|
|
|
- <div class="min" id="min"></div>
|
|
|
|
- <span>:</span>
|
|
|
|
- <div class="second" id="second"></div>
|
|
|
|
|
|
+ <head>
|
|
|
|
+ <meta charset="UTF-8">
|
|
|
|
+ <script src="http://g.tbcdn.cn/mtb/lib-flexible/0.3.4/??flexible_css.js,flexible.js"></script>
|
|
|
|
+ <title>限时购</title>
|
|
|
|
+ <link rel="stylesheet" href="<?php echo RESOURCE_SITE_URL; ?>/mobile/activity/css/count_down.css"/>
|
|
|
|
+ </head>
|
|
|
|
+ <body>
|
|
|
|
+ <div class="maincontent" id="count_goods_box">
|
|
|
|
+ <div class="count_down_content">
|
|
|
|
+ <h3>限时购</h3>
|
|
|
|
+ <div class="time_box">
|
|
|
|
+ <div class="hour" id="hour"></div>
|
|
|
|
+ <span>:</span>
|
|
|
|
+ <div class="min" id="min"></div>
|
|
|
|
+ <span>:</span>
|
|
|
|
+ <div class="second" id="second"></div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="count_goods_name"><?php echo($output['goods_name']); ?> </div>
|
|
|
|
+ <div class="count_goods_price">
|
|
|
|
+ <span class="gount_price">¥<?php echo($output['goods_promotion_price']); ?></span>
|
|
|
|
+ <span class="purchase_price"><?php echo($output['goods_price']); ?></span>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- <div class="count_goods_name"><?php echo($output['goods_name']); ?> </div>
|
|
|
|
- <div class="count_goods_price">
|
|
|
|
- <span class="gount_price">¥<?php echo($output['goods_promotion_price']); ?></span>
|
|
|
|
- <span class="purchase_price"><?php echo($output['goods_price']); ?></span>
|
|
|
|
|
|
+ <div class="count_down_image">
|
|
|
|
+ <img src="<?php echo ($output['goods_image_url']); ?>" alt="限时购"/>
|
|
</div>
|
|
</div>
|
|
|
|
+ <input type="hidden" id="server_local_time" value="<?php echo $output['local_time']; ?>"/>
|
|
|
|
+ <input type="hidden" id="server_start_time" value="<?php echo $output['act_time']; ?>"/>
|
|
</div>
|
|
</div>
|
|
- <div class="count_down_image">
|
|
|
|
- <img src="<?php echo ($output['goods_image_url']); ?>" alt="限时购"/>
|
|
|
|
- </div>
|
|
|
|
- <input type="hidden" id="server_local_time" value="<?php echo $output['local_time']; ?>"/>
|
|
|
|
- <input type="hidden" id="server_start_time" value="<?php echo $output['act_time']; ?>"/>
|
|
|
|
- </div>
|
|
|
|
- <script src="<?php echo RESOURCE_SITE_URL; ?>/mobile/activity/js/zepto.min.js"></script>
|
|
|
|
- <script src="<?php echo RESOURCE_SITE_URL; ?>/mobile/activity/js/app_count_down.js"></script>
|
|
|
|
-</body>
|
|
|
|
|
|
+ <script src="<?php echo RESOURCE_SITE_URL; ?>/mobile/activity/js/zepto.min.js"></script>
|
|
|
|
+ <script src="<?php echo RESOURCE_SITE_URL; ?>/mobile/activity/js/app_count_down.js"></script>
|
|
|
|
+ </body>
|
|
|
|
+ <script type="text/javascript">
|
|
|
|
+ function setupWebViewJavascriptBridge(callback)
|
|
|
|
+ {
|
|
|
|
+ if (window.WebViewJavascriptBridge) {
|
|
|
|
+ return callback(WebViewJavascriptBridge);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (window.WVJBCallbacks) {
|
|
|
|
+ return window.WVJBCallbacks.push(callback);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ window.WVJBCallbacks = [callback];
|
|
|
|
+ var WVJBIframe = document.createElement('iframe');
|
|
|
|
+ WVJBIframe.style.display = 'none';
|
|
|
|
+ WVJBIframe.src = 'wvjbscheme://__BRIDGE_LOADED__';
|
|
|
|
+ document.documentElement.appendChild(WVJBIframe);
|
|
|
|
+ setTimeout(function() {
|
|
|
|
+ document.documentElement.removeChild(WVJBIframe);
|
|
|
|
+ }, 0);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function CallWebview(handler,data)
|
|
|
|
+ {
|
|
|
|
+ if (window.WebViewJavascriptBridge)
|
|
|
|
+ {
|
|
|
|
+ window.WebViewJavascriptBridge.callHandler(handler,
|
|
|
|
+ data,
|
|
|
|
+ null);
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ document.addEventListener(
|
|
|
|
+ 'WebViewJavascriptBridgeReady'
|
|
|
|
+ , function()
|
|
|
|
+ {
|
|
|
|
+ window.WebViewJavascriptBridge.callHandler(
|
|
|
|
+ handler,
|
|
|
|
+ data,
|
|
|
|
+ null,
|
|
|
|
+ false);
|
|
|
|
+ }
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ setupWebViewJavascriptBridge(function(bridge) {
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ $('#count_goods_box').on('click',function()
|
|
|
|
+ {
|
|
|
|
+ CallWebview('onTouch','action=open&op=activity');
|
|
|
|
+ });
|
|
|
|
+ </script>
|
|
</html>
|
|
</html>
|