当前位置:网站首页>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>边栏推荐
- 彩色五角星SVG动态网页背景js特效
- When Sqlalchemy deletes records with foreign key constraints, the foreign key constraints do not work. What is the solution?
- leetcode 322. Coin change (medium)
- Yarn重启applications记录恢复
- Shangtang technology crash: a script written at the time of IPO
- Flinkcdc should extract Oracle in real time. What should be configured for oracle?
- Report on the "14th five year plan" and investment strategy recommendations for China's industrial robot industry 2022 ~ 2028
- Update a piece of data from the database. Will CDC get two pieces of data with OP fields D and C at the same time? I remember before, only OP was U
- Function test process in software testing
- Detailed explanation of parallel replication examples in MySQL replication
猜你喜欢

JS discolored Lego building blocks

Fiori applications are shared through the enhancement of adaptation project

【牛客刷题-SQL大厂面试真题】NO2.用户增长场景(某度信息流)

JS变色的乐高积木

波浪动画彩色五角星loader加载js特效

VM虚拟机配置动态ip和静态ip访问

Redis exploration: cache breakdown, cache avalanche, cache penetration

Meta再放大招!VR新模型登CVPR Oral:像人一样「读」懂语音

The future of game guild in decentralized games

Meta enlarge again! VR new model posted on CVPR oral: read and understand voice like a human
随机推荐
Flutter SQLite使用
In the next stage of digital transformation, digital twin manufacturer Youyi technology announced that it had completed a financing of more than 300 million yuan
Class initialization and instantiation
Analysis report on production and marketing demand and investment forecast of global and Chinese diamond powder industry Ⓤ 2022 ~ 2027
简单的两个圆球loading加载
股票开户要认识谁?实际上网上开户安全么?
Detailed explanation of OSPF LSA of routing Foundation
Three questions about scientific entrepreneurship: timing, pain points and important decisions
Analysis report on the development pattern of China's smart emergency industry and the 14th five year plan Ⓠ 2022 ~ 2028
启动solr报错The stack size specified is too small,Specify at least 328k
华为HMS Core携手超图为三维GIS注入新动能
Update a piece of data from the database. Will CDC get two pieces of data with OP fields D and C at the same time? I remember before, only OP was U
La taille de la pile spécifiée est petite, spécifiée à la sortie 328k
Global and Chinese polypropylene industry prospect analysis and market demand forecast report Ⓝ 2022 ~ 2027
请问flink mysql cdc 全量读取mysql某个表数据,对原始的mysql数据库有影响吗
When Sqlalchemy deletes records with foreign key constraints, the foreign key constraints do not work. What is the solution?
Apache-atlas-2.2.0 independent compilation and deployment
终端识别技术和管理技术
Operator-1初识Operator
香港科技大学李泽湘教授:我错了,为什么工程意识比上最好的大学都重要?