当前位置:网站首页>10. Page layout, guess you like it
10. Page layout, guess you like it
2022-07-01 13:16:00 【Justion_】
New component like
<template>
<div class="like">
<Card>
<span> Guess you like </span>
</Card>
<ul>
<li v-for="(item, index) in LikeList" :key="index">
<h2><img :src="item.imgUrl" alt="" /></h2>
<h3>{
{ item.name }}</h3>
<div class="price">
<span>$</span><b>{
{ item.price }}</b>
</div>
</li>
</ul>
</div>
</template>
<script>
import Card from "@/components/home/Card";
export default {
components: {
Card,
},
data() {
return {
LikeList: [
{
id: 1,
name: " Jiankai tea set , Red Suzhou 12 Set of parts ",
price: 68,
imgUrl: "./images/n1.jpeg",
},
{
id: 2,
name: " Jiankai tea set , Red Suzhou 12 Set of parts ",
price: 68,
imgUrl: "./images/n2.jpeg",
},
{
id: 3,
name: " Jiankai tea set , Red Suzhou 12 Set of parts ",
price: 68,
imgUrl: "./images/n3.jpeg",
},
{
id: 4,
name: " Jiankai tea set , Red Suzhou 12 Set of parts ",
price: 68,
imgUrl: "./images/n4.jpeg",
},
],
};
},
};
</script>
<style scoped>
.like ul {
display: flex;
flex-wrap: wrap;
}
.like ul li {
display: flex;
flex-direction: column;
/* justify-content: center; */
align-items: center;
width: 50%;
}
.like h3 {
padding: 0.16rem;
width: 100%;
font-size: 00.42666rem;
font-weight: normal;
color: #222;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.like img {
width: 4.6933rem;
height: 4.6933rem;
}
.price {
width: 100%;
padding-left: 0.4rem;
color: red;
font-size: 0.4267rem;
text-align: left;
margin-bottom: 0.3rem;
}
</style>边栏推荐
- SSO and JWT good article sorting
- 逆向调试入门-PE结构-输入表输出表05/07
- Yarn restart applications record recovery
- 内容审计技术
- Detailed explanation of OSPF LSA of routing Foundation
- 游戏公会在去中心化游戏中的未来
- Tencent always takes epoll, which is annoying
- Asp. NETCORE uses dynamic to simplify database access
- 股票开户要认识谁?实际上网上开户安全么?
- Nexus builds NPM dependent private database
猜你喜欢

Fundamentals of number theory and its code implementation

香港科技大学李泽湘教授:我错了,为什么工程意识比上最好的大学都重要?

Application of 5g industrial gateway in scientific and technological overload control; off-site joint law enforcement for over limit, overweight and overspeed
![[development of large e-commerce projects] performance pressure test - basic concept of pressure test & jmeter-38](/img/50/819b9c2f69534afc6dc391c9de5f05.png)
[development of large e-commerce projects] performance pressure test - basic concept of pressure test & jmeter-38

ZABBIX 6.0 source code installation and ha configuration

Wave animation color five pointed star loader loading JS special effects

软件测试中功能测试流程

【开发大杀器】之Idea

Google Earth engine (GEE) - Global Human Settlements grid data 1975-1990-2000-2014 (p2016)

What is the future development direction of people with ordinary education, appearance and family background? The career planning after 00 has been made clear
随机推荐
Who should I know when opening a stock account? Is it actually safe to open an account online?
Declare an abstract class vehicle, which contains the private variable numofwheel and the public functions vehicle (int), horn (), setnumofwheel (int) and getnumofwheel (). Subclass mot
How can genetic testing help patients fight disease?
Introduction to reverse debugging PE structure input table output table 05/07
mysql统计账单信息(下):数据导入及查询
Detailed explanation of OSPF LSA of routing Foundation
Judea pearl, Turing prize winner: 19 causal inference papers worth reading recently
C language learning
PG basics -- Logical Structure Management (trigger)
Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
香港科技大学李泽湘教授:我错了,为什么工程意识比上最好的大学都重要?
不同的测试技术区分
Google Earth engine (GEE) - Global Human Settlements grid data 1975-1990-2000-2014 (p2016)
PG基础篇--逻辑结构管理(触发器)
codeforces -- 4B. Before an Exam
ROS2 Foxy depthai_ ROS tutorial
Example code of second kill based on MySQL optimistic lock
Analysis report on the development prospect and investment strategic planning of China's wafer manufacturing Ⓔ 2022 ~ 2028
Zabbix 6.0 源码安装以及 HA 配置
机器学习—性能度量