Authored by 刘传洋

Merge remote-tracking branch 'remotes/origin/feature/commentImgShow' into release/5.2

... ... @@ -81,12 +81,14 @@
<span class="col">
<label>身高:</label>
<span class="color-gray">
<input class="btn btn-outline disabled s-input" name="height" value="" /> 厘米
<input class="btn btn-outline disabled s-input" name="height" value="" maxlength="3" /> 厘米
</span>
</span>
<span class="col">
<label>体重:</label>
<input class="btn btn-outline disabled s-input" name="weight" value="" /> 公斤
<span class="color-gray">
<input class="btn btn-outline disabled s-input" name="weight" value="" maxlength="3" /> 公斤
</span>
</span>
</div>
<div class="row textarea" data-role="goodsCommentWrap">
... ...
... ... @@ -44,6 +44,10 @@ function ImgPreview(url, opt) {
});
if (this.$mask) {
this.$mask.css({
width: 'auto',
height: 'auto'
});
this.$mask.on('click', function() {
that.close();
});
... ... @@ -57,6 +61,7 @@ ImgPreview.prototype = new Dialog({
ImgPreview.prototype.close = function() {
this.$mask && this.$mask.addClass('hide');
this.$el.addClass('hide');
$('body').removeClass('dialog-open');
};
... ... @@ -71,6 +76,7 @@ ImgPreview.prototype.preview = function(url) {
this.refresh();
this.show();
$('body').addClass('dialog-open');
};
ImgPreview.prototype.refresh = function() {
... ...
body.dialog-open{
overflow: hidden;
.body-mask{
position: fixed;
top:0;
right:0;
bottom: 0;
left:0;
}
}
.img-preview-dialog{
padding:10px;
padding-top:0;
... ...