当前位置:网站首页>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>边栏推荐
- Localtime can't re-enter. It's a pit
- Simple two ball loading
- 有没有大佬 遇到过flink监控postgresql数据库, 检查点无法使用的问题
- Cs5268 advantages replace ag9321mcq typec multi in one docking station scheme
- nexus搭建npm依赖私库
- 科学创业三问:关于时机、痛点与重要决策
- 股票开户要认识谁?实际上网上开户安全么?
- Report on the "14th five year plan" and investment strategy recommendations for China's industrial robot industry 2022 ~ 2028
- MHA high availability cluster deployment and failover of database
- Fiori applications are shared through the enhancement of adaptation project
猜你喜欢

The popular major I chose became "Tiankeng" four years later

Look at the sky at dawn and the clouds at dusk, and enjoy the beautiful pictures

1553B环境搭建

Based on the open source stream batch integrated data synchronization engine Chunjun data restore DDL parsing module actual combat sharing

Fiori applications are shared through the enhancement of adaptation project
Reasons for MySQL reporting 1040too many connections and Solutions

The future of game guild in decentralized games

Svg diamond style code

Manage nodejs with NVM (downgrade the high version to the low version)
基于mysql乐观锁实现秒杀的示例代码
随机推荐
Based on the open source stream batch integrated data synchronization engine Chunjun data restore DDL parsing module actual combat sharing
Report on the 14th five year plan and future development trend of China's integrated circuit packaging industry Ⓓ 2022 ~ 2028
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
有人碰到过这种情况吗,oracle logminer 同步的时候,clob字段的值丢失
Yarn restart applications record recovery
ROS2 Foxy depthai_ ROS tutorial
leetcode 322. Coin change (medium)
Function test process in software testing
Manage nodejs with NVM (downgrade the high version to the low version)
不同的测试技术区分
Google Earth engine (GEE) - Global Human Settlements grid data 1975-1990-2000-2014 (p2016)
Feign & Eureka & Zuul & Hystrix 流程
Zabbix 6.0 源码安装以及 HA 配置
Scene function of wooden frame
codeforces -- 4B. Before an Exam
[today in history] July 1: the father of time sharing system was born; Alipay launched barcode payment; The first TV advertisement in the world
Analysis report on the development trend and prospect scale of silicon intermediary industry in the world and China Ⓩ 2022 ~ 2027
北斗通信模块 北斗gps模块 北斗通信终端DTU
R language uses conf of yardstick package_ The mat function calculates the confusion matrix of the multiclass model on each fold of each cross validation (or resampling), and uses the summary to outpu
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