Showing
1 changed file
with
4 additions
and
4 deletions
@@ -198,7 +198,7 @@ define('mobile', function(require, exports) { | @@ -198,7 +198,7 @@ define('mobile', function(require, exports) { | ||
198 | }; | 198 | }; |
199 | 199 | ||
200 | exports.show = function() { | 200 | exports.show = function() { |
201 | - $(".layout-item").bind("tap", function(event) { | 201 | + $(".layout-item").bind("click", function(event) { |
202 | if ($(this).attr("isopen") == 1) { | 202 | if ($(this).attr("isopen") == 1) { |
203 | $(this).find(".image-box .pic-tip").each(function() { | 203 | $(this).find(".image-box .pic-tip").each(function() { |
204 | $(this).css({ | 204 | $(this).css({ |
@@ -210,8 +210,8 @@ define('mobile', function(require, exports) { | @@ -210,8 +210,8 @@ define('mobile', function(require, exports) { | ||
210 | var imageWidth = $(window).width(), | 210 | var imageWidth = $(window).width(), |
211 | imageHeight = 320; | 211 | imageHeight = 320; |
212 | $(this).find(".image-box .pic-tip").each(function() { | 212 | $(this).find(".image-box .pic-tip").each(function() { |
213 | - var style_top = parseInt($(this).attr("x")) / 10000 * imageHeight; | ||
214 | - var style_left = parseInt($(this).attr("y")) / 10000 * imageWidth; | 213 | + var style_left = parseInt($(this).attr("x")) / 10000 * imageHeight; |
214 | + var style_top = parseInt($(this).attr("y")) / 10000 * imageWidth; | ||
215 | $(this).css({ | 215 | $(this).css({ |
216 | top: style_top, | 216 | top: style_top, |
217 | left: style_left, | 217 | left: style_left, |
@@ -233,4 +233,4 @@ define('mobile', function(require, exports) { | @@ -233,4 +233,4 @@ define('mobile', function(require, exports) { | ||
233 | window.location.href = $(this).val(); | 233 | window.location.href = $(this).val(); |
234 | }) | 234 | }) |
235 | }; | 235 | }; |
236 | -}); | ||
236 | +}); |
-
Please register or login to post a comment