123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- <view class="container">
- <view class="cart-panel" wx:if="{{footCart.goodsCount>0}}">
- <view class="cart-icon">
- <navigator class="nav-cell" open-type='switchTab' url="/pages/cart/cart">
- <image src="../../static/images/cart-fixed.png">
- </image>
- </navigator>
- <view class="cart-num">{{footCart.goodsCount}}</view>
- </view>
- <view class="cart-body">¥{{footCart.checkedGoodsAmount}}</view>
- <navigator class="nav-cell" open-type='switchTab' url="/pages/cart/cart">
- <view class="cart-pay">去结算 > </view>
- </navigator>
- </view>
- <view wx:if="{{showNavList}}" class="modal-wrap"></view>
- <view class="fast-nav">
- <contact-button wx:if="{{!showNavList}}" class="contact" size="25" type="primary" session-from="weapp">
- <text>找客服</text>
- </contact-button>
- <view wx:if="{{!showNavList}}" class="nav" bindtap="toggleNav">
- <text>快捷</text>
- <text>导航</text>
- </view>
- <view class="nav-list" wx:if="{{showNavList}}">
- <view class="nav-item">
- <text class="nav-text">首页</text>
- <view class="nav-cell" bindtap="switchNav" data-name="index">
- <image src="../../static/images/nav-1.png"></image>
- </view>
- </view>
- <view class="nav-item">
- <text class="nav-text">足迹</text>
- <navigator class="nav-cell" url="../ucenter/footprint/footprint">
- <image src="../../static/images/nav-2.png"></image>
- </navigator>
- </view>
- <view class="nav-item">
- <text class="nav-text">搜索</text>
- <navigator class="nav-cell" url="../search/search">
- <image src="../../static/images/nav-3.png"></image>
- </navigator>
- </view>
- <view class="nav-item">
- <text class="nav-text">购物车</text>
- <view class="nav-cell" bindtap="switchNav" data-name="cart">
- <image src="../../static/images/nav-4.png"></image>
- </view>
- </view>
- </view>
- <view wx:if="{{showNavList}}" class="close" bindtap="toggleNav">X</view>
- </view>
- <view class="search">
- <navigator url="/pages/search/search" class="input">
- <image class="icon"></image>
- <text class="txt">商品搜索, 共{{goodsCount}}款好物</text>
- </navigator>
- </view>
- <view class="activity">
- <view class="activity-box">
- <view class="item {{goodsBizType == '00' ? 'active' : ''}}" bindtap="openSortFilter" id="defaultActivity">
- <text class="txt">保税仓</text>
- </view>
- <!-- <view class="item by-sell {{goodsBizType == '02' ? 'active' : ''}}" bindtap="openSortFilter" id="discountActivity">
- <text class="txt">保税展示</text>
- </view>
- <view class="item by-price {{goodsBizType == '10' ? 'active' : ''}}" bindtap="openSortFilter" id="groupActivity">
- <text class="txt">现场速递</text>
- </view> -->
- <view class="item by-price {{goodsBizType == '11' ? 'active' : ''}}" bindtap="openSortFilter" id="ordActivity">
- <text class="txt">普通商品</text>
- </view>
- </view>
- </view>
- <view class="catalog">
- <scroll-view class="nav" scroll-y="true">
- <view class="item {{ currentCategory.id == item.id ? 'active' : ''}}" wx:for="{{navList}}" data-id="{{item.id}}" data-index="{{index}}" bindtap="switchCate" wx:key="{{index}}">{{item.name}}</view>
- <!-- <view class="contact">
- <button open-type="contact" size="20" session-from="weapp">
- </button>
- </view> -->
- </scroll-view>
- <scroll-view class="cate" scroll-y="true" bindscrolltolower='onLoaderMoreMovies'>
- <view class="banner">
- <image lazy-load="true" class="image" wx:if="{{currentCategory.wap_banner_url}}" src="{{currentCategory.wap_banner_url}}?x-oss-process=image/resize,h_500"></image>
- <view class="txt">{{currentCategory.front_name?currentCategory.front_name:""}}</view>
- </view>
- <view class="hd" wx:if="{{currentCategory}}">
- <text class="line"></text>
- <text class="txt">{{currentCategory.name?currentCategory.name:""}}分类</text>
- <text class="line"></text>
- </view>
- <view class="bd">
- <navigator bindtap="sercherCategory" data-reply-Type="{{item.id}}" data-current-Index="{{index}}" class="item {{(index+1) % 3 == 0 ? 'last' : ''}}" wx:for="{{currentCategory.subCategoryList}}" wx:key="{{item.id}}">
- <image lazy-load="true" class="icon" wx:if="{{item.wap_banner_url}}" src="{{item.wap_banner_url}}"></image>
- <text class="txt">{{item.name?item.name:""}}</text>
- </navigator>
- </view>
- <view class="hd" wx:if="{{currentCategory}}">
- <text class="line"></text>
- <text class="txt">{{currentCategory.name?currentCategory.name:""}}品牌</text>
- <text class="line"></text>
- </view>
- <view class="bd">
- <navigator bindtap="sercherCategoryByBrand" data-reply-Type="{{item.id}}" data-current-Index="{{index}}" class="item {{(index+1) % 3 == 0 ? 'last' : ''}}" wx:for="{{brandList}}" wx:key="{{item.id}}">
- <image lazy-load="true" class="icon" wx:if="{{item.app_list_pic_url}}" src="{{item.app_list_pic_url}}"></image>
- <text class="txt">{{item.name?item.name:""}}</text>
- </navigator>
- </view>
- <view class="sort">
- <view class="sort-box">
- <view class="item {{currentSortType == 'default' ? 'active' : ''}}" bindtap="openSortFilter" id="defaultSort">
- <text class="txt">综合</text>
- </view>
- <view class="item by-sell {{currentSortType == 'sell' ? 'active' : ''}} {{currentSortOrder == 'asc' ? 'asc' : 'desc'}}" bindtap="openSortFilter" id="sellSort">
- <text class="txt">销量</text>
- </view>
- <view class="item by-price {{currentSortType == 'price' ? 'active' : ''}} {{currentSortOrder == 'asc' ? 'asc' : 'desc'}}" bindtap="openSortFilter" id="priceSort">
- <text class="txt">价格</text>
- </view>
- </view>
- </view>
- <view class="cate-item">
- <view wx:if="{{goodsList != null && goodsList.length == 0}}" class="item-text">未找到相关商品</view>
- <!-- 商品开始 -->
- <view class="item" wx:for="{{goodsList}}" wx:for-index="index" wx:for-item="item" wx:key="{{item.id}}">
- <navigator url="/pages/goods/goods?id={{item.id}}&&storeId={{item.storeId}}&¶mView=cateGoods">
- <view class="left">
- <image lazy-load="true" class="img {{item.stockNum==0?'touming-img':''}}" wx:if="{{item.list_pic_url}}" src="{{item.list_pic_url}}"></image>
- <image lazy-load="true" style="width:50px;height:50px;position: absolute;" wx:if="{{item.stockNum==0}}" src="../../static/images/service-zswh.png"></image>
- <!-- <view class='nav'>{{item.stockNum==0?'无货':''}}</view> -->
- <!-- <text class='nav' style="color: #fff;font-size: 25rpx;background-color: #7c7b7b;border-radius: 40rpx;width: 82rpx;text-align: center;">{{item.stockNum==0?'无货':''}}</text> -->
- </view>
- </navigator>
- <!-- 文字开始 -->
- <view class="right">
- <view class="text">
- <navigator url="/pages/goods/goods?id={{item.id}}&&storeId={{item.storeId}}&¶mView=cateGoods">
- <text class="name" data-item-id="{{filterDiscount != 2?item.id:item.group_id}}">{{item.name?item.name:""}}
- </text>
- <!-- <text class="name" bindtap="bindtapGoodsDetail" data-item-id="{{filterDiscount != 2?item.id:item.group_id}}">{{item.name?item.name:""}}</text> -->
- <!-- <text class="desc" bindtap="bindtapGoodsDetail" data-item-id="{{filterDiscount != 2?item.id:item.group_id}}">{{item.goods_brief?item.goods_brief:""}}</text> -->
- </navigator>
- <!-- 描述开始 -->
- <view class="goods-do">
- <navigator url="/pages/goods/goods?id={{item.id}}&&storeId={{item.storeId}}&¶mView=cateGoods">
- <text class="price">{{item.retail_price?"¥"+item.retail_price:"¥0"}}</text>
- <text class="org-price line-through">{{item.market_price?"¥"+item.market_price:""}}</text>
- <!-- <text style="color: #fff;font-size: 25rpx;background-color: #b4282d;border-radius: 14rpx;width: 82rpx;text-align: center;">{{item.is_hot==1?'热销':''}}</text> -->
- </navigator>
- <!-- //数量加减 -->
- <!-- <view class="number-item">
- <view class="selnum">
- <view class="cut" data-goods-id="{{item.id}}" data-product-id="{{item.product_id}}" bindtap="cutNumber"></view>
- <input value="{{item.cart_num}}" class="number" disabled="true" type="number" />
- <image wx:if="{{item.goodsBizType==11}}" class="add2" src="{{item.cart_num < item.stockNum ? '/static/images/service-hsjh.png':'/static/images/service-ehsjh.png'}}" data-goods-id="{{item.id}}" data-product-id="{{item.product_id}}" catchtap="{{item.cart_num < item.stockNum ? 'addNumber' : ''}}"></image>
- <image wx:if="{{item.goodsBizType!=11}}" class="add2" src="{{item.cart_num < item.goods_number ? '/static/images/service-hsjh.png':'/static/images/service-ehsjh.png'}}" data-goods-id="{{item.id}}" data-product-id="{{item.product_id}}" catchtap="{{item.cart_num < item.goods_number ? 'addNumber' : ''}}"></image>
- </view>
- </view> -->
- </view>
- </view>
- <!-- 描述结束 -->
- </view>
- <!-- 文字结束 -->
- </view>
- <!-- 商品结束 -->
- <view wx:if="{{hidden && goodsList != null && goodsList.length > 0}}" class="item-text">加载完成</view>
- </view>
- </scroll-view>
- </view>
- <view class="coupon" wx:if="{{openCoupon}}">
- <view class="attr-close" bindtap="closeCoupon">X</view>
- <image class="img" src="/static/imgys/coupon-gun.png" bindtap="takeShareCoupon"/>
- </view>
- </view>
|