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 | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/views/trialCenter/components/SdkItem.vue b/src/views/trialCenter/components/SdkItem.vue
index ebba2ba..4e842d6 100644
--- a/src/views/trialCenter/components/SdkItem.vue
+++ b/src/views/trialCenter/components/SdkItem.vue
@@ -1,13 +1,13 @@
<template>
<div class="SdkItem">
- <div class="icon">
- <img :src="'/httpImage/' + sdk.logoUrl" alt="" />
+ <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.productName)">绔嬪嵆璇曠敤</div>
+ <div class="button" @click="buyProduct(sdk.id)">绔嬪嵆璇曠敤</div>
</div>
</template>
@@ -17,11 +17,11 @@
sdk: {},
},
methods: {
- buyProduct(productName) {
+ buyProduct(id) {
this.$router.push({
path: "/productDetail",
query: {
- name: productName,
+ id: id,
},
});
},
@@ -36,7 +36,7 @@
background-color: #fff;
text-align: center;
position: relative;
- .icon img {
+ .imgBox img {
margin-top: 20px;
width: 96px;
}
--
Gitblit v1.8.0