商城首页

zhc4dev
Gitea 2 years ago
parent 1213a0042a
commit f043a198ed
  1. 42
      ant-design-vue-jeecg/src/views/shopping/shopHome.vue

@ -1,5 +1,5 @@
<template> <template>
<!-- 首页--> <!-- 首页-->
<div> <div>
<Header/> <Header/>
<div class="lunbotu"> <div class="lunbotu">
@ -32,7 +32,7 @@
> >
<router-link :to="item.url" class="d-flex"> <router-link :to="item.url" class="d-flex">
<!-- <img :src="item.imgUrl" alt="" />--> <!-- <img :src="item.imgUrl" alt="" />-->
<i :class="item.iconClass"></i> <i :class="item.iconClass"></i>
<span class="title_3">{{ item.title }}</span> <span class="title_3">{{ item.title }}</span>
<span class="title_4">{{ item.desc }}</span> <span class="title_4">{{ item.desc }}</span>
@ -93,18 +93,18 @@
</div> </div>
</a-carousel> </a-carousel>
<div class="more d-flex" style="padding-top: 20px"> <div class="more d-flex" style="padding-top: 20px">
<a href="#">更多西装</a> <a href="/#/shopping/chengyi">更多推荐</a>
<img src="./assets/youjiantou.png" alt="" /> <img src="./assets/youjiantou.png" alt="" />
</div> </div>
<!-- <el-carousel type="card" arrow="always">--> <!-- <el-carousel type="card" arrow="always">-->
<!-- <el-carousel-item v-for="(item, index) in clothList2" :key="index">--> <!-- <el-carousel-item v-for="(item, index) in clothList2" :key="index">-->
<!-- <div class="box">--> <!-- <div class="box">-->
<!-- <img :src="item.imgUrl" alt="" />--> <!-- <img :src="item.imgUrl" alt="" />-->
<!-- <p class="box1">CLOTHING NAM</p>--> <!-- <p class="box1">CLOTHING NAM</p>-->
<!-- <p class="box2">15分钟前定制</p>--> <!-- <p class="box2">15分钟前定制</p>-->
<!-- </div>--> <!-- </div>-->
<!-- </el-carousel-item>--> <!-- </el-carousel-item>-->
<!-- </el-carousel>--> <!-- </el-carousel>-->
</div> </div>
</div> </div>
<div class="section5"> <div class="section5">
@ -138,7 +138,7 @@
</div> </div>
</div> </div>
<div class="more d-flex"> <div class="more d-flex">
<router-link to="/shopping/clothType">更多西</router-link> <router-link to="/shopping/clothType">更多</router-link>
<img src="./assets/youjiantou.png" alt="" /> <img src="./assets/youjiantou.png" alt="" />
</div> </div>
</el-tab-pane> </el-tab-pane>
@ -165,7 +165,7 @@
</div> </div>
</div> </div>
<div class="more d-flex"> <div class="more d-flex">
<router-link to="/shopping/clothType">更多西</router-link> <router-link to="/shopping/clothType">更多</router-link>
<img src="./assets/youjiantou.png" alt="" /> <img src="./assets/youjiantou.png" alt="" />
</div> </div>
</el-tab-pane> </el-tab-pane>
@ -192,7 +192,7 @@
</div> </div>
</div> </div>
<div class="more d-flex"> <div class="more d-flex">
<router-link to="/shopping/clothType">更多西</router-link> <router-link to="/shopping/clothType">更多</router-link>
<img src="./assets/youjiantou.png" alt="" /> <img src="./assets/youjiantou.png" alt="" />
</div> </div>
</el-tab-pane> </el-tab-pane>
@ -205,6 +205,7 @@
<script> <script>
import Header from './components/Header/HeaderView' import Header from './components/Header/HeaderView'
import Footer from './components/Footer/FooterView' import Footer from './components/Footer/FooterView'
import { httpAction, getAction } from '@/api/manage'
export default { export default {
name: "shopHome", name: "shopHome",
components: { Header ,Footer}, components: { Header ,Footer},
@ -212,6 +213,9 @@
return { return {
vh: 0, vh: 0,
activeName: "first", activeName: "first",
url: {
zxdz: "/zygoods/zyGoods/zxdz",
},
// //
imgList: [ imgList: [
require("./assets/bg.png"), require("./assets/bg.png"),
@ -624,6 +628,14 @@
}, },
mounted() { mounted() {
this.vh = window.screen.availHeight - 100; this.vh = window.screen.availHeight - 100;
getAction(this.url.zxdz).then((res) => {
if (res.success) {
console.log(res.result);
this.clothList = res.result;
}else{
this.$message.error(res.message);
}
})
}, },
} }
</script> </script>

Loading…
Cancel
Save