PatrolPoints.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <view class="home__main-top">
  3. <view class="home__main-top-box">
  4. <view class="top-box-address">
  5. <u-icon name="map-fill" color="#fff" size="20"></u-icon>
  6. <p class="top-box-address-text">巡更点</p>
  7. </view>
  8. <view class="top-box-name">
  9. {{positionName || '--'}}
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. name: "PatrolPoints",
  17. props: {
  18. name: {
  19. type: String,
  20. default: '巡更点'
  21. },
  22. positionName: {
  23. type: String
  24. }
  25. },
  26. data() {
  27. return {
  28. };
  29. }
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. .home__main-top {
  34. height: 140px;
  35. background: #3D8EFE;
  36. border-bottom-left-radius: 8%;
  37. border-bottom-right-radius: 8%;
  38. .home__main-top-box {
  39. height: 80px;
  40. box-sizing: border-box;
  41. padding-left: 15px;
  42. padding-top: 35px;
  43. .home__main-top-text {
  44. font-weight: 700;
  45. font-size: 20px;
  46. line-height: 30px;
  47. color: #fff;
  48. }
  49. .home__main-top-text1 {
  50. text-align: center;
  51. }
  52. .top-box-address {
  53. display: flex;
  54. align-items: center;
  55. margin-bottom: 10px;
  56. color: #fff;
  57. font-size: 16px;
  58. .top-box-address-text {
  59. margin-left: 10px;
  60. }
  61. }
  62. .top-box-name {
  63. font-weight: 700;
  64. font-size: 20px;
  65. line-height: 30px;
  66. padding-left: 25px;
  67. color: #fff;
  68. }
  69. }
  70. }
  71. </style>