Prechádzať zdrojové kódy

修改列表价格原价显示规则、落地页背景色

yangfeng 5 rokov pred
rodič
commit
8d1cbe239e

+ 1 - 1
src/views/main/Home.vue

@@ -21,7 +21,7 @@
               <div class="desc">
                 <div class="left">{{item.publishtime* 1000 | dateFormatter('yyyy/MM/dd')}}</div>
                 <div class="right">
-                  <span class="before-price">&yen; <em>{{item.before_price | fen2Yuan}}</em></span>
+                  <span class="before-price" v-if="item.before_price && item.before_price > item.price">&yen; <em>{{item.before_price | fen2Yuan}}</em></span>
                   <span class="current-price">&yen; <em>{{item.price | fen2Yuan}}</em> </span>
                 </div>
               </div>

+ 1 - 0
src/views/main/IntroducePage.vue

@@ -59,6 +59,7 @@ export default class Introduce extends Vue {
 
 <style lang="scss">
   .introduce{
+    background-color: #fff;
     overflow: hidden!important;
     .banner{
       position: relative;