product.wxml 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. <view class="toptip {{tipStaus}} text-white {{tipType}}" style='top:{{CustomBar}}px;'>{{tipText}}</view>
  2. <cu-custom bgColor="bg-color" isBack="{{true}}" title="产品类别">
  3. <!-- <view slot="content">产品类别</view> -->
  4. </cu-custom>
  5. <view class="worker_search">
  6. <view class="worker_search_con">
  7. <input type="text" placeholder="请输入产品名称、生产企业名称" value="{{keyword}}" bindinput="setKeyword"></input>
  8. <view class="text-color" bindtap="searchList"><text class="cuIcon-search"></text>搜索</view>
  9. </view>
  10. </view>
  11. <view>
  12. <scroll-view scroll-y enable-back-to-top>
  13. <view style="padding-bottom: 100rpx;">
  14. <block wx:for="{{ productList }}" wx:for-item="item" wx:for-index="index" wx:key="index">
  15. <view class="productInfo {{ item.isTouchMove ? 'touch-move-active' : '' }}" bindtouchstart="touchStart"
  16. bindtouchmove="touchMove" data-index="{{ index }}">
  17. <view class="info" bindtap="toProductInfo" data-id="{{item.id}}" data-name="{{item.name}}">
  18. <text>{{item.name}}</text>
  19. <text>{{item.productNum}} ></text>
  20. </view>
  21. <view class="scrollText">
  22. <view class="edit" bindtap="editList" data-index="{{ index }}" data-id="{{item.id}}" data-name="{{item.name}}"> 修改 </view>
  23. <view class="del" bindtap="delList" data-index="{{ index }}"> 删除 </view>
  24. </view>
  25. </view>
  26. </block>
  27. </view>
  28. </scroll-view>
  29. </view>
  30. <view class="addLabel" bindtap="addProductType">
  31. <text>添加</text>
  32. </view>