<template>
  <div class="products bg-F5">
    <div class="banner">
      <img src="@assets/cjxq-banner.png" alt="" />
    </div>
    <div class="container">
      <el-row :gutter="20">
        <el-col :span="4">
          <mymenu showHeader />
        </el-col>
        <el-col :span="20">
          <div class="items">
            <div class="item" v-for="x in 8" :key="x">
              <div class="img">
                <img src="@assets/shangpin.png" alt="" />
              </div>
              <span>多功能钢制文件柜</span>
              <div class="pay">
                <span>¥ 1800</span>
                <router-link to="2">
                  立即购买
                </router-link>
              </div>
            </div>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>
<script lang="ts">
import { Component, Vue, Watch } from "vue-property-decorator";
import mymenu from "@/components/menu.vue";
@Component({
  components: { mymenu }
})
export default class extends Vue {}
</script>
<style lang="scss" scoped>
.products {
  .banner {
    width: 100%;
    height: 240px;
    line-height: 240px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    background: rgb(220, 220, 220);
  }
  .container {
    padding: 20px 0;
    .menu {
      width: 190px;
      // background: #fff;
      display: inline-block;
      // vertical-align: top;
      // margin-right: 20px;
      // border-radius: 4px;

      // position: relative;
      h3 {
        background: #fd5522;
        color: #fff;
        height: 35px;
        line-height: 35px;
        padding-left: 20px;
      }
    }
    .items {
      overflow: hidden;
      display: inline-block;
      width: 940px;
      .item {
        width: 215px;
        height: 327px;
        background: #fff;
        box-sizing: border-box;
        float: left;
        margin: 0 20px 20px 0;
        padding: 20px;
        .img {
          width: 100%;
          height: 200px;
          border: 1px #e5e5e5 solid;
          position: relative;
          img {
            width: 80%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
          }
        }
        > span {
          display: inline-block;
          margin: 20px 0;
          color: rgb(51, 51, 52);
        }
        .pay {
          border: 1px solid #fd5522;
          border-radius: 4px;
          height: 30px;
          line-height: 30px;
          > span {
            color: #fd5522;
            display: inline-block;
            width: 50%;
            text-align: center;
          }
          > a {
            color: #fff;
            background: #fd5522;
            width: 50%;
            text-align: center;
            display: inline-block;
          }
        }
      }
    }
  }
}
</style>
