<view class='page'><include src='/components/common/common'></include><include src='/components/header/header'></include><view bindtap='hideMoreAlert' class='body after-navber'><view class='top-bar'><view class='search'><input bindconfirm='searchSubmit' confirmType='search' name='keyword' placeholder='搜索'></input></view><view class='flex flex-row tab-bar'><navigator class='flex-grow-1 flex-x-center' openType='redirect' url='/mch/m/goods/goods?status=1'><view class='{{(status == 1?"active":"")}}'>出售中</view></navigator><navigator class='flex-grow-1 flex-x-center' openType='redirect' url='/mch/m/goods/goods?status=2'><view class='{{(status == 2?"active":"")}}'>售磬</view></navigator><navigator class='flex-grow-1 flex-x-center' openType='redirect' url='/mch/m/goods/goods?status=3'><view class='{{(status == 3?"active":"")}}'>仓库中</view></navigator><navigator class='flex-grow-1 flex-x-center' openType='redirect' url='/mch/m/goods/goods?status=4'><view class='{{(status == 4?"active":"")}}'>最新</view></navigator></view></view><view class='goods-list'><block wx:for='{{goods_list}}' wx:for-item='item' wx:for-index='index' wx:key='{{item.id}}'><view class='goods-item flex flex-row'><view class='flex-grow-0' style='padding: 24rpx'><image src='{{item.cover_pic}}' style='width: 150rpx;height: 150rpx;border: 1rpx solid #eee'></image></view><view class='flex-grow-1' style='padding: 24rpx 24rpx 24rpx 0'><view class='goods-name'><view>{{item.name}}</view></view><view style='color: #ff4544'>￥{{item.price}}</view><view class='flex flex-row'><view class='flex-grow-1' style='color: #888'>库存：{{item.goods_num}}</view><block wx:if='{{__is_sales}}'><view class='flex-grow-1' style='color: #888'>销量：{{item.sale_num}}</view></block><view class='flex-grow-0 more-btn'><view><view bindtap='showMoreAlert' class='more-icon flex flex-y-center' data-index='{{index}}'><view><view></view><view></view><view></view></view></view></view><view class='more-alert {{(item.show_alert?"show":"")}}'><view class='flex flex-row'><block wx:if='{{false}}'><view class='flex-grow-0 more-alert-item'><view><image src='/mch/images/icon-bianji.png'></image></view><view>编辑</view></view></block><block wx:if='{{item.status == 0}}'><view bindtap='setGoodsStatus' class='flex-grow-0 more-alert-item' data-index='{{index}}' data-target-status='1'><view><image src='/mch/images/icon-xiajia.png' style='transform: rotate(180deg)'></image></view><view>上架</view></view></block><block wx:if='{{item.status == 1}}'><view bindtap='setGoodsStatus' class='flex-grow-0 more-alert-item' data-index='{{index}}' data-target-status='0'><view><image src='/mch/images/icon-xiajia.png'></image></view><view>下架</view></view></block><view bindtap='goodsDelete' class='flex-grow-0 more-alert-item' data-index='{{index}}'><view><image src='/mch/images/icon-shanchu.png'></image></view><view>删除</view></view><block wx:if='{{false}}'><view class='flex-grow-0 more-alert-item'><view><image src='/mch/images/icon-tuiguang.png'></image></view><view>推广</view></view></block></view></view></view></view></view></view></block></view><block wx:if='{{no_goods}}'><view class='flex-y-center flex-x-center' style='text-align: center;height: 174rpx;color: #888;font-size: 9pt'>暂无商品        </view></block><block wx:if='{{ (!(no_goods) && no_more_goods) }}'><view class='flex-y-center flex-x-center' style='text-align: center;height: 74rpx;color: #888;font-size: 9pt'>已无更多商品        </view></block><block wx:if='{{ (!(no_goods) && !(no_more_goods)) }}'><view class='loading-more {{(loading_more?"show":"")}}'><image src='{{__wxapp_img.system.loading_black.url}}' style='width: 50rpx;height: 50rpx'></image></view></block></view><include src='/components/footer/footer'></include></view>