Authored by htoooth

fix css

@@ -47,7 +47,7 @@ @@ -47,7 +47,7 @@
47 47
48 <div class="other-infos"> 48 <div class="other-infos">
49 <div class="description-material info-block getnav" id="goodsMessage" data-id="0"> 49 <div class="description-material info-block getnav" id="goodsMessage" data-id="0">
50 - <p class="block-title" id="block-title-head"> 50 + <p class="block-title">
51 <span class="title-head"> <span class="title cur">商品信息</span> </span> 51 <span class="title-head"> <span class="title cur">商品信息</span> </span>
52 </p> 52 </p>
53 53
@@ -366,7 +366,7 @@ @@ -366,7 +366,7 @@
366 <span class="top-question"><i class="iconfont">&#xe695;</i>商品都是正品吗?</span> 366 <span class="top-question"><i class="iconfont">&#xe695;</i>商品都是正品吗?</span>
367 <span class="bottom-answer"><i class="iconfont">&#xe696;</i>有货www.yohobuy.com所售的商品均经品牌授权, 367 <span class="bottom-answer"><i class="iconfont">&#xe696;</i>有货www.yohobuy.com所售的商品均经品牌授权,
368 正品保障,支持专柜验货,与您亲临商场选购的商品一样享受相同的质量保证, 368 正品保障,支持专柜验货,与您亲临商场选购的商品一样享受相同的质量保证,
369 - 请您放心购买</span> 369 + 请您放心购买</span>
370 </p> 370 </p>
371 </div> 371 </div>
372 372
@@ -455,6 +455,8 @@ @@ -455,6 +455,8 @@
455 </div> 455 </div>
456 </div> 456 </div>
457 457
  458 +
  459 +
458 <div class="after-service"> 460 <div class="after-service">
459 <div class="lazy-load-object"> 461 <div class="lazy-load-object">
460 <textarea class="datalazyload" style="visibility: hidden;"> 462 <textarea class="datalazyload" style="visibility: hidden;">
@@ -465,11 +467,11 @@ @@ -465,11 +467,11 @@
465 </textarea> 467 </textarea>
466 </div> 468 </div>
467 469
468 - <p id="after-service-switch" class="after-service-switch"> 470 + <div id="after-service-switch" class="after-service-switch clearfix">
469 <span class="iconfont">&#xe628;</span>&nbsp; 471 <span class="iconfont">&#xe628;</span>&nbsp;
470 售后服务 472 售后服务
471 <span class="iconfont triangle">&#xe60b;</span> 473 <span class="iconfont triangle">&#xe60b;</span>
472 - </p> 474 + </div>
473 475
474 <div class="after-service-content info-block"> 476 <div class="after-service-content info-block">
475 <div class="block-title"> 477 <div class="block-title">
@@ -4,8 +4,8 @@ @@ -4,8 +4,8 @@
4 <p> 4 <p>
5 <span class="top-question"> 5 <span class="top-question">
6 <i class="iconfont">&#xe695;</i> 6 <i class="iconfont">&#xe695;</i>
7 - <small>{{question}}</small>  
8 - <small class="right-time">{{date}}</small> 7 + <span class="question">{{question}}</span>
  8 + <span class="right-time">{{date}}</span>
9 </span> 9 </span>
10 <span class="answer-wrapper"> 10 <span class="answer-wrapper">
11 <i class="iconfont">&#xe696;</i> 11 <i class="iconfont">&#xe696;</i>
@@ -1819,86 +1819,6 @@ bindEvent.fire(); @@ -1819,86 +1819,6 @@ bindEvent.fire();
1819 dataLoad.fn && dataLoad.fn(); 1819 dataLoad.fn && dataLoad.fn();
1820 }()); 1820 }());
1821 1821
1822 -$(window).scroll(function() {  
1823 - var sc = $(document);  
1824 - var win = $(window);  
1825 - var scrollStart = $('.other-infos').offset().top;  
1826 - var scrollBottom = sc.height() - $('#after-service-switch').offset().top;  
1827 - var scrollEnd = $('#textbox').offset().top;  
1828 - var scrollShoppingcar = $('#block-title-head').offset().top;  
1829 -  
1830 - if (sc.scrollTop() >= scrollStart && sc.scrollTop() <= scrollEnd) {  
1831 - $('.shoppingCar').addClass('fixednav');  
1832 - } else {  
1833 - $('.shoppingCar').removeClass('fixednav');  
1834 - }  
1835 -  
1836 - if (sc.height() - win.height() - sc.scrollTop() <= scrollBottom) {  
1837 - $('.shoppingCar').height(win.height() - (scrollBottom + win.height() + sc.scrollTop() - sc.height()));  
1838 -  
1839 - } else {  
1840 - $('.shoppingCar').height(1000);  
1841 - }  
1842 -  
1843 - if (sc.scrollTop() >= scrollShoppingcar) {  
1844 - $('.shoppingCar-btn').css('display', 'block');  
1845 - } else {  
1846 - $('.shoppingCar-btn').css('display', 'none');  
1847 - }  
1848 -  
1849 - $('.getnav').each(function(i, ele) {  
1850 -  
1851 - var data;  
1852 -  
1853 - if ($(ele).offset().top - $(window).scrollTop() < 100) {  
1854 - data = $(ele).data('id');  
1855 - $('.shoppingCar-nav li:eq(' + data + ')').siblings().find('a').removeClass('fixed');  
1856 - $('.shoppingCar-nav li:eq(' + data + ')').find('a').addClass('fixed');  
1857 -  
1858 - }  
1859 - });  
1860 -  
1861 -});  
1862 -  
1863 -$('.shoppingCar').on('click', '.option', function(e) {  
1864 - e.stopPropagation();  
1865 -  
1866 - var $this = $(this);  
1867 -  
1868 - if ($this.hasClass('fixed')) {  
1869 - return;  
1870 - }  
1871 -  
1872 - $this.closest('li').siblings().find('.option').removeClass('fixed');  
1873 - $this.addClass('fixed');  
1874 -  
1875 - if ($this.hasClass('comment') || $this.hasClass('consult')) {  
1876 - $.when(window.fetchComment(), window.fetchConsult(), window.fetchRecommend());  
1877 - }  
1878 -});  
1879 -  
1880 -$('.shoppingCar-btn').on('click', function() {  
1881 - var $this = $(this);  
1882 - var $addToCart = $('#add-to-cart');  
1883 -  
1884 - if ($this.hasClass('disable')) {  
1885 - return;  
1886 - }  
1887 -  
1888 - if ($this.data('gocart') === 1) {  
1889 - window.jumpUrl($('#go-to-cart-url').attr('href'));  
1890 - return;  
1891 - }  
1892 -  
1893 - if (maxStock === -1) {  
1894 - $('#sizes').children('.size-warn').removeClass('hide');  
1895 - $('.shoppingCar-nav li:eq(0)').siblings().find('a').removeClass('fixed');  
1896 - $('.shoppingCar-nav li:eq(0)').find('a').addClass('fixed');  
1897 - } else {  
1898 - $addToCart.trigger('click');  
1899 - }  
1900 -});  
1901 -  
1902 $(function() { 1822 $(function() {
1903 $('.bottom-tab .change').click(function() { 1823 $('.bottom-tab .change').click(function() {
1904 $('.img-brand-switch .next').trigger('click'); 1824 $('.img-brand-switch .next').trigger('click');
@@ -601,7 +601,7 @@ @@ -601,7 +601,7 @@
601 } 601 }
602 602
603 .size-warn { 603 .size-warn {
604 - position: absolute; 604 + display: inline-block;
605 height: 21px; 605 height: 21px;
606 left: 0; 606 left: 0;
607 bottom: -21px; 607 bottom: -21px;
@@ -854,10 +854,7 @@ @@ -854,10 +854,7 @@
854 854
855 .other-infos { 855 .other-infos {
856 padding-bottom: 30px; 856 padding-bottom: 30px;
857 - border-left: 1px solid #eaeceb;  
858 - border-right: 1px solid #eaeceb;  
859 - border-bottom: 1px solid #eaeceb;  
860 - width: 960px; 857 + width: 1150px;
861 float: left; 858 float: left;
862 margin-top: 30px; 859 margin-top: 30px;
863 860
@@ -1045,16 +1042,12 @@ @@ -1045,16 +1042,12 @@
1045 1042
1046 } 1043 }
1047 1044
1048 - #goodsMessage{  
1049 - margin-top: 0;  
1050 - margin-left: 0;  
1051 - margin-right: 0; 1045 +
1052 1046
1053 .description-content{ 1047 .description-content{
1054 margin-left: 80px; 1048 margin-left: 80px;
1055 margin-right: 80px; 1049 margin-right: 80px;
1056 } 1050 }
1057 - }  
1058 1051
1059 1052
1060 .info-block { 1053 .info-block {
@@ -1066,7 +1059,7 @@ @@ -1066,7 +1059,7 @@
1066 font-size: 12px; 1059 font-size: 12px;
1067 1060
1068 .basic { 1061 .basic {
1069 - width: 800px; 1062 + width: 990px;
1070 margin: 0 auto; 1063 margin: 0 auto;
1071 1064
1072 li { 1065 li {
@@ -1130,11 +1123,6 @@ @@ -1130,11 +1123,6 @@
1130 margin: 0px; 1123 margin: 0px;
1131 } 1124 }
1132 1125
1133 - #block-title-head {  
1134 - margin-top: 20px;  
1135 - margin-bottom: 20px;  
1136 - }  
1137 -  
1138 .block-title { 1126 .block-title {
1139 margin-bottom: 30px; 1127 margin-bottom: 30px;
1140 margin-top: -16px; 1128 margin-top: -16px;
@@ -2203,15 +2191,15 @@ @@ -2203,15 +2191,15 @@
2203 } 2191 }
2204 2192
2205 textarea{ 2193 textarea{
2206 - width: 770px;  
2207 - height: 70px; 2194 + width: 96%;
  2195 + height: 100px;
2208 padding: 0; 2196 padding: 0;
2209 outline: #e0e0e0; 2197 outline: #e0e0e0;
2210 resize: none; 2198 resize: none;
2211 background-color: #fff; 2199 background-color: #fff;
2212 border: 1px solid #e0e0e0; 2200 border: 1px solid #e0e0e0;
2213 font-size: 14px; 2201 font-size: 14px;
2214 - padding: 15px; 2202 + padding: 15px 2%;
2215 } 2203 }
2216 2204
2217 .err{ 2205 .err{
@@ -2232,7 +2220,9 @@ @@ -2232,7 +2220,9 @@
2232 margin: 0 auto; 2220 margin: 0 auto;
2233 cursor: pointer; 2221 cursor: pointer;
2234 margin-top: -2px; 2222 margin-top: -2px;
2235 - border: 1px solid #e0e0e0; 2223 + border-left: 1px solid #e0e0e0;
  2224 + border-right: 1px solid #e0e0e0;
  2225 + border-bottom: 1px solid #e0e0e0;
2236 } 2226 }
2237 2227
2238 2228
@@ -2258,6 +2248,13 @@ @@ -2258,6 +2248,13 @@
2258 color: #000; 2248 color: #000;
2259 font-size: 14px; 2249 font-size: 14px;
2260 2250
  2251 +
  2252 +
  2253 + .question {
  2254 + display: inline-block;
  2255 + margin-left: -5px;
  2256 + }
  2257 +
2261 .right-time{ 2258 .right-time{
2262 display: inline-block; 2259 display: inline-block;
2263 float: right; 2260 float: right;
@@ -2329,7 +2326,7 @@ @@ -2329,7 +2326,7 @@
2329 2326
2330 .answer { 2327 .answer {
2331 display: inline-block; 2328 display: inline-block;
2332 - width: 772px; 2329 + width: 960px;
2333 float: left; 2330 float: left;
2334 margin-top: 0 !important; 2331 margin-top: 0 !important;
2335 } 2332 }
@@ -2439,6 +2436,9 @@ @@ -2439,6 +2436,9 @@
2439 2436
2440 .total-content{ 2437 .total-content{
2441 position: relative; 2438 position: relative;
  2439 + width: 100%;
  2440 + overflow: hidden;
  2441 + border: 1px solid #e0e0e0;
2442 } 2442 }
2443 2443
2444 .buy-product { 2444 .buy-product {