zuozhengqing
2023-09-23 4ef3d1053d37de62ed7c097fb4b74434f6e67f23
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<template>
  <div>
    <div class="box_card_wrap">
      <div class="box_card" v-for="(item, index) in goodsAiInfo" :key="index">
        <div class="box_card_top">
          <h4>{{ item.classify }}</h4>
          <h3>{{ item.classifyTitle }}</h3>
          <p>
            {{ item.brief }}
          </p>
        </div>
 
        <div class="box_card_bottom">
          <p class="new_price_box">
            <span>{{ item.currency }}</span>
            <span>{{
              item.newPrice.substring(0, item.newPrice.indexOf("."))
            }}</span>
            <span
              >.{{
                item.newPrice.substring(item.newPrice.indexOf(".") + 1)
              }}</span
            >
            <span> /3</span>
            <span>年</span>
          </p>
          <p class="old_price_box">
            <del><span>¥</span><span>1198.00</span></del>
          </p>
        </div>
        <div class="box_card_bottom btnShow">
          <el-button>立即购买</el-button>
        </div>
      </div>
    </div>
  </div>
</template>
 
<script>
export default {
  props: ["goodsAiInfo"],
  data() {
    return {};
  },
  computed: {},
  created() {},
  mounted() {},
  watch: {},
  methods: {},
  components: {},
};
</script>
 
<style scoped lang="scss">
* {
  margin: 0;
  padding: 0;
}
.box_card_wrap {
  height: 600px;
  display: flex;
  flex-wrap: wrap;
  .box_card {
    width: 33.3%;
    height: 50%;
    box-sizing: border-box;
    border: 0.5px solid #e4e7ed;
    margin: 0;
    padding: 0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    .box_card_top {
      width: 100%;
      padding: 20px;
      height: 75%;
      box-sizing: border-box;
      h4 {
        width: 75px;
        height: 25px;
        line-height: 25px;
        background: #f9f9f9;
        text-align: center;
        border-radius: 5px;
        font-size: 14px;
        font-weight: normal;
        color: #999999;
      }
      h4:hover {
        background: #f2f2f2;
      }
      h3 {
        color: #333333;
        font-weight: normal;
        font-size: 16px;
        padding: 20px 0;
      }
      p {
        font-size: 14px;
        color: #999999;
      }
    }
    .box_card_bottom {
      padding: 0 20px;
      height: 25%;
      box-sizing: border-box;
      .new_price_box {
        span:nth-of-type(2) {
          font-size: 24px;
        }
        span:nth-of-type(-n + 3) {
          color: #ff6a00;
        }
      }
      .old_price_box {
        color: #d6d6d6;
      }
    }
    .btnShow {
      padding: 0;
      width: 100%;
      height: 0;
      position: absolute;
      bottom: 0;
      left: 0;
      // display: none;
      transition: height 0.3s ease-in-out;
      .el-button {
        display: block;
        width: 100%;
        // height: 100px !important;
 
        height: 0;
        background: #fa640a;
        font-size: 18px;
        color: #fff;
      }
    }
  }
  .box_card:hover {
      .box_card_bottom {
        height: 100px;
        display: none;
      }
      .btnShow {
        display: block !important;
        .el-button{
          height: 100%;
        }
      }
    }
  .box_card:nth-of-type(n + 4) {
    border-top: none;
  }
}
</style>