zxl
16 小时以前 226c543d57ef46fcd0cd1f71fb9ceb2b715cab97
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
<template>
    <div class="flex" v-if="data.options.left.model == 'goods'">
      <div class="left-side"  @click="linkTo(data.options.right.data.image.url)">
        <img :src="data.options.left.data.image.src" alt="">
      </div>
      <div class="right-side">
          <div class="badge-box flex">
            <div class="badge"  @click="linkTo(data.options.right.data.image.url)">
              {{data.options.left.data.badge.label}}
            </div>
          </div>
          <div class="flex goods-list">
 
            <div class="goods-item flex"  @click="linkTo(item.url)" :key="index" v-for="(item,index) in data.options.left.data.list">
              <div class="goods-thumbnail">
                <img :src="item.img" alt="">
              </div>
              <div class="goods-detail">
                <div class="goods-detail-title">{{item.title}}</div>
                <div class="goods-detail-price">{{item.price | unitPrice('¥')}}</div>
              </div>
            </div>
          </div>
      </div>
    </div>
</template>
 
<script>
export default {
  name: "mix-goods",
  data() {
    return {}
  },
  props: {
    data: {
      type: Object,
      default: {}
    }
  },
  components: {},
  mounted() {
 
  },
  methods: {}
}
</script>
 
<style scoped lang="scss">
.right-side{
  width: 387px;
}
.goods-detail-title{
  font-size: 13px;
  font-weight: normal;
  line-height: 16px;
  text-align: center;
  letter-spacing: 0px;
  color: #333333;
}
.goods-detail-price{
  font-size: 14px;
  font-weight: normal;
  line-height: 17px;
  letter-spacing: 0px;
  color: #F31947;
  margin-top: 8px;
  margin-bottom:10px;
}
.goods-thumbnail{
  margin-left: 7px;
  display: flex;
  align-items: center;
  >img{
    width:90px;
    height: 90px;
  }
}
.badge-box{
 
  justify-content:right;
}
.goods-list{
  width: 387px;
  flex-wrap: wrap;
  justify-content:space-between;
  padding: 0 16px;
}
.goods-item{
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 173.6px;
  height: 119px;
  border-radius: 9.8px;
  opacity: 1;
  transition: .35s;
  background: #FFFFFF;
  margin-bottom:9px;
  &:hover{
    box-shadow: 0px 1px 6px 0px #E5E5E5;
  }
 
}
.left-side {
  >img{
    border-radius: 10px 0px 0px 10px;
    display: block;
    width: 196.7px;
    height: 343.7px;
  }
}
.badge {
  width: 50px;
  height: 27px;
  line-height:27px;
  border-radius: 13.3px 0px 0px 13.3px;
  opacity: 1;
  background: #F31947;
  font-size: 12.6px;
  font-weight: normal;
  text-align: center;
  letter-spacing: 0px;
  color: #FFFFFF;
  margin-top: 26px;
  margin-bottom:17px;
}
</style>