<view class="content"><view class="top-fixed"><view class="search-cont"><view class="inner"><image class="icon-search" src="../../static/images/search.png" mode></image><input type="text" placeholder="输入商品名称" placeholder-style="font-size:28rpx;color:#BBBBBB;font-family: PingFang SC;" data-event-opts="{{[['confirm',[['goSearch',['$event']]]]]}}" value="{{form.productName}}" bindconfirm="__e"/></view><view class="icon-search"><block wx:if="{{showType==1}}"><image src="../../static/images/search1.png" mode data-event-opts="{{[['tap',[['showChange',[2]]]]]}}" bindtap="__e"></image></block><block wx:if="{{showType==2}}"><image src="../../static/images/search2.png" mode data-event-opts="{{[['tap',[['showChange',[1]]]]]}}" bindtap="__e"></image></block></view></view><view class="sort-box"><view data-event-opts="{{[['tap',[['searchChange',['1']]]]]}}" class="{{['item',form.defaultOrder=='desc'?'active':'']}}" bindtap="__e"><text class="label">默认</text></view><view data-event-opts="{{[['tap',[['searchChange',['2']]]]]}}" class="item" bindtap="__e"><text class="label">价格</text><view class="sort-img"><block wx:if="{{form.priceOrder==null||form.priceOrder=='desc'}}"><image src="../../static/images/price_arrow_up.png" mode data-event-opts="{{[['tap',[['priceUp',[true]]]]]}}" bindtap="__e"></image></block><block wx:if="{{form.priceOrder=='asc'}}"><image src="../../static/images/price_arrow_up2.png" mode data-event-opts="{{[['tap',[['priceUp',[false]]]]]}}" bindtap="__e"></image></block><block wx:if="{{form.priceOrder==null||form.priceOrder=='asc'}}"><image src="../../static/images/price_arrow_down.png" mode data-event-opts="{{[['tap',[['priceDown',[true]]]]]}}" bindtap="__e"></image></block><block wx:if="{{form.priceOrder=='desc'}}"><image src="../../static/images/price_arrow_down2.png" mode data-event-opts="{{[['tap',[['priceDown',[false]]]]]}}" bindtap="__e"></image></block></view></view><view data-event-opts="{{[['tap',[['searchChange',['3']]]]]}}" class="item" bindtap="__e"><text class="label">销量</text><view class="sort-img"><block wx:if="{{form.salesOrder==null||form.salesOrder=='desc'}}"><image src="../../static/images/price_arrow_up.png" mode data-event-opts="{{[['tap',[['saleUp',[true]]]]]}}" bindtap="__e"></image></block><block wx:if="{{form.salesOrder=='asc'}}"><image src="../../static/images/price_arrow_up2.png" mode data-event-opts="{{[['tap',[['saleUp',[false]]]]]}}" bindtap="__e"></image></block><block wx:if="{{form.salesOrder==null||form.salesOrder=='asc'}}"><image src="../../static/images/price_arrow_down.png" mode data-event-opts="{{[['tap',[['saleDown',[true]]]]]}}" bindtap="__e"></image></block><block wx:if="{{form.salesOrder=='desc'}}"><image src="../../static/images/price_arrow_down2.png" mode data-event-opts="{{[['tap',[['saleDown',[false]]]]]}}" bindtap="__e"></image></block></view></view><view data-event-opts="{{[['tap',[['searchChange',['4']]]]]}}" class="{{['item',form.newOrder=='desc'?'active':'']}}" bindtap="__e"><text class="label">新品</text></view></view></view><mescroll-body class="vue-ref" vue-id="85546660-1" top="190rpx" down="{{downOption}}" up="{{upOption}}" data-ref="mescrollRef" data-event-opts="{{[['^init',[['mescrollInit']]],['^down',[['downCallback']]],['^up',[['upCallback']]]]}}" bind:init="__e" bind:down="__e" bind:up="__e" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{showType==1}}"><view class="medic-list"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['showDetail',['$0'],[[['dataList','',index]]]]]]]}}" class="item" bindtap="__e"><view class="img-box"><image src="{{item.$orig.image}}" mode="aspectFit"></image></view><view class="info-box"><view class="title ellipsis2">{{item.$orig.productName}}</view><view class="intro ellipsis">{{item.$orig.productInfo}}</view><view class="prce-num"><view class="price"><text class="unit">¥</text><text class="num">{{item.g0+''}}</text></view><view data-event-opts="{{[['tap',[['navgetTo',['../shopping/cart']]]]]}}" class="cart-img" bindtap="__e"><view class="sale">{{"已售 "+item.$orig.sales+" "+item.$orig.unitName}}</view></view></view></view></view></block></view></block><block wx:if="{{showType==2}}"><view class="goods-list"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['showDetail',['$0'],[[['dataList','',index]]]]]]]}}" class="item" bindtap="__e"><view class="img-box"><image src="{{item.$orig.image}}" mode="aspectFill"></image></view><view class="info-box"><view class="title ellipsis2">{{item.$orig.productName}}</view><view class="price-box"><view class="now"><text class="unit">¥</text><text class="num">{{item.g1}}</text></view><view class="old">{{"¥"+item.g2}}</view></view></view></view></block></view></block></mescroll-body></view>