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
| <template>
| <div class="SdkItem">
| <div class="imgBox">
| <ImageShow :src="sdk.logoUrl" alt="" />
| </div>
| <div class="title">{{ sdk.productName }}</div>
| <div class="des limitRow2">
| {{ sdk.description }}
| </div>
| <div class="button" @click="buyProduct(sdk.id)">立即试用</div>
| </div>
| </template>
|
| <script>
| export default {
| props: {
| sdk: {},
| },
| methods: {
| buyProduct(id) {
| this.$router.push({
| path: "/productDetail",
| query: {
| id: id,
| },
| });
| },
| },
| };
| </script>
|
| <style lang="scss" scoped>
| .SdkItem {
| width: 302px;
| height: 280px;
| background-color: #fff;
| text-align: center;
| position: relative;
| .imgBox img {
| margin-top: 20px;
| width: 96px;
| }
|
| .title {
| margin-top: 20px;
| margin-bottom: 10px;
| font-size: 18px;
| font-weight: 700;
| }
|
| .des {
| height: 38px;
| margin: 0 20px 30px 20px;
| color: #666666;
| font-size: 14px;
| }
|
| .button {
| position: absolute;
| left: 0;
| bottom: 10px;
| width: 100%;
| height: 40px;
| box-shadow: 0px 2px 8px rgba(0, 43, 106, 0.12);
| color: #ff6a00;
| font-size: 14px;
| font-weight: 700;
| line-height: 40px;
| cursor: pointer;
|
| &:hover {
| background: linear-gradient(
| 90.78deg,
| #ffba4a 0%,
| #ff6a00 20.33%,
| #ff6a00 79.66%,
| #ffba4a 100%
| );
| color: #fff;
| }
| }
| }
| </style>
|
|