productInfo.wxml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <view class="toptip {{tipStaus}} text-white {{tipType}}" style='top:{{CustomBar}}px;'>{{tipText}}</view>
  2. <cu-custom bgColor="bg-color" isBack="{{true}}" title="{{name}}">
  3. <!-- <view slot="content">{{name}}</view> -->
  4. </cu-custom>
  5. <!-- <view class="top" bindtap="addProduct">
  6. <text>添加</text>
  7. </view> -->
  8. <view class="worker_search">
  9. <view class="worker_search_con">
  10. <input type="text" placeholder="请输入企业名称、联系人" value="{{keyword}}" bindinput="setKeyword"></input>
  11. <view class="text-color" bindtap="searchList"><text class="cuIcon-search"></text>搜索</view>
  12. </view>
  13. </view>
  14. <view class="product">
  15. <scroll-view scroll-y enable-back-to-top>
  16. <view>
  17. <block wx:for="{{ productList }}" wx:for-item="item" wx:for-index="index" wx:key="index">
  18. <view class="productInfo {{ item.isTouchMove ? 'touch-move-active' : '' }}" bindtouchstart="touchStart"
  19. bindtouchmove="touchMove" data-index="{{ index }}">
  20. <view class="info">
  21. <text>{{item.name}}</text>
  22. <view>
  23. <view>
  24. <text class="text">厂家:</text>
  25. <text>{{item.companyName}}</text>
  26. </view>
  27. <view>
  28. <text class="text">创建时间:</text>
  29. <text>{{item.createTime}}</text>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="edit" bindtap="editList" data-item="{{item}}"> 修改 </view>
  34. <view class="del" bindtap="delList" data-index="{{ index }}"> 删除 </view>
  35. </view>
  36. </block>
  37. </view>
  38. </scroll-view>
  39. </view>
  40. <view class="addLabel" bindtap="addProduct">
  41. <text>添加</text>
  42. </view>