|
@@ -0,0 +1,213 @@
|
|
|
+<template>
|
|
|
+ <div class="home">
|
|
|
+ <van-swipe :autoplay="2000" class="top">
|
|
|
+ <van-swipe-item v-for="(image, index) in images" :key="index">
|
|
|
+ <img v-lazy="image" />
|
|
|
+ </van-swipe-item>
|
|
|
+ </van-swipe>
|
|
|
+
|
|
|
+ <div class="advantage">
|
|
|
+ <div class="columnTitle">
|
|
|
+ <div class="tit">本草银耳特点</div>
|
|
|
+ <div class="en">BRAND ADVANTAGE</div>
|
|
|
+ </div>
|
|
|
+ <div class="wrap">
|
|
|
+ <a
|
|
|
+ href="javascript:void(0);"
|
|
|
+ class="picturebox"
|
|
|
+ v-for="(item, index) in picture"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
+ <div class="picture">
|
|
|
+ <img class="icon" :src="item.icon" />
|
|
|
+ <img class="pic" :src="item.pic" />
|
|
|
+ </div>
|
|
|
+ <div class="p1">{{ item.p1 }}</div>
|
|
|
+ <div class="p2">{{ item.p2 }}</div>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <van-swipe :autoplay="2000" class="top">
|
|
|
+ <van-swipe-item v-for="(image, index) in images" :key="index">
|
|
|
+ <img v-lazy="image" />
|
|
|
+ </van-swipe-item>
|
|
|
+ </van-swipe>
|
|
|
+
|
|
|
+ <div class="bottom-box">
|
|
|
+ <div v-for="(item, index) in 10" :key="index" class="bottom">
|
|
|
+ <van-swipe :autoplay="2000" class="bottom-swipe">
|
|
|
+ <van-swipe-item v-for="(image, index) in images" :key="index">
|
|
|
+ <img v-lazy="image" />
|
|
|
+ </van-swipe-item>
|
|
|
+ </van-swipe>
|
|
|
+ <div class="conten an">
|
|
|
+ <h2 class="tit">南瓜小米本草银耳羹(冲泡即食)</h2>
|
|
|
+ <p>
|
|
|
+ 金燕耳本草银耳著名银耳专家研发,吃12种健康食材长大,胶质营养丰富,味甘、淡,性温,是适合每日滋养的耳中珍品。
|
|
|
+ </p>
|
|
|
+ <a
|
|
|
+ href="https://www.ijinyaner.com/donggan/94.html#aaa"
|
|
|
+ class="publicMore"
|
|
|
+ target="_blank"
|
|
|
+ >MORE</a
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import Vue from "vue";
|
|
|
+import { Lazyload } from "vant";
|
|
|
+
|
|
|
+Vue.use(Lazyload);
|
|
|
+export default {
|
|
|
+ name: "Home",
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ activeName: 'a',
|
|
|
+ images: [
|
|
|
+ "https://www.ijinyaner.com/uploadfile/2021/0114/20210114105511763.jpg",
|
|
|
+ "https://www.ijinyaner.com/uploadfile/2020/1030/20201030034302916.jpg",
|
|
|
+ "https://www.ijinyaner.com/uploadfile/2020/0820/20200820021337550.jpg",
|
|
|
+ "https://www.ijinyaner.com/uploadfile/2019/1213/20191213051007736.jpg"
|
|
|
+ ],
|
|
|
+ picture: [
|
|
|
+ {
|
|
|
+ icon:
|
|
|
+ "https://www.ijinyaner.com/uploadfile/2019/0419/20190419041602536.png",
|
|
|
+ pic:
|
|
|
+ "https://www.ijinyaner.com/uploadfile/2019/0419/20190419041557428.jpg",
|
|
|
+ p1: "十余种滋补中草药培植 胶质营养是燕窝的3倍",
|
|
|
+ p2:
|
|
|
+ "Cultivated by a dozen nourishing Chinese herbal medicines, its colloid nutrition is three times that of bird’s nest"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ icon:
|
|
|
+ "https://www.ijinyaner.com/uploadfile/2019/0419/20190419041602536.png",
|
|
|
+ pic:
|
|
|
+ "https://www.ijinyaner.com/uploadfile/2019/0419/20190419041557428.jpg",
|
|
|
+ p1: "十余种滋补中草药培植 胶质营养是燕窝的3倍",
|
|
|
+ p2:
|
|
|
+ "Cultivated by a dozen nourishing Chinese herbal medicines, its colloid nutrition is three times that of bird’s nest"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ icon:
|
|
|
+ "https://www.ijinyaner.com/uploadfile/2019/0419/20190419041602536.png",
|
|
|
+ pic:
|
|
|
+ "https://www.ijinyaner.com/uploadfile/2019/0419/20190419041557428.jpg",
|
|
|
+ p1: "十余种滋补中草药培植 胶质营养是燕窝的3倍",
|
|
|
+ p2:
|
|
|
+ "Cultivated by a dozen nourishing Chinese herbal medicines, its colloid nutrition is three times that of bird’s nest"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ icon:
|
|
|
+ "https://www.ijinyaner.com/uploadfile/2019/0419/20190419041602536.png",
|
|
|
+ pic:
|
|
|
+ "https://www.ijinyaner.com/uploadfile/2019/0419/20190419041557428.jpg",
|
|
|
+ p1: "十余种滋补中草药培植 胶质营养是燕窝的3倍",
|
|
|
+ p2:
|
|
|
+ "Cultivated by a dozen nourishing Chinese herbal medicines, its colloid nutrition is three times that of bird’s nest"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ };
|
|
|
+ },
|
|
|
+ components: {}
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.topimg {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 0 3vw;
|
|
|
+ img {
|
|
|
+ height: 7vh;
|
|
|
+ }
|
|
|
+}
|
|
|
+.bottom-box {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ .tit {
|
|
|
+ }
|
|
|
+ .publicMore {
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ padding: 5px;
|
|
|
+ border-radius: 10px;
|
|
|
+ color: #000;
|
|
|
+ background-color: #fff;
|
|
|
+ }
|
|
|
+}
|
|
|
+.bottom {
|
|
|
+ background-color: #f4f3f0;
|
|
|
+ border-radius: 10px;
|
|
|
+ padding: 10px;
|
|
|
+ margin: 10px;
|
|
|
+ width: 95vw;
|
|
|
+ max-width: 500px;
|
|
|
+ .conten {
|
|
|
+ .tit {
|
|
|
+ color: #000;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .bottom-swipe {
|
|
|
+ width: 95vw;
|
|
|
+ max-width: 500px;
|
|
|
+ height: 95vw;
|
|
|
+ max-height: 500px;
|
|
|
+ img {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.top {
|
|
|
+ width: 100vw;
|
|
|
+ height: 56.25vw;
|
|
|
+ background-color: #ccc;
|
|
|
+ img {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.advantage {
|
|
|
+ margin: 2vw 0;
|
|
|
+ .columnTitle {
|
|
|
+ .tit {
|
|
|
+ font-size: 7vw;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .wrap {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ .picturebox {
|
|
|
+ width: 43vw;
|
|
|
+ margin: 2vw 1vw;
|
|
|
+ color: #000;
|
|
|
+ .picture {
|
|
|
+ width: 100%;
|
|
|
+ position: relative;
|
|
|
+ .icon {
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
+ }
|
|
|
+ .pic {
|
|
|
+ width: 50%;
|
|
|
+ border-radius: 50%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .p1 {
|
|
|
+ margin: 2vw 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|