| <!--主盒子--> | 
| <view class="container"> | 
|   <!-- 搜索框 --> | 
|   <view class="header"> | 
|     <view class='type_box'> | 
|       <input class="marked" placeholder="{{queryKey}}" bindinput='formTitle' /> | 
|       <view class='search_text' bindtap='onSearching'>搜索</view> | 
|     </view> | 
|   </view> | 
|   <!--左侧栏--> | 
|   <scroll-view scroll-y="true" class="nav_left"> | 
|     <block wx:for="{{tabs}}" wx:key="ids"> | 
|       <view class="nav_left_items {{currentIndex == index ? 'active' : ''}}" | 
|             bindtap='titleClick' | 
|             data-idx='{{index}}'>{{item.attrName}}</view> | 
|     </block> | 
|   </scroll-view> | 
|   <!--右侧栏--> | 
|   <scroll-view bindscrolltolower="getProduct" scroll-y="true" class="nav_right"  scroll-top="{{top_num}}" bindscroll="scroll_distance"> | 
|     <!--如果有数据,才遍历项--> | 
|     <block wx:for="{{productList}}" wx:key="ids"> | 
|       <view | 
|       data-id='{{item.id}}'  | 
|       data-service="{{item.isService}}" | 
|       data-index="{{index}}" | 
|       class="nav_right_items" bindtap='intoDetail'> | 
|   | 
|         <view wx:if="{{item.stockNum<1}}" class="sold-out">抢光了</view> | 
|         <image src="{{item.imgMobile}}" mode="aspectFill"></image> | 
|   | 
|         <view class="content_right"> | 
|           <view class="right_top"> | 
|             <view class="nodata_text">{{item.title}}</view> | 
|             <view class="author">{{item.briefIntroduction}} </view> | 
|          </view> | 
|           <view class="count"> | 
|             <text class="price">¥{{item.price}}</text> | 
|             <text | 
|              catchtap="touchOnGoods" data-stock-num="{{item.stockNum}}" data-id='{{item.id}}' | 
|              class=" {{item.id==needAni ? 'bus scale': 'bus'}} iconfont icongouwuche litel_car liter_car_right "></text> | 
|           </view> | 
|         </view> | 
|       </view> | 
|     </block> | 
|   | 
|   | 
|     <!-- 浮动购物车功能 --> | 
|     <navigator open-type="switchTab" url="../shopCar/shopCar"> | 
|       <view class="carts-icon {{scaleCart?'on':''}}"> | 
|         <view class="iconfont icongouwuche2"></view> | 
|         <text class="carts-icon-num" wx:if="{{hasCarts}}">{{totalNum}}</text> | 
|       </view> | 
|     </navigator> | 
|   | 
|     <view class="toTap" bind:tap="backtop" hidden='{{!toTopIcon}}' > | 
|       <view class="iconfont icontop"></view> | 
|     </view> | 
|   | 
|   | 
|     <view wx:if="{{productList.length==0}}" class="nodata">该分类暂无数据</view> | 
|      | 
|     <view wx:if="{{productList.length!=0&&isEnd}}" class="nodata " >没有更多了</view> | 
|   | 
|   | 
|   | 
|     <!-- 购物车跳动点 --> | 
|     <view class="dot" hidden="{{hide_good_box}}"   style="left: {{bus_x}}px; top: {{bus_y}}px;"></view> | 
|   | 
|     <!-- \\\\\\\\\\\\\\\\\\\\\\\\\\多规格弹出框\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ --> | 
|     <view> | 
|       <skuList bindrefresh="refreshUserCartCount"  goodsInfo="{{currentGoodsInfo}}" | 
|                normsList="{{normsList}}" | 
|                normspopup="{{normspopup}}" | 
|                currentSku="{{currentSku}}" | 
|       > | 
|       </skuList> | 
|     </view> | 
|     <!-- ///////////////////////////多规格礼弹出框////////////////////////////////// --> | 
|   | 
|   | 
|   | 
| </scroll-view > | 
| </view> |