Browse Source

产品详情页

lilei 3 years ago
parent
commit
290507ed3f
1 changed files with 80 additions and 10 deletions
  1. 80 10
      src/views/productManagement/newProduct/detailModal.vue

+ 80 - 10
src/views/productManagement/newProduct/detailModal.vue

@@ -9,12 +9,9 @@
     @cancle="isShow=false"
     width="80%">
     <!-- 产品详情 -->
+    <h4>{{ detailsData&&detailsData.name || '--' }}</h4>
     <div class="productHead">
-      <div class="productImg">
-
-      </div>
-      <div>
-        <h4>{{ detailsData&&detailsData.name || '--' }}</h4>
+      <div class="productInfo">
         <a-descriptions bordered :column="2" size="small">
           <a-descriptions-item label="产品品牌:">{{ detailsData&&detailsData.productBrandName || '--' }}</a-descriptions-item>
           <a-descriptions-item label="产品编码:">{{ detailsData&&detailsData.code || '--' }}</a-descriptions-item>
@@ -23,14 +20,40 @@
           <a-descriptions-item label="重量:">{{ detailsData&&detailsData.unit || '--' }}</a-descriptions-item>
           <a-descriptions-item label="计量单位:">{{ detailsData&&detailsData.unit || '--' }}</a-descriptions-item>
           <a-descriptions-item label="其它编号:">{{ detailsData&&(detailsData.specialPrice || detailsData.specialPrice==0) ? detailsData.specialPrice : '--' }}</a-descriptions-item>
+          <a-descriptions-item label=""></a-descriptions-item>
           <a-descriptions-item label="适用车型:">{{ productTypeName || '--' }}</a-descriptions-item>
         </a-descriptions>
+        <div class="productDetail">
+          <h4>产品介绍</h4>
+          <div class="productDesc">
+            阿斯顿发链接撒旦发了就阿斯大幅拉四大佛教萨拉丁撒地方就拉萨撒萨德勒撒旦发了撒打发士大夫了士大夫了撒打发
+          </div>
+        </div>
       </div>
-    </div>
-    <div class="productDetail">
-      <h4>产品介绍</h4>
-      <div class="productDesc">
-        阿斯顿发链接撒旦发了就阿斯大幅拉四大佛教萨拉丁撒地方就拉萨撒萨德勒撒旦发了撒打发士大夫了士大夫了撒打发
+      <div class="productImg">
+        <a-carousel arrows>
+          <div
+            slot="prevArrow"
+            slot-scope="props"
+            class="custom-slick-arrow"
+            style="left: 10px;zIndex: 1"
+          >
+            <a-icon type="left-circle" />
+          </div>
+          <div slot="nextArrow" slot-scope="props" class="custom-slick-arrow" style="right: 10px">
+            <a-icon type="right-circle" />
+          </div>
+          <div><img src="../../../assets/avatar2.jpg"></div>
+          <div><img src="../../../assets/avatar2.jpg"></div>
+          <div><img src="../../../assets/avatar2.jpg"></div>
+        </a-carousel>
+        <div class="sycxImg">
+          <p>适用车型图片</p>
+          <div>
+            <img src="../../../assets/avatar2.jpg">
+            <div>江陵凯瑞200</div>
+          </div>
+        </div>
       </div>
     </div>
     <div class="btn-cont"><a-button id="product-management-detail-modal-back" @click="isShow = false">返回列表</a-button></div>
@@ -98,12 +121,59 @@ export default {
 </script>
 
 <style lang="less">
+  /* For demo */
+  .ant-carousel .slick-slide {
+    text-align: center;
+    height: 190px;
+    line-height: 190px;
+    background: #364d79;
+    overflow: hidden;
+  }
+  .ant-carousel .custom-slick-arrow {
+    width: 25px;
+    height: 25px;
+    font-size: 25px;
+    color: #fff;
+    background-color: rgba(31, 45, 61, 0.11);
+    opacity: 0.3;
+  }
+  .ant-carousel .custom-slick-arrow:before {
+    display: none;
+  }
+  .ant-carousel .custom-slick-arrow:hover {
+    opacity: 0.5;
+  }
+  .ant-carousel .slick-slide img {
+    width: 100%;
+    height: 100%;
+  }
   .newProductDetail-modal{
     .ant-modal-body {
       padding: 15px;
       h4{
         font-size: 18px;
       }
+      .productHead{
+        display: flex;
+        .productImg{
+          width: 25%;
+        }
+        .productInfo{
+          flex-grow: 1;
+          margin-right: 10px;
+        }
+        .sycxImg{
+          margin-top: 10px;
+          p{
+            font-size: 14px;
+            padding: 5px 10px;
+            background-color: #dcf1ff;
+          }
+          img{
+            width: 100px;
+          }
+        }
+      }
       .productDetail{
         border: 1px solid #eee;
         margin-top: 10px;