Skip to content

Commit e88f2b3

Browse files
committed
add buy link
Signed-off-by: ncerzzk <huangcmzzk@gmail.com>
1 parent 81458ee commit e88f2b3

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

.vitepress/theme/components/ProductCarousel.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ const productsData = {
2727
manual: '/manuals/flight-controller-manual.pdf',
2828
buttons: {
2929
details: '了解详情',
30-
manual: '下载手册'
31-
}
30+
manual: '下载手册',
31+
purchase: '购买产品'
32+
},
33+
purchaseLink: 'https://item.taobao.com/item.htm?abbucket=4&id=1022642594970&mi_id=0000CW6PQXmZ_uru_Zs7-dCcoGa0lZPy6qBhOfuQJg5fECc&ns=1&skuId=6033769700633&spm=a21n57.1.hoverItem.1&utparam=%7B%22aplus_abtest%22%3A%22d867182280b024e96f8af1ded3eff79b%22%7D'
3234
}
3335
]
3436
},
@@ -54,8 +56,10 @@ const productsData = {
5456
manual: '/manuals/flight-controller-manual.pdf',
5557
buttons: {
5658
details: 'Learn More',
57-
manual: 'Download Manual'
58-
}
59+
manual: 'Download Manual',
60+
purchase: 'Purchase'
61+
},
62+
purchaseLink: 'https://item.taobao.com/item.htm?abbucket=4&id=1022642594970&mi_id=0000CW6PQXmZ_uru_Zs7-dCcoGa0lZPy6qBhOfuQJg5fECc&ns=1&skuId=6033769700633&spm=a21n57.1.hoverItem.1&utparam=%7B%22aplus_abtest%22%3A%22d867182280b024e96f8af1ded3eff79b%22%7D'
5963
}
6064
]
6165
}
@@ -109,6 +113,7 @@ onUnmounted(() => {
109113
<div class="product-actions">
110114
<a :href="products[currentIndex].link" class="btn-primary">{{ products[currentIndex].buttons.details }}</a>
111115
<a :href="products[currentIndex].manual" class="btn-secondary">{{ products[currentIndex].buttons.manual }}</a>
116+
<a v-if="products[currentIndex].purchaseLink" :href="products[currentIndex].purchaseLink" class="btn-secondary" target="_blank">{{ products[currentIndex].buttons.purchase }}</a>
112117
</div>
113118
</div>
114119
</div>
@@ -227,11 +232,6 @@ onUnmounted(() => {
227232
color: var(--vp-c-text-1);
228233
}
229234
230-
.btn-secondary:hover {
231-
border-color: var(--vp-c-brand);
232-
color: var(--vp-c-brand);
233-
}
234-
235235
.carousel-btn {
236236
background: var(--vp-c-bg);
237237
border: 1px solid var(--vp-c-divider);

lightfin.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ LightFin 是一款为 INAV 固件设计的小型飞控,集成 AT32F435 主控
3232
- **纸飞机改装** - 轻量级固定翼平台
3333
- **1S 轻量机型** - 适合小型室内/室外飞行器
3434

35+
## 购买链接
36+
37+
**点击以下链接购买 LightFin 飞控:**
38+
39+
40+
[直接购买 LightFin 飞控 (淘宝)](https://item.taobao.com/item.htm?abbucket=4&id=1022642594970&mi_id=0000CW6PQXmZ_uru_Zs7-dCcoGa0lZPy6qBhOfuQJg5fECc&ns=1&skuId=6033769700633&spm=a21n57.1.hoverItem.1&utparam=%7B%22aplus_abtest%22%3A%22d867182280b024e96f8af1ded3eff79b%22%7D)
41+
3542
## 核心优势
3643

3744
- **差速控制** - 双电机差速转向,简化机械结构

0 commit comments

Comments
 (0)