|
@@ -1,5 +1,47 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <div class="product" :class="className">
|
|
|
|
|
|
|
+ <div class="product-sol-box" v-if="content.value.simpleBuy">
|
|
|
|
|
+ <template v-if="content.value.productList && content.value.productList.length > 0">
|
|
|
|
|
+ <div class="product-sol">
|
|
|
|
|
+ <div class="product-sol-tit">行业方案</div>
|
|
|
|
|
+ <div class="product-sol-list">
|
|
|
|
|
+ <div class="product-sol-li" :class="{active: index == 0}" v-for="(item, index) in content.value.productList" :key="index">
|
|
|
|
|
+ <img :src="item.pic" alt="" class="product-sol-img">
|
|
|
|
|
+ <p class="product-sol-name">{{ item.title }}</p>
|
|
|
|
|
+ <img src="../../assets/images/sol_gou.png" class="product-sol-gou" v-if="index == 0">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="product-sol-sel">已选择<span>{{content.value.productList[0].title}}</span></div>
|
|
|
|
|
+ <div class="product-sol-opt">
|
|
|
|
|
+ <div class="product-sol-price"><span class="t-hui">特惠价¥</span>{{ content.value.productList[0].minSalePrice?content.value.productList[0].minSalePrice:0 }}<span class="t-yuan" v-if="content.value.showOriginalPrice && content.value.productList[0].originalPrice > 0">¥{{ content.value.productList[0].originalPrice }}</span></div>
|
|
|
|
|
+ <div class="product-sol-btn">立即抢购</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-else>
|
|
|
|
|
+ <div class="product-sol" v-if="content.value.simpleBuy">
|
|
|
|
|
+ <div class="product-sol-tit">行业方案</div>
|
|
|
|
|
+ <div class="product-sol-list">
|
|
|
|
|
+ <div class="product-sol-li">
|
|
|
|
|
+ <img src="../../assets/images/defaultimg.jpg" alt="" class="product-sol-img">
|
|
|
|
|
+ <p class="product-sol-name">产品名称</p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="product-sol-li">
|
|
|
|
|
+ <img src="../../assets/images/defaultimg.jpg" alt="" class="product-sol-img">
|
|
|
|
|
+ <p class="product-sol-name">产品名称</p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="product-sol-li">
|
|
|
|
|
+ <img src="../../assets/images/defaultimg.jpg" alt="" class="product-sol-img">
|
|
|
|
|
+ <p class="product-sol-name">产品名称</p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="product-sol-opt">
|
|
|
|
|
+ <div class="product-sol-price">价格</div>
|
|
|
|
|
+ <div class="product-sol-btn">立即抢购</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="product" :class="className" v-else>
|
|
|
<template v-if="content.value.productList && content.value.productList.length > 0">
|
|
<template v-if="content.value.productList && content.value.productList.length > 0">
|
|
|
<div class="product-item" v-for="(item, index) in content.value.productList" :key="index">
|
|
<div class="product-item" v-for="(item, index) in content.value.productList" :key="index">
|
|
|
<div class="image">
|
|
<div class="image">
|
|
@@ -197,4 +239,22 @@ export default {
|
|
|
margin-left: 4px;
|
|
margin-left: 4px;
|
|
|
text-decoration: line-through;
|
|
text-decoration: line-through;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+.product-sol-box{padding: 4px 8px;box-sizing: border-box;}
|
|
|
|
|
+.product-sol-tit{font-size: 15px;color: #333;font-weight: bold;}
|
|
|
|
|
+.product-sol-list{display: flex;display: -webkit-flex;align-items: flex-start;margin-top: 5px;width: 100%;flex-wrap: wrap;}
|
|
|
|
|
+.product-sol-li{width: 32.33%;position: relative;margin-top: 10px;margin-right: 1.5%;border-radius: 5px;height: 108px;box-sizing: border-box;}
|
|
|
|
|
+.product-sol-li:nth-child(3n){margin-right: 0;}
|
|
|
|
|
+.product-sol-li.active{border: 3px solid #6BBFFF;}
|
|
|
|
|
+.product-sol-img{width: 100%;height: 100%;display: block;border-radius: 5px;}
|
|
|
|
|
+.product-sol-name{position: absolute;left: 0;right: 0;bottom: 0;background: rgba(51,51,51,.8);font-size: 14px;color: #fff;margin: 0;height: 27px;line-height: 27px;text-overflow: ellipsis;overflow: hidden;white-space: nowrap;text-align: center;}
|
|
|
|
|
+.product-sol-gou{position: absolute;right: 0;bottom: 0;}
|
|
|
|
|
+.product-sol-sel{margin-top: 20px;font-size: 15px;color: #999;}
|
|
|
|
|
+.product-sol-sel span{margin-left: 10px;color: #333;}
|
|
|
|
|
+.product-sol-opt{height: 35px;background-color: #FFE1CE;margin-top: 30px;padding: 5px;display: flex;display: -webkit-flex;justify-content: space-between;border-radius: 5px;}
|
|
|
|
|
+.product-sol-price{font-size: 20px;color: #FC3C31;line-height: 35px;}
|
|
|
|
|
+.t-hui{font-size: 12px;font-weight: bold;}
|
|
|
|
|
+.t-yuan{font-size: 12px;color: #909399;text-decoration: line-through;}
|
|
|
|
|
+.product-sol-btn{width: 113px;height: 35px;background: linear-gradient( 90deg, #FE934C 0%, #FD3A31 100%);border-radius: 5px;font-size: 18px;color: #fff;font-weight: bold;text-align: center;height: 35px;line-height: 35px;}
|
|
|
|
|
+
|
|
|
</style>
|
|
</style>
|