Authored by Lynnic

update

@@ -88,7 +88,7 @@ a { @@ -88,7 +88,7 @@ a {
88 } 88 }
89 89
90 .yoho-tip { 90 .yoho-tip {
91 - position: absolute; 91 + position: fixed;
92 display: none; 92 display: none;
93 text-align: center; 93 text-align: center;
94 width: 70%; 94 width: 70%;
@@ -30,7 +30,46 @@ $basicBtnC:#eb0313; @@ -30,7 +30,46 @@ $basicBtnC:#eb0313;
30 left: pxToRem(30px); 30 left: pxToRem(30px);
31 right: auto; 31 right: auto;
32 } 32 }
33 - 33 +.tag-container{
  34 + position: absolute;
  35 + left: pxToRem(108px);
  36 + top: pxToRem(40px);
  37 + height: pxToRem(35px);
  38 + // width: pxToRem(70px);
  39 + color: #fff;
  40 + font-size: pxToRem(20px);
  41 + line-height: pxToRem(35px);
  42 + z-index: 2;
  43 + .good-tag{
  44 + display: inline-block;
  45 + box-sizing: border-box;
  46 + margin-left: .5px;
  47 + font-size: pxToRem(23px);
  48 + text-align: center;
  49 + line-height: pxToRem(35px);
  50 + padding:0 8px;
  51 + }
  52 + .new-tag {
  53 + background-color: #78dc7e;
  54 + color: #fff;
  55 + }
  56 + .renew-tag {
  57 + background-color: #78dc7e;
  58 + color: #fff;
  59 + }
  60 + .sale-tag {
  61 + background-color: #ff575c;
  62 + color: #fff;
  63 + }
  64 + .new-festival-tag {
  65 + background-color: #000;
  66 + color: #fff;
  67 + }
  68 + .limit-tag {
  69 + border: 1px solid #000;
  70 + color: #000;
  71 + }
  72 +}
34 .good-detail-page { 73 .good-detail-page {
35 overflow: hidden; 74 overflow: hidden;
36 background-color: #f0f0f0; 75 background-color: #f0f0f0;
@@ -83,19 +122,6 @@ $basicBtnC:#eb0313; @@ -83,19 +122,6 @@ $basicBtnC:#eb0313;
83 position: relative; 122 position: relative;
84 background-color: #fff; 123 background-color: #fff;
85 // overflow: hidden; 124 // overflow: hidden;
86 - .is-new-lable {  
87 - position: absolute;  
88 - left: pxToRem(108px);  
89 - top: pxToRem(40px);  
90 - height: pxToRem(35px);  
91 - width: pxToRem(70px);  
92 - color: #fff;  
93 - text-align: center;  
94 - font-size: pxToRem(20px);  
95 - line-height: pxToRem(35px);  
96 - background-color: #7cd881;  
97 - z-index: 2;  
98 - }  
99 } 125 }
100 .banner-top { 126 .banner-top {
101 // width: 100%; 127 // width: 100%;
@@ -88,6 +88,7 @@ @@ -88,6 +88,7 @@
88 height: pxToRem(772px); 88 height: pxToRem(772px);
89 } 89 }
90 } 90 }
  91 + margin-top: pxToRem(30px);
91 margin-bottom: pxToRem(120px); 92 margin-bottom: pxToRem(120px);
92 } 93 }
93 .detail-swiper { 94 .detail-swiper {
@@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
2 <div class="good-detail-page yoho-page"> 2 <div class="good-detail-page yoho-page">
3 <div class="banner-container"> 3 <div class="banner-container">
4 <div class="tag-container"> 4 <div class="tag-container">
  5 + <p class="good-tag new-tag">NEW</p>
5 {{# tags}} 6 {{# tags}}
6 {{# is_new}} 7 {{# is_new}}
7 <p class="good-tag new-tag">NEW</p> 8 <p class="good-tag new-tag">NEW</p>