| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 | 
							- <template>
 
-   <div class="hom-pro-list">
 
-     <div class="title">
 
-       <img src="../../../static/images/discount/img-title.png" alt="限时折扣"/>
 
-     </div>
 
-     <div v-if="componentContent.arrangeType == '横向滑动'" class="product-list product-swiper">
 
-       <swiper ref="mySwiper" class="product-list-box" :options="swiperOption">
 
-         <swiper-slide class="product-list-item" v-for="(item,index) in productData.products" :key="index" @click="jumpProductDetail(item)">
 
-           <div class="product-list-img">
 
-             <img v-show="item.image" class="img" :src="item.image">
 
-           </div>
 
-           <div class="product-list-info">
 
-             <label class="product-name">{{item.productName}}</label>
 
-             <div>
 
-               <div class="flag">
 
-                 <img src="../../../static/images/discount/flag-discount2.png" alt="限时折扣"/>
 
-               </div>
 
-               <label class="buy-count">剩余{{item.stockNumber}}件</label>
 
-             </div>
 
-             <div class="price-warp">
 
-               <div class="price">
 
-                 ¥ {{item.price}}
 
-               </div>
 
-               <div class="original-price">
 
-                 ¥ {{item.originalPrice}}
 
-               </div>
 
-             </div>
 
-           </div>
 
-         </swiper-slide>
 
-       </swiper>
 
-       <div class="pagination discount-pagination" slot="pagination"></div>
 
-     </div>
 
-     <div v-if="componentContent.arrangeType == '多行多列'" class="product-list">
 
-       <div class="product-list-box" >
 
-         <div class="product-list-item" v-for="(item,index) in productData.products" :key="index" @click="jumpProductDetail(item)">
 
-           <div class="product-list-img">
 
-             <img v-show="item.image" class="img" :src="item.image">
 
-           </div>
 
-           <div class="product-list-info">
 
-             <label class="product-name">{{item.productName}}</label>
 
-             <div>
 
-               <div class="flag">
 
-                 <img src="../../../static/images/discount/flag-discount2.png" alt="限时折扣"/>
 
-               </div>
 
-               <label class="buy-count">剩余{{item.stockNumber}}件</label>
 
-             </div>
 
-             <div class="price-warp">
 
-               <div class="price">
 
-                 ¥ {{item.price}}
 
-               </div>
 
-               <div class="original-price">
 
-                 ¥ {{item.originalPrice}}
 
-               </div>
 
-             </div>
 
-           </div>
 
-         </div>
 
-       </div>
 
-     </div>
 
-     <button v-show="componentContent.showMore" class="btn-more" @click="jumpGroupWorks(productData)">查看全部 <span class="icon iconfont icon-arrow-right"></span></button>
 
-   </div>
 
- </template>
 
- <script>
 
- import {commonMixin} from '../mixin'
 
- export default {
 
-   mixins: [commonMixin],
 
-   data () {
 
-     return {
 
-       swiperOption: {
 
-         slidesPerView: 2,
 
-         spaceBetween: 14,
 
-         autoplay: false, // 可选选项,自动滑动
 
-         loop: true,
 
-         pagination: {
 
-           el: '.discount-pagination',
 
-           clickable: true
 
-         },
 
-         navigation: {
 
-           nextEl: '.swiper-button-next',
 
-           prevEl: '.swiper-button-prev'
 
-         }
 
-       }
 
-     }
 
-   }
 
- }
 
- </script>
 
- <style lang="scss" scoped>
 
- .hom-pro-list{
 
-   padding: 20px 0;
 
-   .title{
 
-     text-align: center;
 
-     margin-bottom: 20px;
 
-     label{
 
-       background: url("../../../static/images/icon-title.png") no-repeat left center;
 
-       font-size: 30px;
 
-       font-weight: bold;
 
-       padding-left: 48px;
 
-     }
 
-   }
 
-   /**多行多列**/
 
-   .product-list {
 
-     position: relative;
 
-     &-box {
 
-       display: flex;
 
-       flex-wrap: wrap;
 
-       flex-direction: row;
 
-       padding-left: 20px;
 
-     }
 
-     &.product-swiper .product-list-box{
 
-       margin: 0 20px;
 
-       padding-left: 0;
 
-     }
 
-     &-item {
 
-       margin: 0 14px 20px 0;
 
-       width: 348px;
 
-     }
 
-     &-img {
 
-       width: 348px;
 
-       height: 348px;
 
-       background-color: #f5f5f5;
 
-       border-radius: 10px 10px 0 0;
 
-       .img {
 
-         width: 100%;
 
-         height: 100%;
 
-         object-fit: contain;
 
-       }
 
-     }
 
-     &-info {
 
-       background-color: #FFFFFF;
 
-       //box-shadow: 0px 0px 15px 0px rgba(52, 52, 52, 0.15);
 
-       border-radius: 0 0 10px 10px;
 
-       padding: 20px;
 
-       label{
 
-         font-weight: normal;
 
-       }
 
-       .product-name{
 
-         font-size: 28px;
 
-         color: #333;
 
-         display: block;
 
-         overflow: hidden;
 
-         text-overflow:ellipsis;
 
-         white-space: nowrap;
 
-         margin-bottom: 18px;
 
-         line-height: 40px;
 
-       }
 
-       .shop-box{
 
-         background-color: #333333;
 
-         border-radius: 0px 20px 20px 0px;
 
-         line-height: 40px;
 
-         display: inline-block;
 
-         height: 40px;
 
-         margin-right: 10px;
 
-         .shop-name{
 
-           font-size: 20px;
 
-           color: #FFEBC4;
 
-           padding: 0 8px 0 12px;
 
-         }
 
-         .shop-logo{
 
-           border: 2px solid #707070;
 
-           border-radius: 50%;
 
-           overflow: hidden;
 
-           float: right;
 
-           img{
 
-             width: 34px;
 
-             height: 34px;
 
-             display: block;
 
-           }
 
-         }
 
-       }
 
-       .flag{
 
-         float: left;
 
-         margin-right: 20px;
 
-         img{
 
-           height: 44px;
 
-         }
 
-       }
 
-       .buy-count{
 
-         color: #C5AA7B;
 
-         font-size: 20px;
 
-         border: 2px solid #E4E5E6;
 
-         line-height: 40px;
 
-         padding: 0 5px;
 
-         display: inline-block;
 
-       }
 
-       .price-warp{
 
-         display: flex;
 
-         align-items: baseline;
 
-         line-height: 56px;
 
-         margin-top: 16px;
 
-         .price{
 
-           color: #C83732;
 
-           font-size: 40px;
 
-           margin-right: 20px;
 
-         }
 
-         .original-price{
 
-           font-size: 24px;
 
-           color: #ccc;
 
-           text-decoration: line-through;
 
-         }
 
-       }
 
-     }
 
-     //::v-deep .swiper-pagination-bullet{
 
-     //  display: none;
 
-     //}
 
-   }
 
- }
 
- .pagination{
 
-   display: flex;
 
-   justify-content: center;
 
-   padding: 20px 0;
 
-   ::v-deep .swiper-pagination-bullet{
 
-     width: 10px;
 
-     height: 10px;
 
-     background: #333333;
 
-     opacity: 0.3;
 
-     border-radius: 5px;
 
-     margin: 0 5px;
 
-   }
 
-   ::v-deep .swiper-pagination-bullet-active{
 
-     width: 20px;
 
-     height: 10px;
 
-     opacity: 1;
 
-   }
 
- }
 
- .btn-more {
 
-   width: 170px;
 
-   height: 54px;
 
-   border: 2px solid #C5AA7B;
 
-   color: #C5AA7B;
 
-   font-size: 24px;
 
-   background-color: transparent;
 
-   margin: 20px auto 0;
 
-   display: block;
 
- }
 
- </style>
 
 
  |