position.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <view class="">
  3. <view class="header">
  4. <view class="city Medium">
  5. <text class="select-city">营口市</text>
  6. <u-icon name="arrow-down"></u-icon>
  7. </view>
  8. <u-search input-align="left" :show-action="false" height="70" placeholder="请输入位置信息"></u-search>
  9. </view>
  10. <view class="header2">
  11. <view class="header2-tip Regular">
  12. 当前定位
  13. </view>
  14. <view class="header2-content">
  15. <view class="left Medium">
  16. <u-icon name="arrow-down"></u-icon>
  17. <view class="">山海广场</view>
  18. </view>
  19. <view class="reposition Regular">重新定位</view>
  20. </view>
  21. </view>
  22. <view class="position-list Regular">
  23. <view class="list-item">
  24. <view class="row row1">
  25. <view>
  26. 山海广场
  27. </view>
  28. <view>4.2千米</view>
  29. </view>
  30. <view class="row row2">
  31. 山海广场
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. components: {},
  40. data() {
  41. return {}
  42. },
  43. methods: {}
  44. }
  45. </script>
  46. <style lang="scss" scoped>
  47. /deep/.u-content {
  48. padding-left: 170rpx;
  49. }
  50. .header {
  51. position: relative;
  52. display: flex;
  53. background: white;
  54. padding: 20rpx;
  55. .city {
  56. top: 0;
  57. bottom: 0;
  58. left: 50rpx;
  59. margin: auto;
  60. position: absolute;
  61. display: flex;
  62. align-items: center;
  63. .select-city {
  64. margin-right: 4rpx;
  65. }
  66. }
  67. }
  68. .header2 {
  69. background: white;
  70. border-radius: 0 0 20rpx 20rpx;
  71. padding: 0 20rpx 34rpx 20rpx;
  72. .header2-tip {
  73. font-size: 28rpx;
  74. color: #AFB3BF;
  75. }
  76. .header2-content {
  77. font-size: 32rpx;
  78. color: #333333;
  79. display: flex;
  80. justify-content: space-between;
  81. margin-top: 12rpx;
  82. .left {
  83. display: flex;
  84. }
  85. .reposition {
  86. font-size: 28rpx;
  87. color: #22C572;
  88. }
  89. }
  90. }
  91. .position-list{
  92. background: pink;
  93. border-radius: 20rpx;
  94. }
  95. </style>