detail.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <template>
  2. <view class="page">
  3. <view class="data" >
  4. <view class="top">
  5. <view class="left">
  6. <view class="title flex " style="padding:0 24rpx;">
  7. <u-icon size="32" name="pushpin-fill" color="#5064eb"></u-icon>
  8. <text class="padding-left-10 text-lg text-bold">IEMI:{{dataDetail.imei}}</text>
  9. <text @click.stop="copy(dataDetail.imei)" style="text-decoration: underline;" class="base-color padding-left-20">复制</text>
  10. </view>
  11. </view>
  12. <view class="right">
  13. <view v-if="dataDetail.defenseStatus==1" style="font-size: 22rpx;" class="radius sm cu-btn line-green">
  14. 已上线
  15. </view>
  16. <view v-if="dataDetail.defenseStatus==2" style="font-size: 22rpx;" class="radius sm cu-btn line-red">
  17. 已下线
  18. </view>
  19. </view>
  20. </view>
  21. <view class="item">
  22. <view class="left">
  23. <view style="padding: 0 30rpx;">
  24. <view class="content flex">
  25. <u-icon size="32" name="bookmark-fill" color="#5064eb"></u-icon>
  26. <text class="text-bold padding-left-10">设备名称:</text>
  27. <text>{{dataDetail.deviceName}}</text>
  28. </view>
  29. <view class="content flex align-center justify-start">
  30. <u-icon size="36" name="map" color="#5064eb"></u-icon>
  31. <text class="text-bold padding-left-10" >安装位置:</text>
  32. <text v-text="dataDetail.deviceInstallAddress?dataDetail.deviceInstallAddress:'未知'" style="padding-top: 8rpx;" ></text>
  33. </view>
  34. <view class="content flex align-center justify-start">
  35. <u-icon size="36" name="home" color="#fd9510"></u-icon>
  36. <text class="text-bold padding-left-10">所属企业:</text>
  37. <text v-text="dataDetail.enterpriseNames?dataDetail.enterpriseNames:'未知'" style="padding-top: 8rpx;" ></text>
  38. </view>
  39. <view class="content flex">
  40. <u-icon size="32" name="clock-fill" color="#5064eb"></u-icon>
  41. <text class="text-bold padding-left-10">更新时间:</text>
  42. <text class="text-unknow" style="padding-top: 8rpx;" v-text="dataDetail.updateTime?dataDetail.updateTime:'未知'"></text>
  43. </view>
  44. <view class="content flex">
  45. <u-icon name="changshangguanliyuan" custom-prefix="custom-icon" size="32" color="#00aa00"></u-icon>
  46. <text class="text-bold padding-left-10">厂商名称:</text>
  47. <text :class="dataDetail.manufacturers?'':'text-unknow'" v-text="dataDetail.manufacturers?dataDetail.manufacturers:'未知'"></text>
  48. </view>
  49. <view class="content flex">
  50. <u-icon name="ICCID" custom-prefix="custom-icon" size="32" color="#5064eb"></u-icon>
  51. <text class="text-bold padding-left-10">ICCID:</text>
  52. <text :class="dataDetail.iccid?'':'text-unknow'" v-text="dataDetail.iccid?dataDetail.iccid:'未知'"></text>
  53. </view>
  54. <view class="content flex">
  55. <u-icon name="MCUruanjianyouneirong" custom-prefix="custom-icon" size="32" color="#ff00ff"></u-icon>
  56. <text class="text-bold padding-left-10">Mcu软件版本:</text>
  57. <text :class="dataDetail.mcuEdition?'':'text-unknow'" v-text="dataDetail.mcuEdition?dataDetail.mcuEdition:'未知'"></text>
  58. </view>
  59. <view class="content flex">
  60. <u-icon name="xinghao" custom-prefix="custom-icon" size="32" color="#64c692"></u-icon>
  61. <text class="text-bold padding-left-10">NB模组型号:</text>
  62. <text :class="dataDetail.nbModuleModel?'':'text-unknow'" v-text="dataDetail.nbModuleModel?dataDetail.nbModuleModel:'未知'"></text>
  63. </view>
  64. <view class="content flex">
  65. <u-icon name="banbenhao" custom-prefix="custom-icon" size="32" color="#5064eb"></u-icon>
  66. <text class="text-bold padding-left-10">NB模组版本信息:</text>
  67. <text :class="dataDetail.nbModuleEdition?'':'text-unknow'" v-text="dataDetail.nbModuleEdition?dataDetail.nbModuleEdition:'未知'"></text>
  68. </view>
  69. <view class="content flex">
  70. <u-icon name="cichang" custom-prefix="custom-icon" size="32" color="#53b9b6"></u-icon>
  71. <text class="text-bold padding-left-10">当场磁场值:</text>
  72. <text :class="dataDetail.magneticField?'':'text-unknow'" v-text="dataDetail.magneticField?dataDetail.magneticField:'未知'"></text>
  73. </view>
  74. <view class="content flex">
  75. <u-icon name="-" custom-prefix="custom-icon" size="32" color="#d0267b"></u-icon>
  76. <text class="text-bold padding-left-10">心跳保护时间:</text>
  77. <text :class="dataDetail.heartbeatTime?'':'text-unknow'" v-text="dataDetail.heartbeatTime?dataDetail.heartbeatTime:'未知'"></text>
  78. </view>
  79. <view class="content flex">
  80. <u-icon name="wuxian" custom-prefix="custom-icon" size="32" color="#6c9a3a"></u-icon>
  81. <text class="text-bold padding-left-10">无线信号覆盖等级:</text>
  82. <text :class="dataDetail.wirelessLevel?'':'text-unknow'" v-text="dataDetail.wirelessLevel?dataDetail.wirelessLevel:'未知'"></text>
  83. </view>
  84. <view class="content flex">
  85. <u-icon name="fashegongshuai" custom-prefix="custom-icon" size="32" color="#afc629"></u-icon>
  86. <text class="text-bold padding-left-10">终端发射功率:</text>
  87. <text :class="dataDetail.transmittingPower?'':'text-unknow'" v-text="dataDetail.transmittingPower?dataDetail.transmittingPower:'未知'"></text>
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. </template>
  95. <script>
  96. export default {
  97. name: 'card',
  98. data() {
  99. return {
  100. loading:false,
  101. dataDetail:{}
  102. };
  103. },
  104. onShow() {
  105. this.dataDetail= getApp().globalData.fireHydrantDetail
  106. },
  107. onLoad(options) {
  108. let that = this;
  109. setTimeout(function() {
  110. that.loading = true
  111. }, 500)
  112. },
  113. methods:{
  114. copy(data){
  115. uni.setClipboardData({
  116. data:data
  117. })
  118. },
  119. }
  120. };
  121. </script>
  122. <style lang="scss">
  123. page{
  124. background-color: #FFFFFF;
  125. }
  126. .line-green{
  127. border-color: #16aa5d;
  128. color: #16aa5d;
  129. }
  130. .line-red{
  131. border-color: #cf0000;
  132. color: #cf0000;
  133. }
  134. .text-unknow{
  135. color: $base-color;
  136. }
  137. .data {
  138. background-color: #ffffff;
  139. border-radius: 6rpx;
  140. box-sizing: border-box;
  141. margin-top: 40rpx;
  142. padding: 20rpx 10rpx;
  143. font-size: 28rpx;
  144. .top {
  145. display: flex;
  146. justify-content: space-between;
  147. padding-bottom: 20rpx;
  148. // border-bottom: 1rpx solid $dt-border-color-sm;
  149. .left {
  150. display: flex;
  151. align-items: center;
  152. .title {
  153. margin: 0 10rpx;
  154. font-size: 30rpx;
  155. }
  156. }
  157. .right{
  158. margin-right: 10rpx;
  159. }
  160. }
  161. .item {
  162. margin: 5rpx 0 20rpx 0;
  163. .content {
  164. // border-bottom: 1rpx dashed #DDDDDD;
  165. padding: 30rpx 0;
  166. }
  167. }
  168. .bottom {
  169. display: flex;
  170. margin-top: 30rpx;
  171. justify-content: flex-end;
  172. align-items: center;
  173. }
  174. }
  175. </style>