123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- <view class="container">
- <!-- 首页顶部通知消息 -->
- <van-notice-bar scrollable="true" text="正品打折,欲购从速,钜惠惊喜不断,不要错失良机,限时特惠,赶快下单哦!"/>
- <view class="HotName">今日推荐
- <text></text>
- </view>
- <view class="HotMark">限时特惠商品</view>
- <view class="HotSwiper" style="margin-top:{{windowHeight/45}}px">
- <swiper circular="true" autoplay="true" interval="6000" duration="500" previous-margin="{{windowWidth/3.8}}rpx" next-margin="{{windowWidth/3.8}}rpx">
- <block wx:for-items="{{hotGoods}}" wx:key="{{id}}">
- <navigator url="/pages/goods/goods?id={{item.id}}">
- <swiper-item>
- <view class="swiper-box">
- <view class='form_class'>
- <button formType="submit" class='form_button'>
- <image src="{{item.picUrl}}" mode="aspectFill" data-id="{{item.id}}" />
- </button>
- </view>
- <view class="swiper-box-info">
- <view class="name">{{item.name}}</view>
- <view class="price">
- <view class="counterPrice" wx:if="{{item.counterPrice > item.retailPrice}}">原价:¥{{item.counterPrice}}</view>
- <view class="retailPrice">现价:¥{{item.retailPrice}}</view>
- </view>
- <view class="capsule-tag" wx:if="{{item.isNew == true}}">
- <zan-capsule color="#a78845" leftText="N" rightText="新 品" />
- </view>
- <view class="capsule-tag" wx:if="{{item.counterPrice > item.retailPrice}}">
- <zan-capsule color="#b4282d" leftText="H" rightText="折 扣" />
- </view>
- </view>
- </view>
- </swiper-item>
- </navigator>
- </block>
- </swiper>
- </view>
- <view class="a-section a-groupon" wx:if="{{groupons.length > 0}}">
- <view class="h">
- <view class="title">
- <view>
- <navigator url="/pages/groupon/grouponList/grouponList">
- <text class="txt">优惠专区</text>
- </navigator>
- </view>
- </view>
- </view>
- <view class="b">
- <view class="item" wx:for="{{groupons}}" wx:for-index="index" wx:for-item="item" wx:key="id">
- <navigator url="/pages/goods/goods?id={{item.id}}">
- <image class="img" src="{{item.picUrl}}" background-size="cover"></image>
- <view class="right">
- <view class="text">
- <view class="header">
- <text class="name">{{item.name}}</text>
- <view class="capsule-tag">
- <zan-capsule color="#a78845" leftText="{{item.grouponMember}}人成团" rightText="立减{{item.grouponDiscount}}" />
- </view>
- </view>
- <text class="desc">{{item.brief}}</text>
- <view class="price">
- <view class="counterPrice">原价:¥{{item.retailPrice}}</view>
- <view class="retailPrice">团购价:¥{{item.grouponPrice}}</view>
- </view>
- </view>
- </view>
- </navigator>
- </view>
- </view>
- </view>
- <view class="a-section a-new" wx:if="{{newGoods.length > 0}}">
- <view class="h">
- <view class="title">
- <navigator url="../newGoods/newGoods">
- <text class="txt">新品首发</text>
- </navigator>
- </view>
- </view>
- <goodList goods="{{newGoods}}"></goodList>
- </view>
- <!-- <view class="a-section a-brand">
- <view class="h">
- <view class="title">
- <navigator url="../brand/brand">
- <text class="txt">品牌制造商直供</text>
- </navigator>
- </view>
- </view>
- <view class="b">
- <view class="item item-1" wx:for="{{brands}}" wx:key="id">
- <navigator url="/pages/brandDetail/brandDetail?id={{item.id}}">
- <view class="wrap">
- <image class="img" src="{{item.picUrl}}" mode="aspectFill"></image>
- <view class="mt">
- <text class="brand">{{item.name}}</text>
- </view>
- </view>
- </navigator>
- </view>
- </view>
- </view>
- <view class="good-grid" wx:for="{{floorGoods}}" wx:key="id">
- <navigator url="/pages/category/category?id={{item.id}}" class="more-a">
- <view class="h" wx:if="{{item.goodsList.length > 0}}">
- <text>{{item.name}}</text>
- </view>
- </navigator>
- <goodList goods="{{item.goodsList}}"></goodList>
- </view> -->
- <!-- <view class="a-section a-topic" wx:if="topics.length > 0">
- <view class="h">
- <view class="title">
- <navigator url="/pages/topic/topic">
- <text class="txt">专题精选</text>
- </navigator>
- </view>
- </view>
- <view class="b">
- <scroll-view scroll-x class="list">
- <view class="item" wx:for="{{topics}}" wx:for-index="index" wx:for-item="item" wx:key="id">
- <navigator url="../topicDetail/topicDetail?id={{item.id}}">
- <image class="img" src="{{item.picUrl}}" background-size="cover"></image>
- <view class="np">
- <text class="name">{{item.title}}</text>
- </view>
- <text class="desc">{{item.subtitle}}</text>
- </navigator>
- </view>
- </scroll-view>
- </view>
- </view> -->
- </view>
|