Authored by whb

h5的show

... ... @@ -70,7 +70,7 @@ define('mobile', function(require, exports) {
exports.show = function(){
$(".layout-item").bind("tap",function(event)
{
var imageWidth = 360, imageHeight = 360;
var imageWidth = 320, imageHeight = 320;
$(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;
... ...
... ... @@ -8,7 +8,7 @@
<div class="image-box">
<a href="javascript:;">
<img data-original="<?php echo str_replace('_','_-0320x0320-primary', $fragment['image']);?>"
src="<?php echo preg_replace('/_\.(\w+)/i','', $fragment['image']);?>?imageMogr2/thumbnail/320x320/strip/quality/80" alt="">
src="<?php echo preg_replace('/_\.(\w+)/i','', $fragment['image']);?>?imageMogr2/thumbnail/320x320/strip/quality/80" alt="" style="height: 320px;width:320px;">
</a>
<?php foreach($fragment['labelList'] as $label):?>
<a class="pic-tip" href="javascript:;" x="<?php echo $label['x']?>"
... ... @@ -18,7 +18,7 @@
<?php endforeach;?>
</div>
<div class="content">
<p><?php echo Lib_Utils_StringHelper::substr_cn(Lib_Utils_StringHelper::stripTags($fragment['content']), 70);?></p>
<p><?php echo Lib_Utils_StringHelper::stripTags($fragment['content']);?></p>
<p class="time"><?php echo date('Y.m.d', $fragment['publishTime'])?></p>
</div>
</div>
... ...