select.wxml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <wxs src="../../utils/filter.wxs" module="filter"></wxs>
  2. <view class="container">
  3. <!--screen-->
  4. <view class="tui-header-screen">
  5. <view class="cu-bar search bg-white">
  6. <view class="search-form round">
  7. <text class="cuIcon-search"></text>
  8. <input type="text" placeholder="输入商品名称" confirm-type="search" value="{{searchParams.skuProductName}}" data-name="searchParams.skuProductName" catchinput="inputedit" bindblur="inputedit"></input>
  9. </view>
  10. <view class="action">
  11. <button class="cu-btn bg-blue shadow-blur round" bindtap="btnSearch">搜索</button>
  12. </view>
  13. </view>
  14. </view>
  15. <!--screen-->
  16. <view class="tui-order-list">
  17. <view class="tui-order-item" wx:for="{{productList}}">
  18. <tui-list-cell padding="0">
  19. <view class="tui-goods-item">
  20. <image src="{{item.productImg}}" class="tui-goods-img"></image>
  21. <view class="tui-goods-center">
  22. <view class="tui-goods-name">{{item.skuProductName}}</view>
  23. <view class="tui-goods-attr">商品售价(元):<text style="color:red;">¥{{filter.toDecimal2Penny(item.productPrice)}}</text></view>
  24. <!-- <view class="tui-goods-attr">商品售价(元):<text style="color:red;">¥{{filter.toDecimal2Penny(item.productSellPrice)}}</text></view> -->
  25. <view class="tui-goods-attr">商品库存:<text style="color:red;">{{item.skuStock}}</text></view>
  26. <!-- <view class="tui-goods-attr">商品应用格子:
  27. <tui-tag size="small" tui-tag-class="tui-mrbtm" wx:for="{{filter.gridList(item.productGrid)}}">{{item}}</tui-tag></view> -->
  28. </view>
  29. <view class="tui-price-right">
  30. <button class="tui-btn tui-btn-small tui-warning tui-fillet" hover-class="tui-warning-hover" bindtap="toEdit" data-item="{{item}}">添加</button>
  31. </view>
  32. </view>
  33. </tui-list-cell>
  34. </view>
  35. </view>
  36. <!--加载loadding-->
  37. <tui-loadmore visible="{{loadding}}" index="{{3}}" type="red"></tui-loadmore>
  38. <tui-nomore visible="{{!pullUpOn}}" bgcolor="#fafafa"></tui-nomore>
  39. <!--加载loadding-->
  40. </view>