jiLu.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <template>
  2. <view class="box">
  3. <u-navbar :autoBack="true" title="历史记录" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#000000"></u-navbar>
  4. <view class="tit_box">
  5. <view class="pm_tit">事件图片</view>
  6. <view class="pm_tit">文物名称</view>
  7. <view class="pm_tit">本体状况</view>
  8. <view class="pm_tit">构件状况</view>
  9. <view class="pm_tit">安全状况</view>
  10. <view class="pm_tit">其他</view>
  11. </view>
  12. <view class="xx_box">
  13. <view class="xx_item" v-for="(item, index) in information" :key="item.index">
  14. <view><image style="width: 100rpx; height: 80rpx" :src="item.image"></image></view>
  15. <view>{{ item.name }}</view>
  16. <view class="">
  17. {{ item.condition }}
  18. <uni-icons v-if="item.condition == '异常'" type="down" size="20" color="#f2c8a2"></uni-icons>
  19. </view>
  20. <view :class="{ active: item.member == '异常' }">
  21. {{ item.member }}
  22. <uni-icons v-if="item.member == '异常'" type="down" size="20" color="#f2c8a2"></uni-icons>
  23. </view>
  24. <view :class="{ active: item.secure == '异常' }">
  25. {{ item.secure }}
  26. <uni-icons @click="recordBtn" v-if="item.secure == '异常'" type="down" size="20" color="#f2c8a2"></uni-icons>
  27. </view>
  28. <view :class="{ active: item.other == '异常' }">
  29. {{ item.other }}
  30. <uni-icons v-if="item.other == '异常'" type="down" size="20" color="#f2c8a2"></uni-icons>
  31. </view>
  32. </view>
  33. </view>
  34. <u-popup :show="show" @close="close" mode="center" :closeable="true" bgColor="#f9dbbf" round="5">
  35. <view class="pop_box">
  36. <view class="top_tit">
  37. <view class="">异常原因</view>
  38. <view class="">异常程度</view>
  39. <view class="">异常情况描述</view>
  40. </view>
  41. <view class="top_item">
  42. <view class="">构件丢失</view>
  43. <view class="">紧急</view>
  44. <view class="">XX构件丢失</view>
  45. </view>
  46. </view>
  47. </u-popup>
  48. </view>
  49. </template>
  50. <script>
  51. export default {
  52. data() {
  53. return {
  54. show: false,
  55. // 信息列表
  56. information: [
  57. {
  58. image: 'https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/sh_top.png',
  59. name: '周文学宅',
  60. condition: '正常',
  61. member: '正常',
  62. secure: '异常',
  63. other: '正常'
  64. },
  65. {
  66. image: 'https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/sh_top.png',
  67. name: '王清祥宅',
  68. condition: '正常',
  69. member: '正常',
  70. secure: '正常',
  71. other: '正常'
  72. }
  73. ]
  74. };
  75. },
  76. methods: {
  77. recordBtn() {
  78. this.show = true;
  79. },
  80. close() {
  81. this.show = false;
  82. }
  83. }
  84. };
  85. </script>
  86. <style>
  87. .box {
  88. height: 100%;
  89. width: 100%;
  90. padding-bottom: 50rpx;
  91. background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/xy_bgt.png');
  92. background-repeat: repeat-y;
  93. background-attachment: fixed;
  94. background-size: 100% 100%;
  95. }
  96. .tit_box {
  97. display: flex;
  98. align-items: center;
  99. height: 75rpx;
  100. justify-content: space-around;
  101. margin-top: 30rpx;
  102. background: url('/static/img/sj_top_bg.png') no-repeat;
  103. background-size: 100% 100%;
  104. }
  105. .pm_tit {
  106. font-size: 26rpx;
  107. font-weight: 400;
  108. line-height: 40rpx;
  109. }
  110. .xx_item {
  111. display: flex;
  112. justify-content: space-between;
  113. align-items: center;
  114. margin-top: 40rpx;
  115. font-size: 30rpx;
  116. line-height: 44rpx;
  117. padding: 0 10rpx 0 10rpx;
  118. }
  119. .active {
  120. color: #de1f1f !important;
  121. }
  122. .xx_box {
  123. margin-top: 40rpx;
  124. margin-left: 20rpx;
  125. }
  126. .pop_box {
  127. width: 635rpx;
  128. height: 280rpx;
  129. padding: 60rpx 40rpx 40rpx 40rpx;
  130. font-size: 30rpx;
  131. font-weight: 600;
  132. }
  133. .top_tit {
  134. display: flex;
  135. justify-content: space-between;
  136. color: black;
  137. }
  138. .top_item {
  139. display: flex;
  140. justify-content: space-between;
  141. color: red;
  142. margin-top: 20rpx;
  143. }
  144. </style>