photoInspectionInfo.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <!-- 拍照检查 -->
  2. <template>
  3. <view id="photoInspectionInfo">
  4. <view class="header">
  5. <view class="header-t">
  6. <img class="header-t-l" src="@/pages/images/icon_01.png" />
  7. <view class="header-t-c">刘瑶瑶 13233556655</view>
  8. <view class="header-t-r">实验中</view>
  9. </view>
  10. <img class="header-line" src="@/pages/images/for_min_bg.png" />
  11. <view class="header-b">
  12. <view class="header-li">签到时间:2024-03-15 13:00</view>
  13. <view class="header-li">离开时间:-</view>
  14. <view class="header-li">停留时间:-</view>
  15. </view>
  16. </view>
  17. <view class="small-title">检查项</view>
  18. <view class="main-li" v-if="pageType==1">
  19. <img class="main-li-t" src="@/pages/images/img_bg_cjcx.png" />
  20. <view class="main-li-b">实验室照片</view>
  21. </view>
  22. <view class="photo-b" v-if="pageType==2">
  23. <view v-for="(item,index) in photoList" :key="index" @click="photoClick(item)" class="list-li"
  24. :class="!item.type?'color-A':'color-B'">
  25. <view>{{item.name}}</view>
  26. <img v-if="item.type" :src="item.icon">
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. import {
  33. config
  34. } from '@/api/request/config.js'
  35. export default {
  36. components: {
  37. },
  38. data() {
  39. return {
  40. pageType: 1,
  41. baseUrl: config.base_url,
  42. newData: {
  43. },
  44. photoList: [{
  45. type: false,
  46. name: '实验室照片',
  47. icon: require('@/pages_basics/images/icon_pzjc_xz.png')
  48. },
  49. {
  50. type: false,
  51. name: '垃圾桶清理后照片',
  52. icon: require('@/pages_basics/images/icon_pzjc_xz.png')
  53. },
  54. ],
  55. }
  56. },
  57. onLoad(option) {
  58. },
  59. onShow() {
  60. },
  61. methods: {
  62. photoClick(item) {
  63. item.type = !item.type;
  64. },
  65. }
  66. }
  67. </script>
  68. <style lang="stylus" scoped>
  69. #photoInspectionInfo {
  70. padding: 0 30rpx;
  71. box-sizing: border-box;
  72. .header {
  73. .header-t {
  74. height: 116rpx;
  75. background: #fff;
  76. display: flex;
  77. justify-content: flex-start;
  78. align-items: center;
  79. border-radius: 10rpx 10rpx 0rpx 0rpx;
  80. .header-t-l {
  81. width: 70rpx;
  82. height: 70rpx;
  83. border-radius: 35rpx;
  84. margin: 0 22rpx 0 30rpx;
  85. }
  86. .header-t-c {
  87. flex: 1;
  88. font-family: Source Han Sans, Source Han Sans;
  89. font-weight: 400;
  90. font-size: 28rpx;
  91. color: #333333;
  92. line-height: 41rpx;
  93. }
  94. .header-t-r {
  95. font-family: Source Han Sans, Source Han Sans;
  96. font-weight: 400;
  97. font-size: 28rpx;
  98. color: #0183FA;
  99. line-height: 41rpx;
  100. margin-right: 38rpx;
  101. }
  102. }
  103. .header-line {
  104. width: 100%;
  105. height: 30rpx;
  106. }
  107. .header-b {
  108. width: 100%;
  109. height: 222rpx;
  110. background: #fff;
  111. padding: 20rpx 30rpx 0;
  112. box-sizing: border-box;
  113. border-radius: 0rpx 0rpx 10rpx 10rpx;
  114. .header-li {
  115. font-weight: 400;
  116. font-size: 28rpx;
  117. color: #333333;
  118. line-height: 28rpx;
  119. text-align: left;
  120. }
  121. .header-li:nth-of-type(1) {
  122. margin-bottom: 42rpx;
  123. }
  124. .header-li:nth-of-type(2) {
  125. margin-bottom: 42rpx;
  126. }
  127. }
  128. }
  129. .small-title {
  130. font-family: PingFang SC, PingFang SC;
  131. font-weight: 400;
  132. font-size: 30rpx;
  133. color: #333333;
  134. line-height: 42rpx;
  135. text-align: left;
  136. margin: 30rpx 0;
  137. }
  138. .main-li {
  139. margin-bottom: 20rpx;
  140. .main-li-t {
  141. width: 690rpx;
  142. height: 250rpx;
  143. border-radius: 20rpx 20rpx 0rpx 0rpx;
  144. }
  145. .main-li-b {
  146. width: 690rpx;
  147. height: 82rpx;
  148. background: #FFFFFF;
  149. border-radius: 0rpx 0rpx 20rpx 20rpx;
  150. border: 2rpx dashed #E0E0E0;
  151. font-family: PingFang SC, PingFang SC;
  152. font-weight: 400;
  153. font-size: 30rpx;
  154. color: #333333;
  155. line-height: 82rpx;
  156. text-align: left;
  157. padding-left: 28rpx;
  158. box-sizing: border-box;
  159. }
  160. }
  161. .photo-b {
  162. padding-bottom: 140rpx;
  163. .list-li {
  164. width: 690rpx;
  165. height: 100rpx;
  166. background: #FFFFFF;
  167. border-radius: 20rpx 20rpx 20rpx 20rpx;
  168. display: flex;
  169. justify-content: space-between;
  170. margin-bottom: 20rpx;
  171. >view {
  172. font-weight: 400;
  173. font-size: 30rpx;
  174. color: #333333;
  175. line-height: 100rpx;
  176. text-align: left;
  177. padding-left: 28rpx;
  178. }
  179. >img {
  180. width: 60rpx;
  181. height: 60rpx;
  182. margin-top: 44rpx;
  183. }
  184. }
  185. .color-A {
  186. border: 2rpx dotted #E0E0E0;
  187. }
  188. .color-B {
  189. border: 2rpx dotted #0183FA;
  190. }
  191. }
  192. }
  193. </style>