工匠基地官网-last
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

44 lines
1.6 KiB

<template>
<div class="xl:w-screen-xl sm:flex xl:p-0 p-4 m-auto relative">
<el-row :gutter="24" class="flex">
<template v-for="(item,index) in list" :key="index">
<el-col :span="6" class="mb-5 min-w-xs">
<el-card shadow="hover" :body-style="{ padding: '0px' }" class="hover:bg-gray-50">
<el-image :src="item.image" fit="contain" :lazy="true" class="w-full h-[150px] cursor-pointer" @click="openSpmUrl(`/detail`,item,item.articleId)" />
<div class="flex-1 px-4 py-5 sm:p-6 !p-4">
<p class="text-gray-900 dark:text-white text-base font-semibold flex items-center gap-1.5">
<a class="flex-1 cursor-pointer" @click="openSpmUrl(`/detail`,item,item.articleId)">{{ item.title }}</a>
</p>
<div class="text-[15px] text-gray-500 dark:text-gray-400 mt-1 line-clamp-2 sm:min-h-[45px]">
{{ item.comments }}
</div>
<div class="button-group flex justify-center mt-3">
<el-button class="w-full" :icon="ElIconView">演示</el-button>
<el-button class="w-full" :icon="ElIconShoppingCart">购买</el-button>
</div>
</div>
</el-card>
</el-col>
</template>
</el-row>
</div>
</template>
<script setup lang="ts">
import {useConfigInfo} from "~/composables/configState";
import {openSpmUrl} from "~/utils/common";
const token = useToken();
const sysDomain = useSysDomain();
withDefaults(
defineProps<{
layout?: any;
list?: any[];
}>(),
{}
);
const config = useConfigInfo();
</script>