diff --git a/src/assets/aboutus.jpg b/src/assets/aboutus.jpg new file mode 100644 index 0000000..0227e8d Binary files /dev/null and b/src/assets/aboutus.jpg differ diff --git a/src/assets/contactus.jpg b/src/assets/contactus.jpg new file mode 100644 index 0000000..a25c7b4 Binary files /dev/null and b/src/assets/contactus.jpg differ diff --git a/src/assets/detailBgc.jpg b/src/assets/detailBgc.jpg new file mode 100644 index 0000000..bc5ebc5 Binary files /dev/null and b/src/assets/detailBgc.jpg differ diff --git a/src/assets/image_display.jpg b/src/assets/image_display.jpg new file mode 100644 index 0000000..2827118 Binary files /dev/null and b/src/assets/image_display.jpg differ diff --git a/src/assets/index/a1.jpg b/src/assets/index/a1.jpg new file mode 100644 index 0000000..4025674 Binary files /dev/null and b/src/assets/index/a1.jpg differ diff --git a/src/assets/index/a2.jpg b/src/assets/index/a2.jpg new file mode 100644 index 0000000..3c7c541 Binary files /dev/null and b/src/assets/index/a2.jpg differ diff --git a/src/assets/index/a3.jpg b/src/assets/index/a3.jpg new file mode 100644 index 0000000..38a3fbf Binary files /dev/null and b/src/assets/index/a3.jpg differ diff --git a/src/assets/index/b1.jpg b/src/assets/index/b1.jpg new file mode 100644 index 0000000..27bae99 Binary files /dev/null and b/src/assets/index/b1.jpg differ diff --git a/src/assets/index/ibg0.jpg b/src/assets/index/ibg0.jpg new file mode 100644 index 0000000..a926673 Binary files /dev/null and b/src/assets/index/ibg0.jpg differ diff --git a/src/assets/index/module2-1.png b/src/assets/index/module2-1.png new file mode 100644 index 0000000..c68dd15 Binary files /dev/null and b/src/assets/index/module2-1.png differ diff --git a/src/assets/index/module2-2.png b/src/assets/index/module2-2.png new file mode 100644 index 0000000..069f5bb Binary files /dev/null and b/src/assets/index/module2-2.png differ diff --git a/src/assets/index/module2-3.png b/src/assets/index/module2-3.png new file mode 100644 index 0000000..b152619 Binary files /dev/null and b/src/assets/index/module2-3.png differ diff --git a/src/assets/index/newsBgc.jpg b/src/assets/index/newsBgc.jpg new file mode 100644 index 0000000..40e4411 Binary files /dev/null and b/src/assets/index/newsBgc.jpg differ diff --git a/src/assets/index/product1.png b/src/assets/index/product1.png new file mode 100644 index 0000000..50999fd Binary files /dev/null and b/src/assets/index/product1.png differ diff --git a/src/assets/index/product2.jpg b/src/assets/index/product2.jpg new file mode 100644 index 0000000..7a4620b Binary files /dev/null and b/src/assets/index/product2.jpg differ diff --git a/src/assets/index/product3.jpg b/src/assets/index/product3.jpg new file mode 100644 index 0000000..a85354f Binary files /dev/null and b/src/assets/index/product3.jpg differ diff --git a/src/assets/index/product4.jpg b/src/assets/index/product4.jpg new file mode 100644 index 0000000..2451dc1 Binary files /dev/null and b/src/assets/index/product4.jpg differ diff --git a/src/assets/join.jpg b/src/assets/join.jpg new file mode 100644 index 0000000..ffa1e69 Binary files /dev/null and b/src/assets/join.jpg differ diff --git a/src/assets/news.jpg b/src/assets/news.jpg new file mode 100644 index 0000000..f4a8284 Binary files /dev/null and b/src/assets/news.jpg differ diff --git a/src/assets/qr1.jpg b/src/assets/qr1.jpg new file mode 100644 index 0000000..d5f1735 Binary files /dev/null and b/src/assets/qr1.jpg differ diff --git a/src/assets/qr2.jpg b/src/assets/qr2.jpg new file mode 100644 index 0000000..dc55a17 Binary files /dev/null and b/src/assets/qr2.jpg differ diff --git a/src/components/AboutUs.vue b/src/components/AboutUs.vue index dec91d8..5744ef7 100644 --- a/src/components/AboutUs.vue +++ b/src/components/AboutUs.vue @@ -52,7 +52,7 @@ export default { name: "AboutUs", data() { return { - aboutContent: '广东祥睿陶瓷有限公司,于2011年在中国佛山成立,在成立之初,产品精准定位于大理石品类,为设计师打造简奢风格提供瓷砖材料素材。专注于产品的研发,从整体空间应用方向进行单品的开发研究,获得国内外众多设计师的青睐与认可,海外亦有部分专卖店展示。', + aboutContent: '广东蒙彼利陶瓷有限公司,于2020年在中国佛山成立,在成立之初,产品精准定位于大理石品类,为设计师打造简奢风格提供瓷砖材料素材。专注于产品的研发,从整体空间应用方向进行单品的开发研究,获得国内外众多设计师的青睐与认可,海外亦有部分专卖店展示。', numList: [ { num: '2000', @@ -78,19 +78,19 @@ export default { imgTextList: [ { href: '', - src: 'http://www.yipengtaoci.com/upfiles/images/20181213/15446921627711241s.jpg', + src: require('../assets/index/a1.jpg'), boldText: 'Brand', enText: 'culture', cnTitle: '品牌文化' }, { href: '', - src: 'http://www.yipengtaoci.com/upfiles/images/20181213/15446922829529890s.jpg', + src: require('../assets/index/a2.jpg'), boldText: 'Enterprise', enText: 'viewpoint', cnTitle: '企业观点' }, { href: '', - src: 'http://www.yipengtaoci.com/upfiles/images/20181213/15446925925108442s.jpg', + src: require('../assets/index/a3.jpg'), boldText: 'corporate', enText: 'culture', cnTitle: '企业文化' diff --git a/src/components/FastFindProducts.vue b/src/components/FastFindProducts.vue index 6d3c906..5536228 100644 --- a/src/components/FastFindProducts.vue +++ b/src/components/FastFindProducts.vue @@ -26,175 +26,85 @@
- -
- -
-
+
+ + {{ childrenItem.name }} + +
+
+ + {{ childrenItem.title }} + +
diff --git a/src/components/NewsCenter.vue b/src/components/NewsCenter.vue index 5ddc487..8f71707 100644 --- a/src/components/NewsCenter.vue +++ b/src/components/NewsCenter.vue @@ -2,11 +2,9 @@
+
- - -
@@ -34,15 +32,15 @@
  • -
    {{ item.smy }}
    -
    发布时间:{{ item.dates }}
    +
    {{ item.synopsis }}
    +
    发布时间:{{ item.create_time }}
  • @@ -50,54 +48,43 @@
    - -
    diff --git a/src/views/news/detail.vue b/src/views/news/detail.vue index 322a232..0e61916 100644 --- a/src/views/news/detail.vue +++ b/src/views/news/detail.vue @@ -35,6 +35,10 @@ import {getArticleInfo} from "@/api"; export default { name: "detail", + props: { + newsId: Number, + classIndex: Number + }, data() { return { tabs_title: '公司新闻', @@ -42,7 +46,12 @@ export default { } }, mounted() { - getArticleInfo(6).then(res => { + if(this.classIndex==1){ + this.tabs_title='行业动态' + }else if(this.classIndex==2){ + this.tabs_title='瓷砖百科' + } + getArticleInfo(this.newsId).then(res => { this.htmlStr=res.data.articleinfo.content }); }, diff --git a/src/views/news/index.vue b/src/views/news/index.vue index a1e0316..7d29f67 100644 --- a/src/views/news/index.vue +++ b/src/views/news/index.vue @@ -2,18 +2,21 @@
    +
    - - - + + - + - + +
    + 暂时没有数据! +
    @@ -22,17 +25,21 @@ import Pagination from "@/components/Pagination"; import PicturesBox from "@/components/PicturesBox"; import ProductsTabsItem from "@/components/ProductsTabsItem"; import Detail from "@/views/news/detail"; +import {getArticleList} from "@/api"; export default { name: "index", components: {Detail, PicturesBox, Pagination, ProductsTabsItem}, data() { return { - showPagination:true, + page:1, + limit:10, + total:0, + newsId:6, + classIndex:0, showDetail:false, - company_news:true, - industry_dynamics:false, - ceramic:false, + showImage:true, + showPagination:true, newsTab: [ { title: '公司新闻', @@ -45,168 +52,59 @@ export default { name: 'third' }, ], - imageAndWord: [ - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20220728/16589788725259367s.jpg", - word: "【艺鹏·精品推介1】高级质感,构筑低奢至美的生活空间", - date: "2022.7.28" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20220707/16571639728388960s.jpg", - word: "EIP CERAMICS | 800x800通体大理石任意连纹,品味独特的艺术空间。", - date: "2022.7.7" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20220728/16589788725259367s.jpg", - word: "【艺鹏·精品推介1】高级质感,构筑低奢至美的生活空间", - date: "2022.7.28" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20220728/16589788725259367s.jpg", - word: "【艺鹏·精品推介1】高级质感,构筑低奢至美的生活空间", - date: "2022.7.28" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20220707/16571639728388960s.jpg", - word: "EIP CERAMICS | 800x800通体大理石任意连纹,品味独特的艺术空间。", - date: "2022.7.7" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20220707/16571639728388960s.jpg", - word: "EIP CERAMICS | 800x800通体大理石任意连纹,品味独特的艺术空间。", - date: "2022.7.7" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20220707/16571639728388960s.jpg", - word: "EIP CERAMICS | 800x800通体大理石任意连纹,品味独特的艺术空间。", - date: "2022.7.7" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20220707/16571639728388960s.jpg", - word: "EIP CERAMICS | 800x800通体大理石任意连纹,品味独特的艺术空间。", - date: "2022.7.7" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20220707/16571639728388960s.jpg", - word: "EIP CERAMICS | 800x800通体大理石任意连纹,品味独特的艺术空间。", - date: "2022.7.7" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20220707/16571639728388960s.jpg", - word: "EIP CERAMICS | 800x800通体大理石任意连纹,品味独特的艺术空间。", - date: "2022.7.7" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20220707/16571639728388960s.jpg", - word: "EIP CERAMICS | 800x800通体大理石任意连纹,品味独特的艺术空间。", - date: "2022.7.7" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20220707/16571639728388960s.jpg", - word: "EIP CERAMICS | 800x800通体大理石任意连纹,品味独特的艺术空间。", - date: "2022.7.7" - } - ], - industryList: [ - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20181214/15447712213262052s.jpg", - word: "陶卫企业面临成本挑战", - date: "2018.10.14" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20181214/15447712213262052s.jpg", - word: "陶卫企业面临成本挑战", - date: "2018.10.14" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20181214/15447712213262052s.jpg", - word: "陶卫企业面临成本挑战", - date: "2018.10.14" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20181214/15447712213262052s.jpg", - word: "陶卫企业面临成本挑战", - date: "2018.10.14" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20181214/15447712213262052s.jpg", - word: "陶卫企业面临成本挑战", - date: "2018.10.14" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20181214/15447712213262052s.jpg", - word: "陶卫企业面临成本挑战", - date: "2018.10.14" - }, - ], - ceramicList: [ - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20181214/15447713189934462s.jpg", - word: "陶瓷一线品牌需精选 升级你的空间质量", - date: "2018.10.14" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20181214/15447713189934462s.jpg", - word: "陶瓷一线品牌需精选 升级你的空间质量", - date: "2018.10.14" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20181214/15447713189934462s.jpg", - word: "陶瓷一线品牌需精选 升级你的空间质量", - date: "2018.10.14" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20181214/15447713189934462s.jpg", - word: "陶瓷一线品牌需精选 升级你的空间质量", - date: "2018.10.14" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20181214/15447713189934462s.jpg", - word: "陶瓷一线品牌需精选 升级你的空间质量", - date: "2018.10.14" - }, - { - imgUrl: "http://www.yipengtaoci.com/upfiles/images/20181214/15447713189934462s.jpg", - word: "陶瓷一线品牌需精选 升级你的空间质量", - date: "2018.10.14" - } - ] + imageAndWord: [], + showNull:false }; }, + mounted() { + this.getArticleList(5) + }, methods: { - handleClick(tab) { - // const company_news = document.getElementById('company_news'); - // const industry_dynamics = document.getElementById('industry_dynamics'); - // const ceramic = document.getElementById('ceramic'); - if (tab.index == 0) { - this.company_news=true - this.industry_dynamics=false - this.ceramic=false - this.showPagination=true - // company_news.style.display = "block" - // industry_dynamics.style.display = "none" - // ceramic.style.display = "none" - } else if (tab.index == 1) { - this.company_news=false - this.industry_dynamics=true - this.ceramic=false - this.showDetail=false + getNewsId(value){ + this.newsId=value + if(this.newsId!==0){ + this.showDetail=true this.showPagination=false - // company_news.style.display = "none" - // industry_dynamics.style.display = "block" - // ceramic.style.display = "none" - } else if (tab.index == 2) { - this.company_news=false - this.industry_dynamics=false - this.ceramic=true - this.showDetail=false - this.showPagination=false - // company_news.style.display = "none" - // industry_dynamics.style.display = "none" - // ceramic.style.display = "block" + this.showImage=false } }, - + //获取新闻列表 + getArticleList(classId,page,limit){ + getArticleList({ + classid: classId, + page: this.page, + limit: this.limit + }).then(res => { + this.total=res.data.count + this.imageAndWord = res.data.list; + if(res.data.list.length==0){ + this.showNull=true + } + }); + }, + handleClick(tab) { + this.showDetail=false + this.showImage=true + this.showPagination=true + this.classIndex=parseInt(tab.index) + if (tab.index == 0) { + this.getArticleList(5) + } else if (tab.index == 1) { + this.getArticleList(6) + } else if (tab.index == 2) { + this.getArticleList(7) + } + }, + //新闻分页 + handleChangePage(value){ + if(this.classIndex==0){ + this.getArticleList(5,value,this.limit) + }else if (this.classIndex == 1) { + this.getArticleList(6,value,this.limit) + } else if (this.classIndex == 2) { + this.getArticleList(7,value,this.limit) + } + } } } @@ -215,7 +113,12 @@ export default { * { font: 14px/1.8 "微软正黑体", "Microsoft JhengHei", "Microsoft Yahei", "微软雅黑", "Hiragino Sans GB", "冬青黑体", "Arial", "Helvetica", "SimHei", "黑体", "STXihei", "华文细黑", sans-serif; } - +.nullData{ + display: block; + height: 300px; + line-height: 300px; + text-align: center; +} #industry_dynamics { display: none; } @@ -242,11 +145,12 @@ export default { .news_bg { - background-image: url("http://www.yipengtaoci.com/upfiles/images/20181215/15448384274864820.jpg"); - width: 100%; height: 360px; - background-repeat: no-repeat; - background-position: center center; + img{ + width: 100%; + height: 360px; + object-fit: cover; + } } .list2 { diff --git a/src/views/productsCenter/detail.vue b/src/views/productsCenter/detail.vue index 4126514..3f4bc53 100644 --- a/src/views/productsCenter/detail.vue +++ b/src/views/productsCenter/detail.vue @@ -1,7 +1,7 @@