当前位置:网站首页>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>边栏推荐
- Tencent always takes epoll, which is annoying
- Analysis report on the development prospect and investment strategic planning of China's wafer manufacturing Ⓔ 2022 ~ 2028
- oracle cdc 数据传输时,clob类型字段,在update时值会丢失,update前有值,但
- MHA high availability cluster deployment and failover of database
- The 14th five year plan of China's environmental protection industry and the report on the long-term goals for 2035 Ⓖ 2022 ~ 2028
- [today in history] July 1: the father of time sharing system was born; Alipay launched barcode payment; The first TV advertisement in the world
- Report on the "14th five year plan" and scale prospect prediction of China's laser processing equipment manufacturing industry Ⓢ 2022 ~ 2028
- The future of game guild in decentralized games
- PG基础篇--逻辑结构管理(触发器)
- A Fletter version of Notepad
猜你喜欢

Hardware development notes (9): basic process of hardware development, making a USB to RS232 module (8): create asm1117-3.3v package library and associate principle graphic devices
Example code of second kill based on MySQL optimistic lock

MHA high availability cluster deployment and failover of database

codeforces -- 4B. Before an Exam

1553B环境搭建

Redis exploration: cache breakdown, cache avalanche, cache penetration

Fiori applications are shared through the enhancement of adaptation project

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

啟動solr報錯The stack size specified is too small,Specify at least 328k
![[Niu Ke's questions -sql big factory interview real questions] no2 User growth scenario (a certain degree of information flow)](/img/a0/e9e7506c9c34986dc73562539c8410.png)
[Niu Ke's questions -sql big factory interview real questions] no2 User growth scenario (a certain degree of information flow)
随机推荐
MySQL报错1040Too many connections的原因以及解决方案
[Niu Ke's questions -sql big factory interview real questions] no2 User growth scenario (a certain degree of information flow)
Manage nodejs with NVM (downgrade the high version to the low version)
Meta再放大招!VR新模型登CVPR Oral:像人一样「读」懂语音
Reasons for MySQL reporting 1040too many connections and Solutions
What is the future development direction of people with ordinary education, appearance and family background? The career planning after 00 has been made clear
Asp.netcore利用dynamic简化数据库访问
Redis exploration: cache breakdown, cache avalanche, cache penetration
There are risks in trading
Has anyone ever encountered this situation? When Oracle logminer is synchronized, the value of CLOB field is lost
SVG钻石样式代码
Meta enlarge again! VR new model posted on CVPR oral: read and understand voice like a human
软件测试中功能测试流程
R language builds a binary classification model based on H2O package: using H2O GBM build gradient hoist model GBM, use H2O AUC value of AUC calculation model
The future of game guild in decentralized games
北斗通信模块 北斗gps模块 北斗通信终端DTU
Fiori 应用通过 Adaptation Project 的增强方式分享
Quickly understand what the compressed list in redis is
Professor Li Zexiang, Hong Kong University of science and technology: I'm wrong. Why is engineering consciousness more important than the best university?
声明一个抽象类Vehicle,它包含私有变量numOfWheels和公共函数Vehicle(int)、Horn()、setNumOfWheels(int)和getNumOfWheels()。子类Mot