index.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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 v-model="vin" type="text" placeholder="请输入17位车架号查询" class="topInput" @confirm="inputconfirm">
  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. vin: ''
  26. }
  27. },
  28. onLoad() {
  29. },
  30. methods: {
  31. inputconfirm(){
  32. console.log(this.vin)
  33. this.gogroup()
  34. },
  35. gogroup(){
  36. uni.navigateTo({
  37. url:'group?vin='+this.vin
  38. })
  39. }
  40. }
  41. }
  42. </script>
  43. <style scoped>
  44. .top{
  45. height: 96rpx;
  46. border-bottom: 1px solid #EEEEEE;
  47. padding-top: 24rpx;
  48. }
  49. .searchImg{
  50. width: 40rpx;
  51. height: 40rpx;
  52. margin-top: 16rpx;
  53. margin-left: 20rpx;
  54. }
  55. .inputBox{
  56. width: 702rpx;
  57. height: 72rpx;
  58. background: #F4F5F7;
  59. border-radius: 36rpx;
  60. margin-left: 24rpx;
  61. display:flex;
  62. position: relative;
  63. }
  64. .topInput{
  65. font-size: 28rpx;
  66. height: 72rpx;
  67. line-height: 72rpx;
  68. padding-left: 16rpx;
  69. width: 500rpx;
  70. }
  71. .cameraImg{
  72. position: absolute;
  73. width: 40rpx;
  74. height: 40rpx;
  75. top: 16rpx;
  76. right: 20rpx;
  77. }
  78. .history{
  79. padding: 24rpx;
  80. }
  81. .historyTop{
  82. display: flex;
  83. justify-content: space-between;
  84. }
  85. .historyDelImg{
  86. width: 34rpx;height: 34rpx;
  87. }
  88. .historyTopTxt{
  89. font-size: 28rpx;
  90. font-weight: 400;
  91. color: #666666;
  92. line-height: 34rpx;
  93. }
  94. .historyLIne{
  95. color: #333333;font-size: 24rpx;
  96. height: 64rpx;
  97. background: #F4F5F7;
  98. border-radius: 32rpx;
  99. line-height: 64rpx;
  100. padding: 0 24rpx;
  101. margin-top: 20rpx;
  102. }
  103. .historyLIneBox{
  104. display: flex;
  105. }
  106. </style>