|
|
<wxs src="../../../wxs/helper.wxs" module="helper" />
|
|
|
<view class="container">
|
|
|
<view class="category-line"></view>
|
|
|
<view class="category-wrap" style="height: {{scrollHeight}}px;">
|
|
|
<view class="right-list">
|
|
|
<view class="category-header"> — 热门推荐 — </view>
|
|
|
|
|
|
<view class="sub-list-block clearfix">
|
|
|
<view wx:for="{{subCategoryList}}" wx:key="{{item.category_id}}" class="category-sub-item" bindtap="onCategoryItemTapped">
|
|
|
<image src="{{item.default_images}}" class="item-img"></image>
|
|
|
<view class="item-name">{{item.category_name}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="category-header"> — 全部{{currentCateValue}} — </view>
|
|
|
|
|
|
<view class="category-header"> — 全部{{currentName}} — </view>
|
|
|
<view class="sub-list-block clearfix">
|
|
|
<view wx:for="{{subCategoryList}}" wx:key="{{item.category_id}}" class="category-sub-item">
|
|
|
<image src="{{item.default_images}}" class="item-img"></image>
|
|
|
<image src="{{helper.image(item.sort_ico, 64, 84)}}" class="item-img"></image>
|
|
|
<view class="item-name">{{item.category_name}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="left-list">
|
|
|
<view wx:for="{{categoryList}}" wx:key="{{item.category_id}}" class="category-item {{currentId == item.category_id ? 'active' : ''}}" data-id="{{item.category_id}}" bindtap="changeCategory">{{item.category_name}}</view>
|
|
|
<view wx:for="{{categoryList}}" wx:key="{{item.category_id}}" class="category-item {{currentId == item.category_id ? 'active' : ''}}" data-id="{{item.category_id}}" data-name="{{item.category_name}}" bindtap="changeCategory">{{item.category_name}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="category-line"></view>
|
|
|
<view class="hot-shops">
|
|
|
<view-title title="热门品牌" height="88"></view-title>
|
|
|
<view class="shop-list">
|
|
|
<view class="shop-item">
|
|
|
<view class="shop-info">
|
|
|
<image src="{{item.logo}}" class="shop-logo"></image>
|
|
|
<text class="shop-name">it</text>
|
|
|
<block wx:if="{{shopList.length > 0}}">
|
|
|
<view class="category-line"></view>
|
|
|
<view class="hot-shops">
|
|
|
<view-title title="热门品牌" height="88"></view-title>
|
|
|
<view class="shop-list">
|
|
|
<view wx:for="{{shopList}}" wx:key="{{item.hr_shop_id}}" class="shop-item">
|
|
|
<view class="shop-info">
|
|
|
<image src="{{helper.image(item.brand_ico, 50, 50)}}" class="shop-logo"></image>
|
|
|
<text class="shop-name">{{item.brand_name}}</text>
|
|
|
|
|
|
<navigator url="/page/product/shop?shopid={{item.shop_id}}" class="go-shop" hover-class="none">进入店铺<text class="iconfont icon-right"></text></navigator>
|
|
|
</view>
|
|
|
<view class="scoll-wrap">
|
|
|
<view class="shop-goods">
|
|
|
<view class="goods-item">
|
|
|
<image src="//img11.static.yhbimg.com/goodsimg/2017/08/31/09/018041b9d8f4b1e7372688ef05b1934e55.jpg?imageMogr2/thumbnail/64x85/background/d2hpdGU=/position/center/quality/80" class="goods-img"></image>
|
|
|
<text class="price">¥2100.00</text>
|
|
|
</view>
|
|
|
<view class="goods-item">
|
|
|
<image src="//img11.static.yhbimg.com/goodsimg/2017/08/31/09/018041b9d8f4b1e7372688ef05b1934e55.jpg?imageMogr2/thumbnail/64x85/background/d2hpdGU=/position/center/quality/80" class="goods-img"></image>
|
|
|
<text class="price">¥2100.00</text>
|
|
|
</view>
|
|
|
<view class="goods-item">
|
|
|
<image src="//img11.static.yhbimg.com/goodsimg/2017/08/31/09/018041b9d8f4b1e7372688ef05b1934e55.jpg?imageMogr2/thumbnail/64x85/background/d2hpdGU=/position/center/quality/80" class="goods-img"></image>
|
|
|
<text class="price">¥2100.00</text>
|
|
|
</view>
|
|
|
<view class="goods-item">
|
|
|
<image src="//img11.static.yhbimg.com/goodsimg/2017/08/31/09/018041b9d8f4b1e7372688ef05b1934e55.jpg?imageMogr2/thumbnail/64x85/background/d2hpdGU=/position/center/quality/80" class="goods-img"></image>
|
|
|
<text class="price">¥2100.00</text>
|
|
|
</view>
|
|
|
<view class="goods-item">
|
|
|
<image src="//img11.static.yhbimg.com/goodsimg/2017/08/31/09/018041b9d8f4b1e7372688ef05b1934e55.jpg?imageMogr2/thumbnail/64x85/background/d2hpdGU=/position/center/quality/80" class="goods-img"></image>
|
|
|
<text class="price">¥2100.00</text>
|
|
|
</view>
|
|
|
<view class="goods-item">
|
|
|
<image src="//img11.static.yhbimg.com/goodsimg/2017/08/31/09/018041b9d8f4b1e7372688ef05b1934e55.jpg?imageMogr2/thumbnail/64x85/background/d2hpdGU=/position/center/quality/80" class="goods-img"></image>
|
|
|
<text class="price">¥2100.00</text>
|
|
|
</view>
|
|
|
<navigator url="/page/product/shop?shopid={{item.hr_shop_id}}" class="go-shop" hover-class="none">进入店铺<text class="iconfont icon-right"></text></navigator>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="shop-item">
|
|
|
<view class="shop-info">
|
|
|
<image src="{{item.logo}}" class="shop-logo"></image>
|
|
|
<text class="shop-name">it</text>
|
|
|
|
|
|
<navigator url="/page/product/shop?shopid={{item.shop_id}}" class="go-shop" hover-class="none">进入店铺<text class="iconfont icon-right"></text></navigator>
|
|
|
</view>
|
|
|
<view class="scoll-wrap">
|
|
|
<view class="shop-goods">
|
|
|
<view class="goods-item">
|
|
|
<image src="//img11.static.yhbimg.com/goodsimg/2017/08/31/09/018041b9d8f4b1e7372688ef05b1934e55.jpg?imageMogr2/thumbnail/64x85/background/d2hpdGU=/position/center/quality/80" class="goods-img"></image>
|
|
|
<text class="price">¥2100.00</text>
|
|
|
</view>
|
|
|
<view class="goods-item">
|
|
|
<image src="//img11.static.yhbimg.com/goodsimg/2017/08/31/09/018041b9d8f4b1e7372688ef05b1934e55.jpg?imageMogr2/thumbnail/64x85/background/d2hpdGU=/position/center/quality/80" class="goods-img"></image>
|
|
|
<text class="price">¥2100.00</text>
|
|
|
</view>
|
|
|
<view class="goods-item">
|
|
|
<image src="//img11.static.yhbimg.com/goodsimg/2017/08/31/09/018041b9d8f4b1e7372688ef05b1934e55.jpg?imageMogr2/thumbnail/64x85/background/d2hpdGU=/position/center/quality/80" class="goods-img"></image>
|
|
|
<text class="price">¥2100.00</text>
|
|
|
</view>
|
|
|
<view class="goods-item">
|
|
|
<image src="//img11.static.yhbimg.com/goodsimg/2017/08/31/09/018041b9d8f4b1e7372688ef05b1934e55.jpg?imageMogr2/thumbnail/64x85/background/d2hpdGU=/position/center/quality/80" class="goods-img"></image>
|
|
|
<text class="price">¥2100.00</text>
|
|
|
</view>
|
|
|
<view class="goods-item">
|
|
|
<image src="//img11.static.yhbimg.com/goodsimg/2017/08/31/09/018041b9d8f4b1e7372688ef05b1934e55.jpg?imageMogr2/thumbnail/64x85/background/d2hpdGU=/position/center/quality/80" class="goods-img"></image>
|
|
|
<text class="price">¥2100.00</text>
|
|
|
</view>
|
|
|
<view class="goods-item">
|
|
|
<image src="//img11.static.yhbimg.com/goodsimg/2017/08/31/09/018041b9d8f4b1e7372688ef05b1934e55.jpg?imageMogr2/thumbnail/64x85/background/d2hpdGU=/position/center/quality/80" class="goods-img"></image>
|
|
|
<text class="price">¥2100.00</text>
|
|
|
<view class="scoll-wrap">
|
|
|
<view class="shop-goods">
|
|
|
<view wx:for="{{item.shop_product_list}}" wx:key="{{index}}" class="goods-item">
|
|
|
<image src="{{helper.image(item.default_images, 94, 150)}}" class="goods-img"></image>
|
|
|
<text class="price">¥ {{item.sales_price}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="category-line"></view>
|
|
|
<view class="category-line"></view>
|
|
|
</block>
|
|
|
</view>
|
|
|
|
...
|
...
|
|