<view class="top">
    <image class="top-img" src="http://api.siyuankunlun.com/storage/materials/2022/09/14/stock_list.png" mode="aspectFill"></image>
    <view class="top-back">
        <view class="top-item">
            <view class="item-name">库存总量</view>
            <view class="item-number">{{stockData.stock}}<text>箱</text></view>
        </view>
        <view class="top-item">
            <view class="item-name">提货量</view>
            <view class="item-number">{{stockData.hold}}<text>箱</text></view>
        </view>
    </view>
</view>

<view class="list">
    <view class="list-name">库存明细</view>
    <block wx:if="{{logsArr.length > 0}}">
        <view class="item" wx:for="{{logsArr}}" wx:key="logsArr">
            <view class="title">
                <view class="name">
                    <image src="/static/icons/stockList_01.png" mode="widthFix"></image>{{item.type}}
                </view>
                <view class="number reduce">
                    {{item.variable}}
                </view>
            </view>
            <view class="time">
                {{item.created_at}}
            </view>
        </view>
        <view class="pagesLoding" wx:if="{{lodingStats}}">
			<block wx:if="{{page.has_more}}">
				<image class="pagesLoding-icon" src="/static/icon/refresh_loding.gif" mode="widthFix"></image>加载中...
			</block>
			<block wx:else>
				没有更多了~
			</block>
		</view>
    </block>
    <view class="pages-no" wx:else>
        <image src="/static/imgs/text_null.png" mode="widthFix"></image>
        <view>~暂无数据哦~</view>
    </view>
</view>