From f89c922c7f40425d53cfd4a80ab13ce818d9fdab Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期五, 15 七月 2022 15:41:25 +0800
Subject: [PATCH] 列表样式
---
src/views/trialCenter/components/SdkItem.vue | 35 +++++++++++++++++++++++++++--------
1 files changed, 27 insertions(+), 8 deletions(-)
diff --git a/src/views/trialCenter/components/SdkItem.vue b/src/views/trialCenter/components/SdkItem.vue
index 7bb13e9..4e842d6 100644
--- a/src/views/trialCenter/components/SdkItem.vue
+++ b/src/views/trialCenter/components/SdkItem.vue
@@ -1,18 +1,32 @@
<template>
<div class="SdkItem">
- <div class="icon">
- <img src="/images/index/15鎴村彛缃�.png" alt="" />
+ <div class="imgBox">
+ <ImageShow :src="sdk.logoUrl" alt="" />
</div>
- <div class="title">鎴村彛缃�</div>
- <div class="des">
- 瀵圭伀杞﹂┚椹惰埍鐨勭洃鎺ц棰戣繘琛屾娴嬶紝褰撻┚椹朵汉鍛樺嚭鐜拌洞浼忕幇璞℃椂锛屽皢缁撴灉璁板綍涓嬫潵
+ <div class="title">{{ sdk.productName }}</div>
+ <div class="des limitRow2">
+ {{ sdk.description }}
</div>
- <div class="button">绔嬪嵆璇曠敤</div>
+ <div class="button" @click="buyProduct(sdk.id)">绔嬪嵆璇曠敤</div>
</div>
</template>
<script>
-export default {};
+export default {
+ props: {
+ sdk: {},
+ },
+ methods: {
+ buyProduct(id) {
+ this.$router.push({
+ path: "/productDetail",
+ query: {
+ id: id,
+ },
+ });
+ },
+ },
+};
</script>
<style lang="scss" scoped>
@@ -21,7 +35,8 @@
height: 280px;
background-color: #fff;
text-align: center;
- .icon img {
+ position: relative;
+ .imgBox img {
margin-top: 20px;
width: 96px;
}
@@ -34,12 +49,16 @@
}
.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);
--
Gitblit v1.8.0