当前位置:网站首页>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>边栏推荐
- Google Earth Engine(GEE)——全球人类居住区网格数据 1975-1990-2000-2014 (P2016)
- Beidou communication module Beidou GPS module Beidou communication terminal DTU
- Analysis report on the development trend and Prospect of new ceramic materials in the world and China Ⓐ 2022 ~ 2027
- MySQL statistical bill information (Part 2): data import and query
- Global and Chinese styrene acrylic lotion polymer development trend and prospect scale prediction report Ⓒ 2022 ~ 2028
- 一款Flutter版的记事本
- Router. use() requires a middleware function but got a Object
- 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
- Ustime wrote a bug
- 图灵奖得主Judea Pearl:最近值得一读的19篇因果推断论文
猜你喜欢

What is the future development direction of people with ordinary education, appearance and family background? The career planning after 00 has been made clear

mysql统计账单信息(下):数据导入及查询

软件测试中功能测试流程

Zabbix 6.0 源码安装以及 HA 配置

Operator-1 first acquaintance with operator

Jenkins+webhooks-多分支参数化构建-

我选的热门专业,四年后成了“天坑”

codeforces -- 4B. Before an Exam

Vs code setting Click to open a new file window without overwriting the previous window

5G工业网关的科技治超应用 超限超重超速非现场联合执法
随机推荐
PG基础篇--逻辑结构管理(触发器)
软件测试中功能测试流程
Analysis report on the development prospect and investment strategy of the global and Chinese laser chip industry Ⓑ 2022 ~ 2027
I spent tens of thousands of dollars to learn and bring goods: I earned 3 yuan in three days, and the transaction depends on the bill
【开发大杀器】之Idea
Flinkcdc should extract Oracle in real time. What should be configured for oracle?
Cs5268 advantages replace ag9321mcq typec multi in one docking station scheme
C language learning
Detailed explanation of parallel replication examples in MySQL replication
彩色五角星SVG动态网页背景js特效
Svg diamond style code
JS discolored Lego building blocks
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
VM虚拟机配置动态ip和静态ip访问
商汤科技崩盘 :IPO时已写好的剧本
不同的测试技术区分
Mysql间隙锁
Global and Chinese polypropylene industry prospect analysis and market demand forecast report Ⓝ 2022 ~ 2027
流量管理技术
Declare an abstract class vehicle, which contains the private variable numofwheel and the public functions vehicle (int), horn (), setnumofwheel (int) and getnumofwheel (). Subclass mot