1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <view class="container">
- <view class="cate-nav">
- <scroll-view scroll-x="true" class="cate-nav-body" style="width: 750rpx;" scroll-left="{{scrollLeft}}">
- <view wx:for="{{navList}}" class="item {{ id == item.id ? 'active' : ''}}" wx:key="id" data-id="{{item.id}}"
- data-index="{{index}}" bindtap="switchCate">
- <view class="name">{{item.name}}</view>
- </view>
- </scroll-view>
- </view>
- <scroll-view scroll-y="true" scroll-top="{{scrollTop}}" style="height:{{scrollHeight}};">
- <view class="cate-item">
- <!-- <view class="h">
- <text class="name">{{currentCategory.name}}</text>
- <text class="desc">{{currentCategory.desc}}</text>
- </view> -->
- <!-- <view class="h">
- <text class="name">{{navList[navIndex].name}}</text>
- <text class="desc">{{navList[navIndex].desc}}</text>
- </view> -->
- <view class="b">
- <navigator class="item {{(iindex + 1) % 2 == 0 ? 'item-b' : ''}}" url="/pages/goods/goods?id={{iitem.id}}"
- wx:for="{{goodsList}}" wx:key="id" wx:for-item="iitem" wx:for-index="iindex">
- <image class="img" src="{{iitem.picUrl}}" background-size="cover"></image>
- <!-- <text wx:if="{{iitem.type=='2'}}">起</text> -->
- <view style="display: flex;margin-top: 10rpx;height: 71rpx;">
- <!-- <image wx:if="{{iitem.activited}}"
- src="https://7a68-zhaijieshi-3guecm78383ca692-1307626841.tcb.qcloud.la/activity/618.png"
- style="width: 39px;height:16px;margin-right: 2px;" /> -->
- <text class="name">{{iitem.name}}</text>
- </view>
- <view class="price">
- <view wx:if="{{iitem.activited}}" class="retailPrice">
- <text class="price-unit">¥</text>{{iitem.activityPrice}}</view>
- <view wx:else="" class="retailPrice"><text class="price-unit">¥</text>{{iitem.retailPrice}}</view>
- <view wx:if="{{iitem.activited||iitem.counterPrice!=iitem.retailPrice}}" class="counterPrice">原价¥{{iitem.counterPrice}}</view>
- <!-- <view class="member-price-tag">会员价</view> -->
- </view>
- <!-- <text class="brand">{{iitem.brand.name}}</text> -->
- </navigator>
- </view>
- </view>
- </scroll-view>
- </view>
|