zhc4dev
暖暖 2 years ago
parent b9aa33680f
commit 970d5c4e30
  1. 21
      ant-design-vue-jeecg/src/views/shopping/shopHome.vue

@ -26,13 +26,17 @@
</div> </div>
<div class="itemDiv d-flex"> <div class="itemDiv d-flex">
<div <div
class="item d-flex" class="item"
v-for="(item, index) in orderList" v-for="(item, index) in orderList"
:key="index" :key="index"
> >
<img :src="item.imgUrl" alt="" /> <router-link :to="item.url" class="d-flex">
<span class="title_3">{{ item.title }}</span> <img :src="item.imgUrl" alt="" />
<span class="title_4">{{ item.desc }}</span> <span class="title_3">{{ item.title }}</span>
<span class="title_4">{{ item.desc }}</span>
</router-link>
</div> </div>
</div> </div>
</div> </div>
@ -216,24 +220,28 @@
orderList: [ orderList: [
{ {
id: 1, id: 1,
url:'/shopping/clothType',
imgUrl: require("./assets/order01.png"), imgUrl: require("./assets/order01.png"),
title: "服装类型", title: "服装类型",
desc: "丰富款式 多样呈现", desc: "丰富款式 多样呈现",
}, },
{ {
id: 2, id: 2,
url:'/shopping/sirendingzhi',
imgUrl: require("./assets/order02.png"), imgUrl: require("./assets/order02.png"),
title: "私人订制", title: "私人订制",
desc: "丰富款式 多样呈现", desc: "丰富款式 多样呈现",
}, },
{ {
id: 3, id: 3,
url:'/shopping/chengyi',
imgUrl: require("./assets/order03.png"), imgUrl: require("./assets/order03.png"),
title: "成衣推荐", title: "成衣推荐",
desc: "丰富款式 多样呈现", desc: "丰富款式 多样呈现",
}, },
{ {
id: 4, id: 4,
url:'/shopping/news',
imgUrl: require("./assets/order04.png"), imgUrl: require("./assets/order04.png"),
title: "关于我们", title: "关于我们",
desc: "丰富款式 多样呈现", desc: "丰富款式 多样呈现",
@ -730,15 +738,16 @@
.section2 .itemDiv { .section2 .itemDiv {
justify-content: space-around; justify-content: space-around;
} }
.section2 .itemDiv .item { .section2 .itemDiv .item a{
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 336px; width: 336px;
height: 336px; height: 336px;
color: #333;
transition: all 0.2s; transition: all 0.2s;
} }
.section2 .itemDiv .item:hover{ .section2 .itemDiv .item a:hover{
background: #EEE6D9; background: #EEE6D9;
border: 1px dashed #919190; border: 1px dashed #919190;
} }

Loading…
Cancel
Save