| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <!--index.wxml-->
- <!--pages/home/home.wxml-->
- <!-- <navbar back="{{false}}" title="{{company.companyName}}"></navbar> -->
- <block wx:if="{{!userInfo || !userInfo.userId}}">
- <swiper class="swiperNo" indicator-dots autoplay>
- <swiper-item wx:for="{{banner}}" wx:key="id">
- <image src="{{item}}" mode="widthFix"></image>
- </swiper-item>
- </swiper>
- <view class="businessTitle" wx:if="{{businessList.length > 0}}">OUR BUSINESS</view>
- <view class="business">
- <view class="businessItem" wx:for="{{businessList}}" wx:key="id">
- <image src="{{item.img}}" mode="aspectFit" />
- <view class="businessText">{{item.text}}</view>
- </view>
- </view>
- <view class="businessTitle businessTitle1" wx:if="{{contact.img}}">CONTACT US</view>
- <view class="contact" style="background: url({{contact.img}});background-size: 100%; background-repeat: no-repeat;" mode="aspectFill">{{contact.text}}</view>
- <navigator url="/pages/login/login" hover-class="none" class="login">LOG IN</navigator>
- <view style="height: 140rpx;"></view>
- </block>
- <block wx:else="">
- <view class="custom {{scrollTop > 0 ?'customBg':''}}" style="padding-top:{{topBarHeight}}px">
- <!-- <icon class="icon-small" type="search" size="30rpx"></icon> -->
- <!-- <view>啊实打实大师大</view> -->
- <image src="{{company.companyLogo}}" mode="heightFix" style="height: 60rpx;"></image>
- </view>
- <view class="page">
- <view wx:if="{{banner.length > 0}}">
- <swiper class="swiper" indicator-dots autoplay>
- <swiper-item wx:for="{{banner}}" wx:key="id">
- <image src="{{item}}" mode="widthFix"></image>
- </swiper-item>
- </swiper>
- </view>
- <navigator open-type="navigate" url="/pages/search/search" class="search">
- <input confirm-type="search" placeholder="搜索:产品名称/SKU/69码" />
- <icon class="icon-small" type="search" size="40rpx"></icon>
- </navigator>
- <swiper style="height: {{menuList[0] && menuList[0].length <= 5 ? '180rpx' : '300rpx'}};" indicator-dots>
- <swiper-item class="menu" wx:for="{{menuList}}" wx:for-item="itemList" wx:key="index">
- <!-- <view class="menu-item" bind:tap="onMenu">
- <image src="/images/5.png"></image>
- <view class="text text1">全部商品</view>
- </view> -->
- <view class="menu-item" wx:for="{{itemList}}" wx:key="id" data-item="{{item}}" bind:tap="onMenu">
- <image src="{{item.pic || '/images/menu.png'}}"></image>
- <view class="text text1">{{item.categoryName}}</view>
- </view>
- </swiper-item>
- </swiper>
- <view>
- <view class="floorTitle">正品好物推荐</view>
- <view class="goodsPanel">
- <view class="goodsQuery">
- <view class="queryItem iconfont shaixuan zonghe {{query.all ? 'ups' : ''}}" style="content: none !important;" data-param="" bind:tap="query">综合</view>
- <view class="queryItem bxdfont xiaoliang {{query.salesSort == false ? 'downs' : query.salesSort == true ? 'ups' : ''}}" data-param="salesSort" bind:tap="query">销量</view>
- <view class="queryItem bxdfont xiaoliang {{query.newProductSort == false ? 'downs' : query.newProductSort == true ? 'ups' : ''}}" data-param="newProductSort" bind:tap="query">新品</view>
- <view class="queryItem bxdfont xiaoliang {{query.priceSort == false ? 'downs' : query.priceSort == true ? 'ups' : ''}}" data-param="priceSort" bind:tap="query">价格</view>
- <view class="queryItem iconfont shaixuan {{query.shaixuan ? 'ups' : ''}}" bind:tap="shaixuan">筛选</view>
- </view>
- <view class="goodsList" style="clear: both;">
- <navigator url="/pages/goods/goods?prodId={{item.prodId}}" class="goods" wx:for="{{goodsList}}" wx:key="goodsId">
- <image src="{{item.picText}}"></image>
- <view class="name text2">{{item.prodName}}</view>
- <view class="bar">
- <view class="price">¥{{item.price}}</view>
- <view style="font-weight: 400;font-size: 18rpx;color: #A2A2A2;line-height: 40rpx;">
- <text>可供{{item.usableStocksTotal}}{{item.stockUnit || '件 '}}</text>
- <text wx:if="{{item.limitQty}}"> 限购数量{{item.limitQty}}{{item.stockUnit || '件'}}</text>
- </view>
- <!-- <navigator url="/pages/goods/goods?prodId={{item.prodId}}" hover-class="none" class="iconfont icon-shouyegouwuche icon"></navigator> -->
- </view>
- </navigator>
- <!-- <view class="goods" style="height: 200rpx;">
- </view> -->
- </view>
- </view>
- </view>
- <!-- <view style="height: 200rpx;"></view> -->
- <view class="goods" style="height: 200rpx;text-align: center;width: 100%;">
- <view wx:if="{{loadding}}" class="iconfont icon-loadding"></view>
- <view wx:elif="{{pages == null && goodsList.length == 0}}">
- <image class="listEmpty" src="/images/list-empty.png"></image>
- <view class="loadMore" style="margin-top: 20rpx;">啥记录也没有!</view>
- </view>
- <view wx:elif="{{current < pages}}" class="loadMore" catch:tap="getGoodsList">点击加载更多</view>
- <view wx:else="" class="noMore">--我也是有底线的--</view>
- </view>
- </view>
- <view class="dialogBg" bindtap="powerDrawer" wx:if="{{showDialog}}" catchtouchmove="stopScroll"></view>
- <view animation="{{animationData}}" class="drawer_attr_box" wx:if="{{showDialog}}">
- <view class="iconfont icon-guanbi" bindtap="powerDrawer"></view>
- <view class="draw_attr_title">全部条件</view>
- <view class="drawer_content" style="display: flex;flex-flow: column;max-height: 1000rpx;">
- <form class="shaixuanBox" catchsubmit="submitShaixuan" bindreset="submitShaixuanReset">
- <view class="shaixuanBoxTitle" wx:if="{{brandList.length > 0 }}">品牌:</view>
- <view class="shaixuanBoxBrand" wx:if="{{brandList.length > 0 }}">
- <view wx:for="{{brandList}}" wx:key="id" class="text1 {{item.check?'active':''}}" data-index="{{index}}" bind:tap="onBrand">{{item.name}}</view>
- </view>
- <view class="shaixuanBoxTitle">价格区间:</view>
- <view class="shaixuanBoxPrice">
- <input name="startPrice" value="{{query.startPrice}}" placeholder="0" />
- <input name="endPrice" value="{{query.endPrice}}" placeholder="100" />
- </view>
- <view class="shaixuanBoxBtn">
- <button form-type="reset">清空</button>
- <button form-type="submit">确定</button>
- </view>
- </form>
- </view>
- </view>
- </block>
- <tabbar></tabbar>
|