vvmInfo.wxml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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="{{!isAddLabel ? 'toInfo':'setTempRange'}}" data-id="{{item.id}}" style="padding-top: {{item.deviceSign == 1 ? '':''}}">
  16. <text class="mainLabel" wx:if="{{item.deviceSign1 == 1}}">
  17. 主标签
  18. </text>
  19. <view class="code">
  20. <text style="width: 13%;">编号:</text>
  21. <text style="width: 87%;">{{item.deviceCode || '-'}}</text>
  22. </view>
  23. <view>
  24. <text>绑定状态:</text>
  25. <text wx:if="{{item.bindStatus == 1}}">监测中</text>
  26. <text wx:if="{{item.bindStatus == 0}}">已解除绑定</text>
  27. </view>
  28. <view class="flexBox">
  29. <view>
  30. <text>起始时间:</text>
  31. <text>{{item.bindTime || '--'}}</text>
  32. </view>
  33. <view wx:if="{{isAddLabel}}">
  34. <icon class="icon-box-img" type="success" color="#2D59E6" size="20" wx:if="{{item.deviceSign == 1}}"></icon>
  35. <icon class="icon-small" type="circle" size="20" wx:else></icon>
  36. </view>
  37. </view>
  38. <view>
  39. <text>结束时间:</text>
  40. <text>{{item.unBindTime || '--'}}</text>
  41. </view>
  42. </view>
  43. <view class="scrollText">
  44. <!-- <view class="edit" bindtap="editList" data-index="{{ index }}" data-id="{{item.id}}" data-name="{{item.name}}"> 修改 </view> -->
  45. <view class="del" bindtap="delList" data-id="{{item.id}}"> 删除 </view>
  46. </view>
  47. </view>
  48. </block>
  49. </view>
  50. </scroll-view>
  51. </view>
  52. <!-- <view class="addLabel" bindtap="addLabel" wx:if="{{devicetypeName == 'X201' || devicetypeName == 'X202'||devicetypeName == 'X203' || devicetypeName == 'X104'}}">
  53. <text>添加</text>
  54. </view> -->
  55. <view class="addLabel" bindtap="{{!isAddLabel ? 'addLabel':'setAddlabelStatus'}}">
  56. <text wx:if="{{!isAddLabel}}">更换主标签</text>
  57. <text wx:else>完成</text>
  58. </view>
  59. <view class="zan-dialog {{ showDialog ? 'zan-dialog--show' : '' }}">
  60. <!-- 如果想点击弹窗外不隐藏,取消bindtap点击事件即可 -->
  61. <view class="zan-dialog__mask" bindtap="toggleDialog" />
  62. <view class="zan-dialog__container">
  63. <view class="cha_win_tit">请选择</view>
  64. <view class="selectInfo">
  65. <view bindtap="chainBind">
  66. <image src="/img/X202.png"></image>
  67. <view>扫描</view>
  68. </view>
  69. <!-- <view bindtap="inputBind">
  70. <image src="/img/input.png"></image>
  71. <view>手动输入编号</view>
  72. </view> -->
  73. </view>
  74. <view class="cha_win_close" bindtap="toggleDialog">
  75. <text>×</text>
  76. </view>
  77. </view>
  78. </view>