workOrderMap.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. <template>
  2. <view>
  3. <u-navbar title="工单地图" title-color="#101010">
  4. </u-navbar>
  5. <view class="tabs">
  6. <u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
  7. </view>
  8. <!-- 地图 -->
  9. <view class="map">
  10. <image class="map-img" src="@/assets/img/map.png" mode=""></image>
  11. <!-- 标注1 -->
  12. <view class="location1">
  13. <image class="img" src="@/assets/img/riFill-cloud-off-fill1.svg" mode=""></image>
  14. <view class="corner">
  15. </view>
  16. </view>
  17. <!-- 标注2 -->
  18. <view class="location2">
  19. <view class="icon2-left">
  20. <image class="img1" src="@/assets/img/riFill-temp-cold-fill1.svg" mode=""></image>
  21. </view>
  22. <view class="icon2-right">
  23. <view class="corner2-top">
  24. 荆鹏软件园01
  25. </view>
  26. <view class="corner2-bottom">
  27. 温度异常
  28. </view>
  29. </view>
  30. <view class="corner2"></view>
  31. </view>
  32. <view class="card">
  33. <view class="item">
  34. <view class="title">
  35. <view class="icon-box">
  36. <image class="img" src="@/assets/img/riFill-temp-cold-fill1.svg" mode=""></image>
  37. </view>
  38. <view class="equipment">
  39. <view class="name1">
  40. 荆鹏软件园01
  41. </view>
  42. <view class="name2">
  43. 荆鹏集团
  44. </view>
  45. </view>
  46. <!-- 状态 -->
  47. <view class="state">
  48. <view class="icon ">
  49. </view>
  50. <view class="text">
  51. 温度异常
  52. </view>
  53. </view>
  54. </view>
  55. <!-- 其他信息 -->
  56. <view class="else-infos">
  57. <view class="infos">
  58. <view class="infos-item">
  59. <view class="item-icon">
  60. <image class="icon-img" src="@/assets/img/riLine-map-pin-line 1.svg" mode=""></image>
  61. </view>
  62. <view class="item-value">
  63. 荆州市沙市区江津东路155号荆鹏软件园
  64. </view>
  65. </view>
  66. <view class="infos-item">
  67. <view class="item-icon">
  68. <image class="icon-img" src="@/assets/img/riLine-map-pin-line 1.svg" mode=""></image>
  69. </view>
  70. <view class="item-value">
  71. 2024-02-24 12:00:00
  72. </view>
  73. </view>
  74. </view>
  75. <view class="navigation">
  76. 导航
  77. <view class="icon">
  78. <image class="navigation-img" src="@/assets/img/riFill-navigation-fill 1.svg" mode=""></image>
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. </template>
  87. <script>
  88. export default {
  89. data() {
  90. return {
  91. list: [{
  92. name: '全部'
  93. }, {
  94. name: '待指派(1)'
  95. }, {
  96. name: '进行中(2)',
  97. }, {
  98. name: '已解决(3)',
  99. }],
  100. current: 0
  101. }
  102. },
  103. methods: {
  104. toDataMonitoringList() {
  105. uni.navigateBack()
  106. },
  107. change(index) {
  108. this.current = index;
  109. }
  110. }
  111. }
  112. </script>
  113. <style lang="scss" scoped>
  114. .tabs {
  115. background-color: #fff;
  116. height: 96rpx;
  117. position: sticky;
  118. top: 88rpx;
  119. z-index: 999;
  120. }
  121. // 地图
  122. .map {
  123. position: relative;
  124. .map-img {
  125. width: 100%;
  126. height: 100vh;
  127. }
  128. .location1 {
  129. width: 36px;
  130. height: 36px;
  131. text-align: center;
  132. border: 2px solid rgba(22, 119, 255, 1);
  133. border-radius: 999px;
  134. display: flex;
  135. align-items: center;
  136. justify-content: center;
  137. position: absolute;
  138. top: 89px;
  139. left: 38px;
  140. .img {
  141. width: 40rpx;
  142. height: 40rpx;
  143. }
  144. .corner {
  145. width: 0;
  146. height: 0;
  147. position: absolute;
  148. top: 34px;
  149. left: 0;
  150. right: 0;
  151. margin: auto;
  152. border-bottom: 8rpx solid transparent;
  153. border-left: 8rpx solid transparent;
  154. border-right: 8rpx solid transparent;
  155. border-top: 12rpx solid rgba(22, 119, 255, 1);
  156. }
  157. }
  158. .location2 {
  159. width: 280rpx;
  160. border-radius: 50px;
  161. background-color: rgba(22, 119, 255, 1);
  162. display: flex;
  163. position: absolute;
  164. top: 370rpx;
  165. left: 280rpx;
  166. .icon2-left {
  167. width: 72rpx;
  168. height: 72rpx;
  169. line-height: 72rpx;
  170. text-align: center;
  171. border: 1px solid rgba(0, 185, 98, 100);
  172. border-radius: 999px;
  173. background-color: #fff;
  174. display: flex;
  175. align-items: center;
  176. justify-content: center;
  177. .img1 {
  178. width: 40rpx;
  179. height: 40rpx;
  180. }
  181. }
  182. .icon2-right {
  183. color: #ffffff;
  184. line-height: 36rpx;
  185. padding-left: 8rpx;
  186. font-size: 28rpx;
  187. .corner2-top {
  188. font-weight: bold;
  189. }
  190. .corner2-bottom {
  191. font-size: 24rpx;
  192. .img2 {
  193. width: 24rpx;
  194. height: 24rpx;
  195. }
  196. }
  197. }
  198. .corner2 {
  199. width: 0;
  200. height: 0;
  201. position: absolute;
  202. top: 72rpx;
  203. left: 0;
  204. right: 0;
  205. margin: auto;
  206. border-bottom: 6px solid transparent;
  207. border-left: 6px solid transparent;
  208. border-right: 6px solid transparent;
  209. border-top: 8px solid rgba(22, 119, 255, 1);
  210. }
  211. }
  212. // 卡片
  213. .card {
  214. border-radius: 8px;
  215. border: 1px solid rgba(232, 232, 232, 1);
  216. box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
  217. background-color: rgba(255, 255, 255, 1);
  218. position: fixed;
  219. left: 24rpx;
  220. right: 24rpx;
  221. bottom: 32rpx;
  222. .item {
  223. border-bottom: 1px solid rgba(245, 245, 245, 1);
  224. padding: 32rpx 16rpx 16rpx 16rpx;
  225. .title {
  226. display: flex;
  227. align-items: flex-start;
  228. .icon-box {
  229. width: 72rpx;
  230. height: 72rpx;
  231. border-radius: 4px;
  232. display: flex;
  233. align-items: center;
  234. justify-content: center;
  235. background-color: rgba(219, 234, 255, 1);
  236. .img {
  237. width: 48rpx;
  238. height: 48rpx;
  239. }
  240. }
  241. .equipment {
  242. margin-left: 16rpx;
  243. .name1 {
  244. color: rgba(51, 51, 51, 1);
  245. }
  246. .name2 {
  247. color: rgba(119, 119, 119, 1);
  248. font-size: 24rpx;
  249. margin-top: 4rpx;
  250. }
  251. }
  252. // 状态
  253. .state {
  254. display: flex;
  255. align-items: center;
  256. margin-left: auto;
  257. .icon {
  258. width: 8px;
  259. height: 8px;
  260. background-color: rgba(22, 119, 255, 1);
  261. border-radius: 999px;
  262. }
  263. .text {
  264. color: rgba(51, 51, 51, 1);
  265. margin-left: 8rpx;
  266. font-weight: bold;
  267. }
  268. }
  269. }
  270. // 其他信息
  271. .else-infos {
  272. display: flex;
  273. justify-content: space-between;
  274. align-items: baseline;
  275. margin-top: 16rpx;
  276. .infos {
  277. color: rgba(119,119,119,1);
  278. font-size: 24rpx;
  279. .infos-item {
  280. display: flex;
  281. align-items: center;
  282. margin-bottom: 8rpx;
  283. .item-icon {
  284. display: flex;
  285. align-items: center;
  286. .icon-img {
  287. width: 28rpx;
  288. height: 28rpx;
  289. }
  290. }
  291. }
  292. }
  293. .navigation{
  294. color: #333333;
  295. display: flex;
  296. align-items: center;
  297. .navigation-img{
  298. width: 28rpx;
  299. height: 28rpx;
  300. vertical-align: middle;
  301. margin-left: 8rpx;
  302. transform: scaleX(-1);
  303. }
  304. }
  305. }
  306. }
  307. }
  308. }
  309. </style>