123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597 |
- <!-- 首页 -->
- <template>
- <view class="wrap">
- <view class="header">
- <view class="header-top">
- <view class="header-left">
- <image src="../../static/logo.jpeg" mode="widthFix"></image>
- <view class="header-left-column">
- <text>药食同源</text>
- <text>康养食品</text>
- </view>
- </view>
- <view class="headr-title">
- <image src="../../static/index-title.png" mode="widthFix"></image>
- </view>
- <view class="header-right">
- <button type="default">
- <image src="../../static/head-icon1.png" mode="widthFix"></image>
- </button>
- <button type="default">
- <image src="../../static/head-icon2.png" mode="widthFix"></image>
- </button>
- </view>
- </view>
- <view class="header-bottom">
- <view class="location-row">
- <image src="../../static/location-1.png" class="location-icon" mode="widthFix"></image>
- 嘉兴
- </view>
- <view class="search-bar">
- <image src="../../static/search-icon.png" mode="" class="search-icon"></image>
- <input type="text" value="" placeholder="西藏冬虫夏草 大红袍" placeholder-class="placeholder"
- class="search-input" />
- <button type="default" class="search-btn">搜索</button>
- </view>
- </view>
- </view>
- <view class="padding-box">
- <view class="swiper-box">
- <swiper class="swiper" indicator-dots="true" indicator-color="#F2F2F2" indicator-active-color="#F2501A"
- :circular="true" autoplay="true" interval="3000" duration="500">
- <swiper-item v-for="(item,index) in swiperList" :key="index">
- <view class="swiper-item">
- <image :src="item" class="banner-img" mode="aspectFill" />
- </view>
- </swiper-item>
- </swiper>
- </view>
- <view class="notice-box">
- <uni-notice-bar class="my-notice-bar" :scrollable="true" :speed="50" :single="true" :text="message">
- </uni-notice-bar>
- <image src="../../static/message.png" class="notice-icon" mode=""></image>
- </view>
- <view class="menu-list">
- <view class="menu-item">
- <image src="../../static/index-menu1.png" mode="heightFix"></image>
- 养五脏
- </view>
- <view class="menu-item">
- <image src="../../static/index-menu2.png" mode="heightFix"></image>
- 调六腑
- </view>
- <view class="menu-item">
- <image src="../../static/index-menu3.png" mode="heightFix"></image>
- 健五官
- </view>
- <view class="menu-item">
- <image src="../../static/index-menu4.png" mode="heightFix"></image>
- 通经络
- </view>
- <view class="menu-item">
- <image src="../../static/index-menu5.png" mode="heightFix"></image>
- 强筋骨
- </view>
- <view class="menu-item">
- <image src="../../static/index-menu6.png" mode="heightFix"></image>
- 提免疫
- </view>
- <view class="menu-item">
- <image src="../../static/index-menu7.png" mode="heightFix"></image>
- 均营养
- </view>
- <view class="menu-item">
- <image src="../../static/index-menu8.png" mode="heightFix"></image>
- 促健康
- </view>
- <view class="menu-item">
- <image src="../../static/index-menu9.png" mode="heightFix"></image>
- 舒压力
- </view>
- <view class="menu-item">
- <image src="../../static/index-menu10.png" mode="heightFix"></image>
- 增颜值
- </view>
- </view>
- <scroll-view scroll-x="true" class="recommend-box">
- <view class="recommend-item">
- <view class="recommend-item-column">
- <text>品质良作</text>
- <text>区域环境</text>
- </view>
- <image src="../../static/img-1.png" class="recommend-item-img" mode="widthFix"></image>
- </view>
- <view class="recommend-item">
- <view class="recommend-item-column">
- <text>时令良作</text>
- <text>优质品种</text>
- </view>
- <image src="../../static/img-2.png" class="recommend-item-img" mode="widthFix"></image>
- </view>
- <view class="recommend-item">
- <view class="recommend-item-column">
- <text>膳食良作</text>
- <text>千年传承</text>
- </view>
- <image src="../../static/img-3.png" class="recommend-item-img" mode="widthFix"></image>
- </view>
- </scroll-view>
- <view class="swiper-box">
- <swiper class="swiper" indicator-dots="true" indicator-color="#F2F2F2" indicator-active-color="#F2501A"
- :circular="true" autoplay="true" interval="2500" duration="500">
- <swiper-item v-for="(item,index) in swiperList2" :key="index">
- <view class="swiper-item">
- <image :src="item" class="banner-img" mode="aspectFill" />
- </view>
- </swiper-item>
- </swiper>
- </view>
- <view class="tag-box">
- <view class="tag-list">
- <view class="tag-item">
- # 经常熬夜该吃的食物
- </view>
- <view class="tag-item">
- # 经常熬夜该吃的食物
- </view>
- <view class="tag-item">
- # 经常熬夜该吃的食物
- </view>
- <view class="tag-item">
- # 经常熬夜该吃的食物
- </view>
- </view>
- <view class="refresh-row">
- <image src="../../static/refresh-icon.png" mode=""></image>
- 换一批
- </view>
- </view>
- <view class="classification-module-box">
- <view class="classification-module">
- <view class="classification-module-top">
- <view class="classification-module-name">亚健康汇</view>
- </view>
- <view class="classification-module-msg">今日狂补·口碑爆款</view>
- <view class="classification-list">
- <view class="classification-item">
- <image src="../../static/index-menu1.png" class="classification-item-img" mode="heightFix">
- </image>
- 新鲜奶莓
- </view>
- <view class="classification-item">
- <image src="../../static/index-menu8.png" class="classification-item-img" mode="heightFix">
- </image>
- 烟台苹果
- </view>
- </view>
- </view>
- <view class="classification-module">
- <view class="classification-module-top">
- <view class="classification-module-name">礼品心选</view>
- <view class="classification-module-tag">
- <image src="../../static/tag-icon1.png" mode="widthFix"></image>
- 用心挑选
- </view>
- </view>
- <view class="classification-module-msg">送家人·送爸妈</view>
- <view class="classification-list">
- <view class="classification-item">
- <image src="../../static/index-menu10.png" class="classification-item-img" mode="heightFix">
- </image>
- 新鲜奶莓
- </view>
- <view class="classification-item">
- <image src="../../static/index-menu2.png" class="classification-item-img" mode="heightFix">
- </image>
- 烟台苹果
- </view>
- </view>
- </view>
- <view class="classification-module">
- <view class="classification-module-top">
- <view class="classification-module-name">促销精选</view>
- <view class="classification-module-tag">
- <image src="../../static/tag-icon2.png" mode="widthFix"></image>
- 限时折扣
- </view>
- </view>
- <view class="classification-module-msg">精品促销·优惠不断</view>
- <view class="classification-list">
- <view class="classification-item">
- <image src="../../static/index-menu6.png" class="classification-item-img" mode="heightFix">
- </image>
- <view class="classification-item-bottom">
- <text class="classification-item-price">¥34.00</text>
- <button type="default" class="add-btn">
- <image src="../../static/add-icon.png" mode=""></image>
- </button>
- </view>
- </view>
- <view class="classification-item">
- <image src="../../static/index-menu5.png" class="classification-item-img" mode="heightFix">
- </image>
- <view class="classification-item-bottom">
- <text class="classification-item-price">¥34.00</text>
- <button type="default" class="add-btn">
- <image src="../../static/add-icon.png" mode=""></image>
- </button>
- </view>
- </view>
- </view>
- </view>
- <view class="classification-module">
- <view class="classification-module-top">
- <view class="classification-module-name">限源预售</view>
- </view>
- <view class="classification-module-msg">精彩预售·抢不停</view>
- <view class="classification-list">
- <view class="classification-item">
- <image src="../../static/index-menu4.png" class="classification-item-img" mode="heightFix">
- </image>
- <view class="classification-item-bottom">
- <text class="classification-item-price">¥34.00</text>
- <button type="default" class="add-btn">
- <image src="../../static/add-icon.png" mode=""></image>
- </button>
- </view>
- </view>
- <view class="classification-item">
- <image src="../../static/index-menu3.png" class="classification-item-img" mode="heightFix">
- </image>
- <view class="classification-item-bottom">
- <text class="classification-item-price">¥34.00</text>
- <button type="default" class="add-btn">
- <image src="../../static/add-icon.png" mode=""></image>
- </button>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="seasonal-nutrition-box">
- <view class="seasonal-nutrition-top">
- <view class="seasonal-nutrition-top-left">
- <view class="seasonal-nutrition-top-name">
- 时令营养
- </view>
- <view class="seasonal-nutrition-top-msg">
- 滋补免疫推荐
- </view>
- </view>
- <button type="default" class="all-btn">全部</button>
- </view>
- <view class="swiper-box-product">
- <swiper class="swiper-product" indicator-dots="true" indicator-color="#F2F2F2"
- indicator-active-color="#F2501A" :circular="true" interval="3000" duration="500">
- <swiper-item>
- <view class="swiper-item-product">
- <view class="swiper-item-product-item">
- <image src="../../static/img-4.png" class="swiper-item-product-item-img"
- mode="aspectFill"></image>
- <view class="swiper-item-product-item-name">
- 补气养阴
- </view>
- <view class="swiper-item-product-item-msg">
- 杞里香枸杞子宁夏特级500g
- </view>
- <view class="swiper-item-product-item-bottom">
- <view class="swiper-item-product-item-price">
- ¥394.00
- </view>
- <view class="swiper-item-product-item-delprice">
- ¥34.00
- </view>
- </view>
- </view>
- <view class="swiper-item-product-item">
- <image src="../../static/img-4.png" class="swiper-item-product-item-img"
- mode="aspectFill"></image>
- <view class="swiper-item-product-item-name">
- 补气养阴
- </view>
- <view class="swiper-item-product-item-msg">
- 杞里香枸杞子宁夏特级500g
- </view>
- <view class="swiper-item-product-item-bottom">
- <view class="swiper-item-product-item-price">
- ¥394.00
- </view>
- <view class="swiper-item-product-item-delprice">
- ¥34.00
- </view>
- </view>
- </view>
- <view class="swiper-item-product-item">
- <image src="../../static/img-4.png" class="swiper-item-product-item-img"
- mode="aspectFill"></image>
- <view class="swiper-item-product-item-name">
- 补气养阴
- </view>
- <view class="swiper-item-product-item-msg">
- 杞里香枸杞子宁夏特级500g
- </view>
- <view class="swiper-item-product-item-bottom">
- <view class="swiper-item-product-item-price">
- ¥394.00
- </view>
- <view class="swiper-item-product-item-delprice">
- ¥34.00
- </view>
- </view>
- </view>
- </view>
- </swiper-item>
- <swiper-item>
- <view class="swiper-item-product">
- <view class="swiper-item-product-item">
- <image src="../../static/img-4.png" class="swiper-item-product-item-img"
- mode="aspectFill"></image>
- <view class="swiper-item-product-item-name">
- 补气养阴
- </view>
- <view class="swiper-item-product-item-msg">
- 杞里香枸杞子宁夏特级500g
- </view>
- <view class="swiper-item-product-item-bottom">
- <view class="swiper-item-product-item-price">
- ¥394.00
- </view>
- <view class="swiper-item-product-item-delprice">
- ¥34.00
- </view>
- </view>
- </view>
- <view class="swiper-item-product-item">
- <image src="../../static/img-4.png" class="swiper-item-product-item-img"
- mode="aspectFill"></image>
- <view class="swiper-item-product-item-name">
- 补气养阴
- </view>
- <view class="swiper-item-product-item-msg">
- 杞里香枸杞子宁夏特级500g
- </view>
- <view class="swiper-item-product-item-bottom">
- <view class="swiper-item-product-item-price">
- ¥394.00
- </view>
- <view class="swiper-item-product-item-delprice">
- ¥34.00
- </view>
- </view>
- </view>
- <view class="swiper-item-product-item">
- <image src="../../static/img-4.png" class="swiper-item-product-item-img"
- mode="aspectFill"></image>
- <view class="swiper-item-product-item-name">
- 补气养阴
- </view>
- <view class="swiper-item-product-item-msg">
- 杞里香枸杞子宁夏特级500g
- </view>
- <view class="swiper-item-product-item-bottom">
- <view class="swiper-item-product-item-price">
- ¥394.00
- </view>
- <view class="swiper-item-product-item-delprice">
- ¥34.00
- </view>
- </view>
- </view>
- </view>
- </swiper-item>
- </swiper>
- </view>
- </view>
- <view class="seasonal-health-box">
- <view class="seasonal-health-top">
- <view class="seasonal-health-top-left">
- <view class="seasonal-health-top-name">
- 时令健康
- </view>
- <view class="seasonal-health-top-msg">
- 养生食品推荐
- </view>
- </view>
- <image src="../../static/bg-4.png" class="seasonal-health-top-bg" mode="heightFix"></image>
- <button type="default" class="seasonal-health-all-btn">全部</button>
- </view>
- <view class="seasonal-health-list">
- <view class="seasonal-health-item">
- <image src="../../static/img-4.png" class="seasonal-health-item-img" mode="aspectFill"></image>
- <view class="seasonal-health-item-name">
- 健脾除湿
- </view>
- </view>
- <view class="seasonal-health-item">
- <image src="../../static/img-4.png" class="seasonal-health-item-img" mode="aspectFill"></image>
- <view class="seasonal-health-item-name">
- 排寒利尿
- </view>
- </view>
- <view class="seasonal-health-item">
- <image src="../../static/img-4.png" class="seasonal-health-item-img" mode="aspectFill"></image>
- <view class="seasonal-health-item-name">
- 平肝和胃
- </view>
- </view>
- </view>
- </view>
- <view class="logo-box">
- <image src="../../static/banner-4.png" mode="widthFix"></image>
- </view>
- <view class="product-bottom">
- <scroll-view scroll-x="true" class="tab-list">
- <view :class="{ 'active' : isActive === index }" class="child" v-for="(item,index) in navList"
- :key="index" @click="checked(index)">
- <view class="child-column">
- <view class="child-column-name">{{item.title}}</view>
- <view class="child-column-msg">
- <text>{{item.msg}}</text>
- <image src="../../static/border.png" class="border-img" mode="widthFix"></image>
- </view>
- </view>
- </view>
- </scroll-view>
- <view class="product-list">
- <view class="product-item">
- <view class="product-item-column">
- <image src="../../static/img-4.png" class="product-item-column-img" mode="aspectFill"></image>
- <view class="product-item-column-bottom">
- <view class="product-item-column-name">产地直销</view>
- <view class="product-item-column-tag">
- <text>当日热卖榜</text>
- <text>好货闭眼抢</text>
- </view>
- <button type="default" class="product-item-column-btn">立即抢购<image src="../../static/back-icon.png" mode="widthFix"></image></button>
- </view>
- </view>
- </view>
- <view class="product-item">
- <view class="product-item-column2">
- <image src="../../static/img-4.png" class="product-item-column2-img" mode="aspectFill"></image>
- <view class="product-item-column2-bottom">
- <view class="product-item-column-name2">冻干柠檬片 蜂蜜柠檬茶 保留鲜度96% 美白神器</view>
- <view class="product-item-column2-row-between">
- <view class="product-item-column2-price">
- ¥394.00
- <text>¥34.00</text>
- </view>
- <button type="default" class="product-item-column2-btn">
- <image src="../../static/add-icon.png" mode=""></image>
- </button>
- </view>
- </view>
- </view>
- </view>
- <view class="product-item">
- <view class="product-item-column">
- <image src="../../static/img-4.png" class="product-item-column-img" mode="aspectFill"></image>
- <view class="product-item-column-bottom">
- <view class="product-item-column-name">产地直销</view>
- <view class="product-item-column-tag">
- <text>当日热卖榜</text>
- <text>好货闭眼抢</text>
- </view>
- <button type="default" class="product-item-column-btn">立即抢购<image src="../../static/back-icon.png" mode="widthFix"></image></button>
- </view>
- </view>
- </view>
- <view class="product-item">
- <view class="product-item-column">
- <image src="../../static/img-4.png" class="product-item-column-img" mode="aspectFill"></image>
- <view class="product-item-column-bottom">
- <view class="product-item-column-name">产地直销</view>
- <view class="product-item-column-tag">
- <text>当日热卖榜</text>
- <text>好货闭眼抢</text>
- </view>
- <button type="default" class="product-item-column-btn">立即抢购<image src="../../static/back-icon.png" mode="widthFix"></image></button>
- </view>
- </view>
- </view>
- <view class="product-item">
- <view class="product-item-column2">
- <image src="../../static/img-4.png" class="product-item-column2-img" mode="aspectFill"></image>
- <view class="product-item-column2-bottom">
- <view class="product-item-column-name2">冻干柠檬片 蜂蜜柠檬茶 保留鲜度96% 美白神器</view>
- <view class="product-item-column2-row-between">
- <view class="product-item-column2-price">
- ¥394.00
- <text>¥34.00</text>
- </view>
- <button type="default" class="product-item-column2-btn">
- <image src="../../static/add-icon.png" mode=""></image>
- </button>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
-
- </view>
- </view>
- </template>
- <script>
- import UniNoticeBar from '../../components/uni-notice-bar/uni-notice-bar.vue';
- export default {
- components: {
- UniNoticeBar,
- },
- data() {
- return {
- //轮播
- swiperList: [
- '../../static/banner-2.png',
- '../../static/banner-2.png',
- '../../static/banner-2.png'
- ],
- //轮播2
- swiperList2: [
- '../../static/banner-3.png',
- '../../static/banner-3.png',
- '../../static/banner-3.png'
- ],
- //公告
- message: '最先上市:西藏冬虫夏草 云南白药 青海牦牛肉',
- //选项卡
- isActive: 3,
- navList: [{
- index: 0,
- title: '精选',
- msg: '为您推荐'
- }, {
- index: 1,
- title: "养生",
- msg: '推荐养生'
- }, {
- index: 2,
- title: "滋补",
- msg: '滋补清肝'
- }, {
- index: 3,
- title: "养颜",
- msg: '补气养颜'
- }]
- }
- },
- onLoad() {
- },
- onReady() {
- let animation = uni.createAnimation({
- transformOrigin: "50% 50%",
- duration: 900,
- timingFunction: "linear",
- delay: 0
- })
- this.animation = animation;
- },
- methods: {
- checked(index) {
- this.isActive = index
- },
- }
- }
- </script>
- <style scoped lang="scss">
- @import "./index.css";
- </style>
|