From e833f3b8d0a7a1d76f0daf834263635376e1eaf4 Mon Sep 17 00:00:00 2001 From: Lynnic <gunix@foxmail.com> Date: Wed, 25 Nov 2015 15:58:21 +0800 Subject: [PATCH] fixed bugs in goods detail page --- static/sass/product/_detail.scss | 3 ++- static/sass/product/_product-description.scss | 5 ++++- template/m.yohobuy.com/partials/product/product-description.phtml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/static/sass/product/_detail.scss b/static/sass/product/_detail.scss index 70b139f..4bf6b44 100644 --- a/static/sass/product/_detail.scss +++ b/static/sass/product/_detail.scss @@ -388,4 +388,5 @@ $basicBtnC:#eb0313; } } @import "comments-consults"; -@import "product-description"; \ No newline at end of file +@import "product-description"; + diff --git a/static/sass/product/_product-description.scss b/static/sass/product/_product-description.scss index 8fbd218..5467c6b 100644 --- a/static/sass/product/_product-description.scss +++ b/static/sass/product/_product-description.scss @@ -1,9 +1,12 @@ .good-detail-page{ .goods-desc { .service { - width: pxToRem(489px); + width: pxToRem(494px); height: pxToRem(28px); margin-top: pxToRem(22px); + margin-left: pxToRem(40px); + background: image-url('product/service.png') no-repeat; + background-size: cover; } .detail{ background-color: $tableCellC; diff --git a/template/m.yohobuy.com/partials/product/product-description.phtml b/template/m.yohobuy.com/partials/product/product-description.phtml index d21f415..6093c7d 100644 --- a/template/m.yohobuy.com/partials/product/product-description.phtml +++ b/template/m.yohobuy.com/partials/product/product-description.phtml @@ -1,6 +1,6 @@ {{#goodsDescription}} <div class="goods-desc page-block"> - <img class="service lazy" data-original="http://static.dev.yohobuy.com/img/product/service.png" alt=""> + <div class="service"></div> <h1 class="title"> {{title}} <span class="en-title">{{enTitle}}</span> -- libgit2 0.24.0