123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- <!--index.wxml-->
- <view class="container">
- <view class="search">
- <navigator url="/pages/search/search" class="input">
- <image class="icon"></image>
- <text class="txt">商品搜索, 共{{goodsCount}}款好物</text>
- </navigator>
- </view>
- <swiper class="banner" indicator-dots="true" autoplay="true" interval="3000" duration="1000">
- <swiper-item wx:for="{{banner}}" wx:key="{{item.id}}">
- <navigator url="{{item.link}}">
- <image src="{{item.image_url}}" background-size="cover"></image>
- </navigator>
- </swiper-item>
- </swiper>
- <view class="m-menu">
- <navigator class="item" url="{{item.url}}" wx:for="{{channel}}" wx:key="{{item.id}}">
- <image src="{{item.icon_url}}" background-size="cover"></image>
- <text>{{item.name}}</text>
- </navigator>
- </view>
- <view class="a-section a-brand">
- <view class="h">
- <navigator url="../brand/brand">
- <text class="txt">品牌制造商直供</text>
- </navigator>
- </view>
- <view class="b">
- <view class="item item-1" wx:for="{{brand}}" wx:key="item.id">
- <navigator url="/pages/brandDetail/brandDetail?id={{item.id}}">
- <view class="wrap">
- <image class="img" src="{{item.new_pic_url}}" mode="aspectFill"></image>
- <view class="mt">
- <text class="brand">{{item.name}}</text>
- <text class="price">{{item.floor_price}}</text>
- <text class="unit">元起</text>
- </view>
- </view>
- </navigator>
- </view>
- </view>
- </view>
- <view class="a-section a-new" wx:if="{{newGoods.length > 0}}">
- <view class="h">
- <view>
- <navigator url="../newGoods/newGoods">
- <text class="txt">周一周四 · 新品首发</text>
- </navigator>
- </view>
- </view>
- <view class="b">
- <view class="item" wx:for="{{newGoods}}" wx:for-index="index" wx:for-item="item" wx:key="{{item.id}}">
- <navigator url="../goods/goods?id={{item.id}}">
- <image class="img" src="{{item.list_pic_url}}" background-size="cover"></image>
- <text class="name">{{item.name}}</text>
- <text class="price">¥{{item.retail_price}}</text>
- </navigator>
- </view>
- </view>
- </view>
- <view class="a-section a-popular" wx:if="{{hotGoods.length > 0}}">
- <view class="h">
- <view>
- <navigator url="../hotGoods/hotGoods">
- <text class="txt">人气推荐</text>
- </navigator>
- </view>
- </view>
- <view class="b">
- <view class="item" wx:for="{{hotGoods}}" wx:for-index="index" wx:for-item="item" wx:key="{{item.id}}">
- <navigator url="/pages/goods/goods?id={{item.id}}">
- <image class="img" src="{{item.list_pic_url}}" background-size="cover"></image>
- <view class="right">
- <view class="text">
- <text class="name">{{item.name}}</text>
- <text class="desc">{{item.goods_brief}}</text>
- <text class="price">¥{{item.retail_price}}</text>
- </view>
- </view>
- </navigator>
- </view>
- </view>
- </view>
- <view class="a-section a-topic" wx:if="topics.length > 0">
- <view class="h">
- <view>
- <navigator url="../topic/topic" open-type="switchTab">
- <text class="txt">专题精选</text>
- </navigator>
- </view>
- </view>
- <view class="b">
- <scroll-view scroll-x="true" class="list">
- <view class="item" wx:for="{{topics}}" wx:for-index="index" wx:for-item="item" wx:key="{{item.id}}">
- <navigator url="../topicDetail/topicDetail?id={{item.id}}">
- <image class="img" src="{{item.scene_pic_url}}" background-size="cover"></image>
- <view class="np">
- <text class="name">{{item.title}}</text>
- <text class="price">¥{{item.price_info}}元起</text>
- </view>
- <text class="desc">{{item.subtitle}}</text>
- </navigator>
- </view>
- </scroll-view>
- </view>
- </view>
- <view class="good-grid" wx:for="{{floorGoods}}" wx:key="{{item.id}}">
- <view class="h">
- <view>
- <text>{{item.name}}</text>
- </view>
- </view>
- <view class="b">
- <block wx:for="{{item.goodsList}}" wx:for-index="iindex" wx:for-item="iitem" wx:key="{{iitem.id}}">
- <navigator url="../goods/goods?id={{iitem.id}}" class="item">
- <image class="img" src="{{iitem.list_pic_url}}" background-size="cover"></image>
- <view class="name">{{iitem.name}}</view>
- <view class="price">¥{{iitem.retail_price}}</view>
- </navigator>
- </block>
- </view>
- </view>
- </view>
|