zero-help.vue
1.64 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<template>
<div>
<item-info />
<div class="action-wraper">
<Button class="free-receive" :primary="true">免费领取</Button>
<div class="receive-rule" />
</div>
<a class="resource-area" href="">
<img v-lazy="resourceSrc" alt="" />
</a>
<recommend-free-goods />
<RecommendGoods />
</div>
</template>
<script>
import ItemInfo from "./components/item-info";
import { Button } from "cube-ui";
import RecommendGoods from "./components/recommend-goods";
import RecommendFreeGoods from "./components/recommend-free-goods";
import { createNamespacedHelpers } from "vuex";
const { mapState, mapActions } = createNamespacedHelpers("zeroHelp");
export default {
components: {
ItemInfo,
Button,
RecommendGoods,
RecommendFreeGoods
},
data() {
return {
resourceSrc:
"http://img10.static.yhbimg.com/yhb-img01/2019/08/20/17/01bb10aa4f373016cc5e7963b1d6c1182f.jpg"
};
},
computed: {},
mounted() {
this.fetchPoolGoods();
},
methods: {
...mapActions(["fetchPoolGoods"])
}
};
</script>
<style lang="scss" scoped>
.resource-area {
display: block;
padding: 0 30px;
& > img {
height: 140px;
width: 100%;
}
}
.action-wraper {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
margin: 40px 0;
.free-receive {
background: #d0021b;
width: 80%;
font-size: 28px;
padding: 26px 0;
}
.receive-rule {
height: 28px;
width: 70%;
background-image: url("~statics/image/power-free-rule.png");
background-size: contain;
background-repeat: no-repeat;
margin-top: 16px;
}
}
</style>