classify.wxml 3.7 KB

<view class="pinlist">
					<view class="pinitem {{kindshow==true?'pinitemactive':''}}" bindtap="selkind">分类</view>
					<view class="pinitem {{kindshow==false?'pinitemactive':''}}" bindtap="selpinpai">品牌</view>
		</view>
<!-- 分类 -->
<view class='page' wx:if="{{kindshow}}">
	<view class='top'>
		<navigator class='search_box' url="/pages/search/search">
			<view class='search_icon'>
				<image src='/images/search.png'></image>
			</view>
			<input class='real_search' placeholder='搜索您想要的商品' disabled="true" />
		</navigator>
	</view>
	<view class='center'>
		<!-- <scroll-view scroll-y class='scroll-view' scroll-into-view="NAV{{status}}"> -->
		<view class='center_child flexone'>
			<view class='left'>
				<view class='left_item {{status == index?"active":""}}' id='Nav{{index}}' wx:for='{{nav_arr}}' wx:key='index' bindtap='{{item.id!=""?"click_category":"seltaocan"}}' data-index='{{index}}' data-id='{{item.id}}' wx:if="{{item.child.length>0}}">{{item.name}}</view>
				<!-- <view class='left_item {{taocan == true?"active":""}}' bindtap="seltaocan">套餐专区</view> -->
			</view>
			<!-- <view class='fake_left'></view> -->
			<view class='right' wx:if="{{remain}}">
				<view class="nodata" wx:if="{{good_arr.length==0}}">暂无数据</view>
				<view  wx:else>
							<view class='right_item' id='NAV{{index}}' wx:for='{{good_arr}}' wx:key='index'>
					<!--  wx:if="{{good_arr[index].products.length>0}}" -->
					<view class='right_item_top'>
						<view class='right_left'>{{item.name}}</view>
						<text decode='{{true}}' catchtap="look_more" data-id="{{item.id}}" data-title="{{item.name}}">查看全部&ensp;&gt;</text>
					</view>
					<view class='right_goods'>
						<view class='goods' wx:for="{{item.goods}}" wx:for-item="zitem" wx:for-index="zindex" wx:key="zindex" data-id="{{zitem.id}}" catchtap="look_detail">
							<view class='goods_img'>
								<image src='{{zitem.image}}'></image>
							</view>
							<view class='goods_name'>{{zitem.name}}</view>
						</view>
					</view>
				</view>
				</view>
			</view>
			<view class="right" wx:else>
			<view clas="nodata" wx:if="{{taocanlist.length==0}}">暂无数据</view>
				<view class="right_item" wx:else>
					<view class='right_goods'>
						<view class='goods' wx:for="{{taocanlist}}" wx:key="zindex" data-id="{{item.id}}" catchtap="look_detailk">
							<view class='goods_img'>
								<image src='{{item.image}}'></image>
							</view>
							<view class='goods_name'>{{item.name}}</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- </scroll-view> -->
	</view>
</view>
<!-- 品牌 -->
<view class='city_box' wx:else>
	<view class='city_left'>
		<scroll-view scroll-y style='width:100%;height:100%;' scroll-with-animation scroll-into-view='{{cityListId}}' scroll-top="{{scrollHeight}}">

			<view class='city_list_box'>
				<block wx:for='{{citylist}}' wx:key='this' wx:for-item='letterItem' wx:for-index='letterIndex'>
					<view class='city_first_letter' id='{{letterItem.letter}}'>{{letterItem.letter}}</view>
          <view class="citybox">
          			<view class='city_name' wx:for='{{letterItem.data}}' wx:key='this' data-types='list' catchtap='cityTap' data-index='{{index}}' data-val='{{item}}' data-id="{{item.id}}">
						<view class='goods_img'>
							<image src='{{item.image}}'></image>
						</view>
						<view class='goods_name'>{{item.name}}</view>
					</view>
          </view>
				</block>
			</view>
		</scroll-view>
	</view>
	<view class='city_right'>
  <scroll-view scroll-y style='width:100%;height:100%;' scroll-with-animation >
		<text class='letter_item' wx:for='{{letter}}' wx:key='this' catchtap='letterTap' data-item='{{item}}'>{{item}}</text>
  	</scroll-view>
	</view>
</view>