videoArea.vue
1.85 KB
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
<template>
<div v-if="videoAreaInfo">
<titleBox v-if="videoAreaInfo" @more="more"
:titles="videoAreaInfo">
</titleBox>
<div class="item_box" @click="toDetail(videoAreaInfo.img[0])">
<img v-lazy="videoAreaInfo.img[0].simg + SIGN.BIG" class="main-img" mode="widthFix" />
<div class="title">
{{videoAreaInfo.img[0].goods_data.title}}
</div>
<div class="desc" v-if="videoAreaInfo.img[0].goods_data.attr">
{{videoAreaInfo.img[0].goods_data.attr}}
</div>
<div class="pic_box">
<div class="pice">
<div class="now">¥ {{videoAreaInfo.img[0].goods_data.price}}</div>
<div class="original">¥ {{videoAreaInfo.img[0].goods_data.prices}}</div>
</div>
<!--<div class="btn">-->
<!--立即购买-->
<!--</div>-->
</div>
</div>
</div>
</template>
<script>
// 引入组件
import titleBox from "@/components/titleBox/titleBox";
export default {
name: 'videoArea',
data() {
return {
}
},
props:["videoAreaInfo"],
components:{
titleBox
},
methods: {
/**
* 详情
* @param {object} item [详情数据]
*/
toDetail(item) {
this.$emit("toDetail", item);
},
/**
* 更多
* @param {object} item [详情数据]
*/
more(item) {
this.$emit("more", item);
}
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style rel="stylesheet/less" lang="less" scoped>
@import 'videoArea';
</style>