From 51af015dfeebafba84a0e3ae1ebd8f582b71430d Mon Sep 17 00:00:00 2001 From: whb <whb@yoho> Date: Wed, 27 May 2015 16:52:40 +0800 Subject: [PATCH] h5的brand-detail页 --- res/js/mobile.js | 5 ++--- website/view/script/brand/detailmobile.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/res/js/mobile.js b/res/js/mobile.js index ff8a2fa..76a91e7 100644 --- a/res/js/mobile.js +++ b/res/js/mobile.js @@ -127,12 +127,11 @@ define('mobile', function(require, exports) { qqText: '【YOHOOD 2015】' + detailTitle.text() + ' ' + detailSubtitle.text() + '#YOHOOD 2015' }) }; - + exports.show = function() { - $(".layout-item").bind("click", function() { + $(".layout-item").bind("tap", function() { var imageWidth = 320, imageHeight = 320; - console.log("test"); $(this).find(".image-box .pic-tip").each(function() { var style_top = parseInt($(this).attr("x")) / 10000 * imageHeight; var style_left = parseInt($(this).attr("y")) / 10000 * imageWidth; diff --git a/website/view/script/brand/detailmobile.php b/website/view/script/brand/detailmobile.php index 8de7c5f..7722a21 100644 --- a/website/view/script/brand/detailmobile.php +++ b/website/view/script/brand/detailmobile.php @@ -1,7 +1,7 @@ <?php $this->_extends('layout/default_layout_mobile');?> <?php $this->_block('main');?> <div class="detail-title brand-title"> - <h2 class="title">About <?php echo $this->view->info['name'];?>/h2> + <h2 class="title">About <?php echo $this->view->info['name'];?></h2> </div> <div class="detail-article"> <img src="<?php echo Lib_Images::getImageUrl($this->view->info['logo'], '0147x0097','fragmentimg');?>" alt=""> -- libgit2 0.24.0