index.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <view class="inputBox">
  5. <img src="../../static/img/icon_search.png" alt="" class="searchImg">
  6. <input type="text" placeholder="请输入17位车架号查询" class="topInput">
  7. <image src="../../static/img/icon_camera.png" mode="" class="cameraImg"></image>
  8. </view>
  9. </view>
  10. <view class="history">
  11. <view class="historyTop">
  12. <view class="historyTopTxt">历史搜索</view>
  13. <image src="../../static/img/icon_delete.png" mode="" class="historyDelImg"></image>
  14. </view>
  15. <view v-for="(item,index) in 3" class="historyLIneBox">
  16. <view class="historyLIne" @click="gogroup">LF0HGCT23F0026063</view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. title: 'Hello'
  26. }
  27. },
  28. onLoad() {
  29. },
  30. methods: {
  31. gogroup(){
  32. uni.navigateTo({
  33. url:'group'
  34. })
  35. }
  36. }
  37. }
  38. </script>
  39. <style scoped>
  40. .top{
  41. height: 96rpx;
  42. border-bottom: 1px solid #EEEEEE;
  43. padding-top: 24rpx;
  44. }
  45. .searchImg{
  46. width: 40rpx;
  47. height: 40rpx;
  48. margin-top: 16rpx;
  49. margin-left: 20rpx;
  50. }
  51. .inputBox{
  52. width: 702rpx;
  53. height: 72rpx;
  54. background: #F4F5F7;
  55. border-radius: 36rpx;
  56. margin-left: 24rpx;
  57. display:flex;
  58. position: relative;
  59. }
  60. .topInput{
  61. font-size: 28rpx;
  62. height: 72rpx;
  63. line-height: 72rpx;
  64. padding-left: 16rpx;
  65. width: 500rpx;
  66. }
  67. .cameraImg{
  68. position: absolute;
  69. width: 40rpx;
  70. height: 40rpx;
  71. top: 16rpx;
  72. right: 20rpx;
  73. }
  74. .history{
  75. padding: 24rpx;
  76. }
  77. .historyTop{
  78. display: flex;
  79. justify-content: space-between;
  80. }
  81. .historyDelImg{
  82. width: 34rpx;height: 34rpx;
  83. }
  84. .historyTopTxt{
  85. font-size: 28rpx;
  86. font-weight: 400;
  87. color: #666666;
  88. line-height: 34rpx;
  89. }
  90. .historyLIne{
  91. color: #333333;font-size: 24rpx;
  92. height: 64rpx;
  93. background: #F4F5F7;
  94. border-radius: 32rpx;
  95. line-height: 64rpx;
  96. padding: 0 24rpx;
  97. margin-top: 20rpx;
  98. }
  99. .historyLIneBox{
  100. display: flex;
  101. }
  102. </style>