yuminge-app/yun-min-program-plugin-master/packageI/warehouseFarm/warehouseFarmGift/warehouseFarmGift.wxml

24 lines
1.0 KiB
Plaintext

<!--packageI/warehouseFarm/warehouseFarmGift/warehouseFarmGift.wxml-->
<view id="warehouse-farm-gift">
<van-sticky>
<van-search value="{{ keyword }}" placeholder="搜索商品" use-action-slot bind:change="onChange" bind:search="onSearch">
<view slot="action" bind:tap="toUrl" data-url="/packageI/warehouseFarm/warehouseFarmGiftLog/warehouseFarmGiftLog">查看记录</view>
</van-search>
</van-sticky>
<view class="list">
<view class="list-item" wx:for="{{list}}">
<image class="good-img" src="{{item.thumb}}" alt="" />
<view class="item-right">
<view class="title">{{ item.title }}</view>
<view class="good-info">
<view class="stock">库存:{{ item.nums }}</view>
<view class="button" catchtap="toUrl"
data-url="/packageI/warehouseFarm/warehouseFarmCreate/warehouseFarmCreate" data-id="{{item.stock_id}}">赠送
</view>
</view>
</view>
</view>
<view wx:if="{{list.length == 0}}" style="padding: 50px 0;">暂无礼物商品 ~</view>
</view>
</view>