当前位置:网站首页>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>
边栏推荐
- Yarn重启applications记录恢复
- Flow management technology
- Detailed explanation of parallel replication examples in MySQL replication
- A Fletter version of Notepad
- Flinkcdc should extract Oracle in real time. What should be configured for oracle?
- Cs5268 advantages replace ag9321mcq typec multi in one docking station scheme
- Svg diamond style code
- ROS2 Foxy depthai_ ROS tutorial
- Topic 2612: the real topic of the 12th provincial competition of the Blue Bridge Cup in 2021 - the least weight (enumerating and finding rules + recursion)
- 北斗通信模块 北斗gps模块 北斗通信终端DTU
猜你喜欢
Simple two ball loading
ROS2 Foxy depthai_ ROS tutorial
The stack size specified is too small, specify at least 328k
mysql统计账单信息(下):数据导入及查询
MHA high availability cluster deployment and failover of database
Terminal identification technology and management technology
一款Flutter版的记事本
Redis exploration: cache breakdown, cache avalanche, cache penetration
启动solr报错The stack size specified is too small,Specify at least 328k
[today in history] July 1: the father of time sharing system was born; Alipay launched barcode payment; The first TV advertisement in the world
随机推荐
Feign & Eureka & Zuul & Hystrix 流程
Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
The 14th five year plan of China's environmental protection industry and the report on the long-term goals for 2035 Ⓖ 2022 ~ 2028
Shell script imports stored procedures into the database
Topic 2612: the real topic of the 12th provincial competition of the Blue Bridge Cup in 2021 - the least weight (enumerating and finding rules + recursion)
终端识别技术和管理技术
1553B环境搭建
Application of 5g industrial gateway in scientific and technological overload control; off-site joint law enforcement for over limit, overweight and overspeed
Logstash error: cannot reload pipeline, because the existing pipeline is not reloadable
Ustime wrote a bug
Introduction to reverse debugging PE structure input table output table 05/07
Vs code setting Click to open a new file window without overwriting the previous window
Detailed explanation of OSPF LSA of routing Foundation
VM虚拟机配置动态ip和静态ip访问
codeforces -- 4B. Before an Exam
逆向调试入门-PE结构-输入表输出表05/07
Google Earth engine (GEE) - Global Human Settlements grid data 1975-1990-2000-2014 (p2016)
Shangtang technology crash: a script written at the time of IPO
mysql统计账单信息(下):数据导入及查询
Jenkins+webhooks-多分支参数化构建-