<view><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="{{searchValue}}" 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="pub-tab-box"><view class="tab-inner"><block wx:for="{{cates}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['cateChange',['$0'],[[['cates','',index]]]]]]]}}" class="{{[cateId==item.cateId?'item active':'item']}}" bindtap="__e"><view class="text">{{''+item.cateName+''}}<image hidden="{{!(cateId==item.cateId)}}" class="tab-bg" src="../../static/images/tab_bg.png" mode></image></view></view></block></view></view></view><mescroll-body class="vue-ref" vue-id="55b1c832-1" top="190upx" 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="aspectFit"></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>