goodsManage.wxml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <import src="tabbar.wxml"></import>
  2. <view class="wrap pb100">
  3. <view class="nav">
  4. <view bindtap="switchNav" class="orderList_item {{currentTab==item.status?'on':''}}" data-current="{{item.status}}" wx:for="{{navList}}" wx:key="status">{{item.name}}</view>
  5. </view>
  6. <!--搜索框begin-->
  7. <view class='search-bar'>
  8. <view class='search-box'>
  9. <input class='ipt' placeholder="搜索商品" confirm-type="搜索" type="text" bindconfirm="goResult"></input>
  10. <view class='search-icon'>
  11. <text class="iconfont icon-sousuo1"></text>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="list" wx:if="{{list.length>0}}">
  16. <view class="item p15 bg-f border-bottom i-flex" wx:for="{{list}}" wx:key="id">
  17. <i-img defaultImage="{{placeholdeImg?placeholdeImg:'../../images/placeholder-refund.png'}}" height="160" iClass="img-class" lazyLoad="true" loadImage="{{item.skuImage}}" width="160"></i-img>
  18. <view class="i-flex-item ml10 i-flex-col jcontent-c">
  19. <view class="fsz-28 weight">{{item.goodsname}}</view>
  20. <view class="price red mt10">¥{{item.price}}</view>
  21. <view class="red fsz-24 mt-auto">库存:{{item.total}}</view>
  22. </view>
  23. <text class="iconfont icon-more mt-auto fsz-36" bindtap="handleActionsheet" data-id="{{item.id}}" data-index="{{index}}"></text>
  24. </view>
  25. <i-load-more iClass="loadMore" loading="{{loadMore}}" tip="{{loadText}}" wx:if="{{!noMore}}"></i-load-more>
  26. </view>
  27. <i-empty wx:if="{{noData}}">暂无商品~</i-empty>
  28. </view>
  29. <view class="safebottom"></view>
  30. <mp-actionSheet bindactiontap="handleBtn" show="{{showActionsheet}}" actions="{{groups}}" title="选择需要的操作" bindclose="handleActionsheet"></mp-actionSheet>
  31. <mp-dialog title="库存" show="{{editSkuVisible}}" bindbuttontap="editSku" buttons="{{buttons}}">
  32. <view>
  33. <input type="number" focus="{{true}}" placeholder="请输入修改的库存数量" bindinput="bindSkuIpt" value="{{editSkuNum}}"></input>
  34. </view>
  35. </mp-dialog>
  36. <template is="tabbar" data="{{data:0}}"></template>