12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <view class="container" style="padding-bottom: 100rpx;">
- <view class="no-login" wx:if="{{!hasLogin}}">
- <view class="c">
- <text>您还没有注册</text>
- <button open-type="getUserInfo" bindgetuserinfo="goLogin">点击授权微信登录</button>
- </view>
- </view>
- <view class='login' wx:else>
- <view class="search">
- <!-- <picker mode="selector" style="font-size:32rpx" range="{{citys}}" value="{{cityIndex}}" bindchange="listenerCitySelected">
- <view style="width: 160rpx;text-align: center;display: flex;">
- <image style="width: 45rpx;height: 45rpx;" src="/static/images/address.png"></image>
- <view style="font-size:32rpx">{{city}}</view>
- </view>
- </picker> -->
- <navigator url="/pages/category/search/search" class="input">
- <van-icon name="search" size="16px"/>
- <text class="txt">商品搜索, 共{{goodsCount}}款好物</text>
- </navigator>
- </view>
- <view class="catalog">
- <scroll-view class="nav" scroll-y="true">
- <view class="item {{ currentCategory.id == item.id ? 'active' : ''}}" wx:for="{{categoryList}}" wx:key="id" data-id="{{item.id}}" data-index="{{index}}" data-name="{{item.name}}" bindtap="switchCate">{{item.name}}</view>
- </scroll-view>
- <scroll-view class="cate" scroll-y="true">
- <!-- url="/pages/servant/servantList/servantList" -->
- <!-- <navigator url="/pages/servant/servantList/servantList" class="banner" wx:if="{{currentCategory.name=='保姆/月嫂'}}">
- <image class="category-banner" mode="aspectFill" src="{{currentCategory.picUrl}}"></image>
- </navigator> -->
- <view wx:if="{{goodsList.length > 0}}" wx:for="{{goodsList}}" wx:for-index="idx" wx:for-item="category" wx:key="id">
- <view class="hd" >
- <!-- <text class="line"></text> -->
- <text class="txt">{{category.name}}</text>
- </view>
- <!-- <view class="bd">
- <navigator url="/pages/category/category?id={{item.id}}" class="item {{(index+1) % 3 == 0 ? 'last' : ''}}" wx:key="id" wx:for="{{currentSubCategoryList}}">
- <image class="icon" src="{{item.picUrl}}"></image>
- <text class="txt">{{item.name}}</text>
- </navigator>
- </view> -->
-
- <view class="a-section a-popular" >
- <view class="b category-line">
- <view class="item" wx:for="{{category.goodsList}}" wx:for-index="index" wx:for-item="item" wx:key="id">
- <navigator url="/pages/goods/goods?id={{item.id}}" class="product-item">
- <image class="img" src="{{item.picUrl}}" mode="aspectFill"></image>
- <view class="product-name">{{item.name}}</view>
- <!-- <view class="right">
- <view class="text">
- <text class="name">{{item.name}}</text>
- <text class="desc">{{item.brief}}</text>
- <view class="price">¥{{item.retailPrice}}
- <span wx:if="{{item.unit}}">/{{item.unit}}</span>
- <span wx:else>/次</span>
- <view class="btn">详情</view>
- </view>
- </view>
- </view> -->
- </navigator>
- </view>
- </view>
- </view>
- </view>
- </scroll-view>
- </view>
- </view>
- <!--广告-->
- <!-- <view class="adv" bindtap='goinviteFriends'>
- <view style="width:100%;height:100%">
- <image src="/static/images/active/xyhxd.jpg" style="width:100%;height:100%" />
- </view>
- </view> -->
- </view>
|