Merge remote-tracking branch 'origin/master'

zhc4dev
wangjiadong 2 years ago
commit 6118517588
  1. 26
      ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.css
  2. 2
      ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.js
  3. 35
      ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.json
  4. BIN
      ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.ttf
  5. BIN
      ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.woff
  6. BIN
      ant-design-vue-jeecg/src/views/shopping/assets/iconfont/iconfont.woff2
  7. 112
      ant-design-vue-jeecg/src/views/shopping/shopHome.vue

@ -1,8 +1,8 @@
@font-face { @font-face {
font-family: "iconfont"; /* Project id 3854415 */ font-family: "iconfont"; /* Project id 3854415 */
src: url('iconfont.woff2?t=1673860163583') format('woff2'), src: url('iconfont.woff2?t=1675756284306') format('woff2'),
url('iconfont.woff?t=1673860163583') format('woff'), url('iconfont.woff?t=1675756284306') format('woff'),
url('iconfont.ttf?t=1673860163583') format('truetype'); url('iconfont.ttf?t=1675756284306') format('truetype');
} }
.iconfont { .iconfont {
@ -13,6 +13,26 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.icon-biaoqian1:before {
content: "\e60e";
}
.icon-xizhuang1:before {
content: "\e607";
}
.icon-dingzhi:before {
content: "\e651";
}
.icon-bijijilu:before {
content: "\e6f3";
}
.icon-jilu:before {
content: "\e69f";
}
.icon-weishoucang:before { .icon-weishoucang:before {
content: "\e603"; content: "\e603";
} }

File diff suppressed because one or more lines are too long

@ -5,6 +5,41 @@
"css_prefix_text": "icon-", "css_prefix_text": "icon-",
"description": "", "description": "",
"glyphs": [ "glyphs": [
{
"icon_id": "7556872",
"name": "标签",
"font_class": "biaoqian1",
"unicode": "e60e",
"unicode_decimal": 58894
},
{
"icon_id": "7767642",
"name": "西装",
"font_class": "xizhuang1",
"unicode": "e607",
"unicode_decimal": 58887
},
{
"icon_id": "12975225",
"name": "定制",
"font_class": "dingzhi",
"unicode": "e651",
"unicode_decimal": 58961
},
{
"icon_id": "18406367",
"name": "笔记,记录",
"font_class": "bijijilu",
"unicode": "e6f3",
"unicode_decimal": 59123
},
{
"icon_id": "20710441",
"name": "记录",
"font_class": "jilu",
"unicode": "e69f",
"unicode_decimal": 59039
},
{ {
"icon_id": "9526741", "icon_id": "9526741",
"name": "未收藏", "name": "未收藏",

@ -1,5 +1,5 @@
<template> <template>
<!-- 首页--> <!-- 首页-->
<div> <div>
<Header/> <Header/>
<div class="lunbotu"> <div class="lunbotu">
@ -26,13 +26,18 @@
</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> <i :class="item.iconClass"></i>
<span class="title_3">{{ item.title }}</span>
<span class="title_4">{{ item.desc }}</span>
</router-link>
</div> </div>
</div> </div>
</div> </div>
@ -81,25 +86,25 @@
<div slot="nextArrow" slot-scope="props" class="custom-slick-arrow" style="right: 10px"> <div slot="nextArrow" slot-scope="props" class="custom-slick-arrow" style="right: 10px">
<a-icon type="right-circle" /> <a-icon type="right-circle" />
</div> </div>
<div class="box" v-for="(item, index) in clothList2" :key="index"> <div class="box" v-for="(item, index) in clothList2" :key="index">
<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>
</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">
@ -118,7 +123,7 @@
:key="index" :key="index"
> >
<img :src="item.imgUrl" alt="" /> <img :src="item.imgUrl" alt="" />
<p> <p class="title_6">
{{ item.title1 }}<span class="line">|</span>{{ item.title1 }} {{ item.title1 }}<span class="line">|</span>{{ item.title1 }}
</p> </p>
<div> <div>
@ -133,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>
@ -160,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>
@ -187,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>
@ -200,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},
@ -207,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"),
@ -216,25 +225,36 @@
orderList: [ orderList: [
{ {
id: 1, id: 1,
imgUrl: require("./assets/order01.png"), url:'/shopping/clothType',
// imgUrl: require("./assets/order01.png"),
iconClass:'iconfont icon-biaoqian1',
title: "服装类型", title: "服装类型",
desc: "丰富款式 多样呈现", desc: "丰富款式 多样呈现",
}, },
{ {
id: 2, id: 2,
imgUrl: require("./assets/order02.png"), url:'/shopping/sirendingzhi',
// imgUrl: require("./assets/order02.png"),
iconClass:'iconfont icon-dingzhi',
title: "私人订制", title: "私人订制",
desc: "丰富款式 多样呈现", desc: "丰富款式 多样呈现",
}, },
{ {
id: 3, id: 3,
imgUrl: require("./assets/order03.png"), url:'/shopping/chengyi',
// imgUrl: require("./assets/order03.png"),
iconClass:'iconfont icon-xizhuang1',
title: "成衣推荐", title: "成衣推荐",
desc: "丰富款式 多样呈现", desc: "丰富款式 多样呈现",
}, },
{ {
id: 4, id: 4,
imgUrl: require("./assets/order04.png"), url:'/shopping/news',
// imgUrl: require("./assets/order04.png"),
iconClass:'iconfont icon-bijijilu',
title: "关于我们", title: "关于我们",
desc: "丰富款式 多样呈现", desc: "丰富款式 多样呈现",
}, },
@ -245,7 +265,7 @@
id: 1, id: 1,
imgUrl: require("./assets/cloth01.png"), imgUrl: require("./assets/cloth01.png"),
title1: "西装定制", title1: "西装定制",
title2: "立领高端西装", title2: "立领高端西装立领高端西装立领高端西装",
price: "1xx0.00", price: "1xx0.00",
}, },
{ {
@ -608,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>
@ -730,15 +758,28 @@
.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 i{
font-size: 100px;
color: #746957;
}
.section2 .itemDiv .item a:hover i{
color: #fff;
}
.section2 .itemDiv .item a:hover .title_3,.section2 .itemDiv .item a:hover .title_4{
color: #746957;
}
.section2 .itemDiv .item a:hover{
background: #EEE6D9; background: #EEE6D9;
border: 1px dashed #919190; border: 1px dashed #919190;
} }
@ -776,6 +817,9 @@
} }
.section3 .itemDiv .item .titleDiv { .section3 .itemDiv .item .titleDiv {
font-size: 30px; font-size: 30px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
.section3 .itemDiv .item .titleDiv span { .section3 .itemDiv .item .titleDiv span {
margin-left: 10px; margin-left: 10px;
@ -835,9 +879,13 @@
} }
.section5 .tabs .jz .item p { .section5 .tabs .jz .item p {
width: 100%; width: 100%;
box-sizing: border-box;
text-overflow: ellipsis;
padding-left: 28px; padding-left: 28px;
padding-right: 28px; padding-right: 28px;
box-sizing: border-box; overflow: hidden;
text-align: left;
white-space: nowrap;
} }
.section5 .tabs .jz .item p .line { .section5 .tabs .jz .item p .line {
margin-left: 8px; margin-left: 8px;

Loading…
Cancel
Save