<cu-custom isBack="{{true}}">
  <view slot="content">商品搜索</view>
</cu-custom>
<view class="cu-bar bg-white search fixed" style="top:{{CustomBar}}px" bindtap="doSearchGoods">
  <view class="search-form round" style="margin-top:5rpx;margin-bottom:5rpx">
    <text class="cuIcon-search"></text>
    <input type="text" placeholder="请输入商品关键字进行搜索(类目名称,商品名称)" confirm-type="search" bindinput="searchGoods"></input>
  </view>
</view>
<scroll-view style="margin-bottom:64rpx;margin-top:100rpx">
  <view class="cu-list">
    <view class="cu-list menu-avatar" wx:for="{{goodsList}}" wx:for-item="good" wx:key="good">
      <view class="cu-item" data-item="{{good}}" bindtap="manageGoods">
        <view class="cu-avatar radius lg" style="background-image:url({{baseImageUrl+good.goodsIcon}});">
          <view class="cu-tag badge">{{good.goodsStatus=='1' ? '在售' : '下架' }}</view>
        </view>
        <view class="content">
          <view class="text-pink">
            <text class="text-cut">{{good.goodsName}}</text>
          </view>
          <view class="text-gray text-sm flex">
            <text class="text-cut">{{good.goodsSummary}}</text>
          </view>
        </view>
        <view class="action" style="width:130rpx">
          <view class="text-grey text-df">
            库存:{{good.goodsTotal > 1000 ? '999+' : good.goodsTotal}}</view>
          <view class="cu-tag round bg-red sm text-df">单价:{{good.goodsUnitPrice}}</view>
        </view>
      </view>
    </view>
  </view>
</scroll-view>