vvmInfo.wxml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <view class="toptip {{tipStaus}} text-white {{tipType}}" style='top:{{CustomBar}}px;'>{{tipText}}</view>
  2. <cu-custom bgColor="bg-color" isBack="{{true}}" title="{{devicetypeName}}"></cu-custom>
  3. <!-- <view class="worker_search">
  4. <view class="worker_search_con">
  5. <input type="text" placeholder="请输入冷链编号" value="{{keyword}}" bindinput="setKeyword"></input>
  6. <view class="text-color" bindtap="searchList"><text class="cuIcon-search"></text>搜索</view>
  7. </view>
  8. </view> -->
  9. <view>
  10. <scroll-view scroll-y enable-back-to-top>
  11. <view style="margin: 20rpx 20rpx 100rpx 20rpx;">
  12. <block wx:for="{{ detailsList }}" wx:for-item="item" wx:for-index="index" wx:key="index">
  13. <view class="list {{item.isTouchMove ? 'touch-move-active' : ''}}" bindtouchstart="touchStart"
  14. bindtouchmove="touchMove" data-index="{{ index }}">
  15. <view class="listInfo" data-deviceCode="{{item.deviceCode}}" bindtap="toInfo" data-id="{{item.id}}">
  16. <view class="code">
  17. <text style="width: 13%;">编号:</text>
  18. <text style="width: 87%;">{{item.deviceCode || '-'}}</text>
  19. </view>
  20. <view>
  21. <text>绑定状态:</text>
  22. <text wx:if="{{item.bindStatus == 1}}">监测中</text>
  23. <text wx:if="{{item.bindStatus == 0}}">已解除绑定</text>
  24. </view>
  25. <view>
  26. <text>起始时间:</text>
  27. <text>{{item.bindTime || '--'}}</text>
  28. </view>
  29. <view>
  30. <text>结束时间:</text>
  31. <text>{{item.unBindTime || '--'}}</text>
  32. </view>
  33. </view>
  34. <view class="scrollText">
  35. <!-- <view class="edit" bindtap="editList" data-index="{{ index }}" data-id="{{item.id}}" data-name="{{item.name}}"> 修改 </view> -->
  36. <view class="del" bindtap="delList" data-id="{{item.id}}"> 删除 </view>
  37. </view>
  38. </view>
  39. </block>
  40. </view>
  41. </scroll-view>
  42. </view>
  43. <view class="addLabel" bindtap="addLabel" wx:if="{{devicetypeName == 'X201' || devicetypeName == 'X202'||devicetypeName == 'X203' || devicetypeName == 'X104'}}">
  44. <text>添加</text>
  45. </view>
  46. <view class="zan-dialog {{ showDialog ? 'zan-dialog--show' : '' }}">
  47. <!-- 如果想点击弹窗外不隐藏,取消bindtap点击事件即可 -->
  48. <view class="zan-dialog__mask" bindtap="toggleDialog" />
  49. <view class="zan-dialog__container">
  50. <view class="cha_win_tit">请选择</view>
  51. <view class="selectInfo">
  52. <view bindtap="chainBind">
  53. <image src="/img/X202.png"></image>
  54. <view>扫描</view>
  55. </view>
  56. <!-- <view bindtap="inputBind">
  57. <image src="/img/input.png"></image>
  58. <view>手动输入编号</view>
  59. </view> -->
  60. </view>
  61. <view class="cha_win_close" bindtap="toggleDialog">
  62. <text>×</text>
  63. </view>
  64. </view>
  65. </view>